當前位置: 首頁>>代碼示例>>Python>>正文


Python editortool.EditorTool類代碼示例

本文整理匯總了Python中editortools.editortool.EditorTool的典型用法代碼示例。如果您正苦於以下問題:Python EditorTool類的具體用法?Python EditorTool怎麽用?Python EditorTool使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了EditorTool類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

    def __init__(self, editor):
        EditorTool.__init__(self, editor)

        self.filterModules = {}
        self.savedOptions = {}
        
        self.filters_not_imported = []
        
        self.optionsPanel = FilterToolOptions(self)
開發者ID:Iciciliser,項目名稱:MCEdit-Unified,代碼行數:9,代碼來源:filter.py

示例2: __init__

    def __init__(self, *args):
        self.rotation = 0

        EditorTool.__init__(self, *args)
        self.previewRenderer = None
        self.panel = None

        self.optionsPanel = CloneToolOptions(self)

        self.destPoint = None
開發者ID:LaChal,項目名稱:MCEdit-Unified,代碼行數:10,代碼來源:clone.py

示例3: __init__

    def __init__(self, editor):
        EditorTool.__init__(self, editor)

        self.filterModules = {}
        self.savedOptions = {}

        self.updatePanel = Panel()
        updateButton = Button("Update Filters", action=self.updateFilters)
        self.updatePanel.add(updateButton)
        self.updatePanel.shrink_wrap()

        self.updatePanel.bottomleft = self.editor.viewportContainer.bottomleft
開發者ID:gwpantazes,項目名稱:MCEdit-Unified,代碼行數:12,代碼來源:filter.py

示例4: __init__

    def __init__(self, *args):
        EditorTool.__init__(self, *args)
        self.reloadTextures()

        textureVertices = numpy.array(
            (
                24, 16,
                24, 8,
                32, 8,
                32, 16,

                8, 16,
                8, 8,
                16, 8,
                16, 16,

                24, 0,
                16, 0,
                16, 8,
                24, 8,

                16, 0,
                8, 0,
                8, 8,
                16, 8,

                8, 8,
                0, 8,
                0, 16,
                8, 16,

                16, 16,
                24, 16,
                24, 8,
                16, 8,

            ), dtype='f4')

        textureVertices.shape = (24, 2)

        textureVertices *= 4
        textureVertices[:, 1] *= 2

        self.texVerts = textureVertices

        self.playerPos = {}
        self.playerTexture = {}
        self.revPlayerPos = {}

        self.markerList = DisplayList()
開發者ID:Alexhb61,項目名稱:MCEdit-Unified,代碼行數:50,代碼來源:player.py

示例5: __init__

 def __init__(self, *args, **kw):
     EditorTool.__init__(self, *args, **kw)
     self.optionsPanel = FillToolOptions(self)
     self.pickBlockKey = 0
     self.root = get_root()
開發者ID:BossosaurusRex,項目名稱:MCEdit-Unified,代碼行數:5,代碼來源:fill.py

示例6: __init__

    def __init__(self, *args):
        EditorTool.__init__(self, *args)
        self.reloadTextures()
        self.nonSavedPlayers = []

        textureVerticesHead = numpy.array(
            (
                # Backside of Head
                24, 16, # Bottom Left
                24, 8, # Top Left
                32, 8, # Top Right
                32, 16, # Bottom Right

                # Front of Head
                8, 16,
                8, 8,
                16, 8,
                16, 16,

                #
                24, 0,
                16, 0,
                16, 8,
                24, 8,

                #
                16, 0,
                8, 0,
                8, 8,
                16, 8,

                #
                8, 8,
                0, 8,
                0, 16,
                8, 16,

                16, 16,
                24, 16,
                24, 8,
                16, 8,

            ), dtype='f4')
        
        textureVerticesHat = numpy.array(
            (
                56, 16,
                56, 8,
                64, 8,
                64, 16,
                
                48, 16,
                48, 8,
                40, 8,
                40, 16,
                
                56, 0,
                48, 0,
                48, 8,
                56, 8,
                
                48, 0,
                40, 0,
                40, 8,
                48, 8,
                
                40, 8,
                32, 8,
                32, 16,
                40, 16,
                
                48, 16,
                56, 16,
                56, 8,
                48, 8,
                
            ), dtype='f4')
        

        textureVerticesHead.shape = (24, 2)
        textureVerticesHat.shape = (24, 2)

        textureVerticesHead *= 4
        textureVerticesHead[:, 1] *= 2
        
        textureVerticesHat *= 4
        textureVerticesHat[:, 1] *= 2

        self.texVerts = (textureVerticesHead, textureVerticesHat) 

        self.playerPos = {0:{}, -1:{}, 1:{}}
        self.playerTexture = {}
        self.revPlayerPos = {0:{}, -1:{}, 1:{}}
        self.inOtherDimension = {0: [], 1: [], -1: []}
        self.playercache = PlayerCache()

        self.markerList = DisplayList()
開發者ID:Iciciliser,項目名稱:MCEdit-Unified,代碼行數:97,代碼來源:player.py

示例7: __init__

    def __init__(self, editor):
        EditorTool.__init__(self, editor)

        self.filterModules = {}

        self.panel = FilterToolPanel(self)
開發者ID:LaChal,項目名稱:MCEdit-Unified,代碼行數:6,代碼來源:filter.py

示例8: __init__

 def __init__(self, *args, **kw):
     EditorTool.__init__(self, *args, **kw)
     self.optionsPanel = FillToolOptions(self)
開發者ID:MrMr01,項目名稱:mcedit,代碼行數:3,代碼來源:fill.py


注:本文中的editortools.editortool.EditorTool類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。