editortools package¶
Submodules¶
editortools.blockpicker module¶
-
class
editortools.blockpicker.
BlockPicker
(blockInfo, materials, *a, **kw)[source]¶ Bases:
albow.dialogs.Dialog
-
blockInfo
¶
-
is_gl_container
= True¶
-
editortools.blockview module¶
-
class
editortools.blockview.
BlockButton
(materials, blockInfo=None, ref=None, recentBlocks=None, *a, **kw)[source]¶ Bases:
albow.controls.ButtonBase
,glbackground.Panel
-
blockInfo
¶
-
labelText
¶
-
recentBlockLimit
= 7¶
-
recentBlockView
= None¶
-
tooltipText
¶
-
editortools.brush module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.brush.
BrushPanel
(tool)[source]¶ Bases:
glbackground.Panel
-
createField
(key, value)[source]¶ Creates a field matching the input type. :param key, key to store the value in, also the name of the label if type is float or int. :param value, default value for the field.
-
createPresetRow
()[source]¶ Creates the brush preset widget, called by BrushPanel when creating the panel.
-
static
getBrushFileList
()[source]¶ Returns a list of strings of all .preset files in the brushes directory.
-
presetSelected
()[source]¶ Called ons selecting item on Load Preset, to check if remove preset is selected. Calls removePreset if true, loadPreset(name) otherwise.
-
tool
= None¶ presets, modeRow and styleRow are always created, no matter what brush is selected. styleRow can be disabled by putting disableStyleButton = True in the brush file.
-
-
class
editortools.brush.
BrushTool
(*args)[source]¶ Bases:
editortools.clone.CloneTool
-
H
¶
-
L
¶
-
W
¶
-
brushModes
= {}¶
-
cameraDistance
¶
-
decreaseToolReach
()[source]¶ Called on scrolling down (default). Decreases the reticleOffset (distance between face and brush center) by 1. (unless you’re in right-click mode and don’t have long-distance mode enabled)
-
dragLineToPoint
(point)[source]¶ Calculates the new point and adds it to self.draggedPositions. Called by mouseDown and mouseDrag
-
drawTerrainReticle
()[source]¶ Draws the white reticle where the cursor is pointing. Called by leveleditor.render
-
drawToolReticle
()[source]¶ Draws a yellow reticle at every position where you dragged the brush. Called by leveleditor.render
-
getBrushSize
()[source]¶ Returns an array of the sizes of the brush. Called by methods that need the size of the brush like createBrushMask
-
getReticlePoint
(pos, direction)[source]¶ Calculates the position of the reticle. Called by drawTerrainReticle.
-
importBrushModes
()[source]¶ Imports all Stock Brush Modes from their files. Called by setupBrushModes
-
increaseToolReach
()[source]¶ Called on scrolling up (default). Increases the reticleOffset (distance between face and brush center) by 1. (unless you’re in right-click mode and don’t have long-distance mode enabled)
-
loadBrushPreset
(name)[source]¶ Loads a brush preset name.preset :param name, name of the preset to load.
-
mouseDown
(*args, **kw)¶
-
mouseDrag
(*args, **kw)¶
-
mouseUp
(*args, **kw)¶
-
offsetMax
()[source]¶ Sets the Brush Offset (space between face the cursor is pointing at and center of brush. Called by toolSelected if updateBrushOffset is Checked in BrushOptions
-
optionBackup
= None¶
-
options
= {'Style': 'Round'}¶
-
previewDirty
= False¶
-
recentBlocks
= {}¶
-
resetToolDistance
()[source]¶ Resets the distance of the brush in right-click mode, appropriate to the size of the brush.
-
reticleOffset
¶
-
roll
(blocksOnly=False)[source]¶ Rolls the brush. :keyword blocksOnly: Also roll the data value of the block we’re brushing with.
-
rotate
(blocksOnly=False)[source]¶ Rotates the brush. :keyword blocksOnly: Also rotate the data value of the block we’re brushing with.
-
saveBrushPreset
(name)[source]¶ Saves current brush presets in a file name.preset :param name, name of the file to store the preset in.
-
settings
= {'brushAlpha': 1.0, 'updateBrushOffset': False, 'chooseBlockImmediately': False}¶
-
setupBrushModes
()[source]¶ Makes a dictionary of all mode names and their corresponding module. If no name is found, it uses the name of the file. Creates dictionary entries for all inputs in import brush modules. Called by toolSelected
-
setupPreview
(*args, **kw)¶
-
statusText
¶
-
swapBrushStyles
()[source]¶ Swaps the BrushStyleButton to the next Brush Style. Called by pressing BrushStyleButton in panel.
-
toolIconName
= 'brush'¶
-
toolReselected
()[source]¶ Called on reselecting the brush. Makes a blockpicker show up for the Main Block of the brush mode.
-
toolSelected
()[source]¶ Applies options of BrushToolOptions. It then imports all brush modes from their files, sets up the panel, and sets up the brush preview. Called on pressing “2” or pressing the brush button in the hotbar when brush is not selected.
-
tooltipText
= 'Brush\nRight-click for options'¶
-
tryImport
(name, dir)[source]¶ Imports a brush module. Called by importBrushModules :param name, name of the module to import.
-
worldTooltipText
¶ Displays the corresponding tooltip if ALT is pressed. Called by leveleditor every tick.
-
-
editortools.brush.
createBrushMask
(shape, style='Round', offset=(0, 0, 0), box=None, chance=100, hollow=False)[source]¶ Return a boolean array for a brush with the given shape and style. If ‘offset’ and ‘box’ are given, then the brush is offset into the world and only the part of the world contained in box is returned as an array. :param shape, UNKWOWN :keyword style, style of the brush. Round if not given. :keyword offset, UNKWOWN :keyword box, UNKWOWN :keyword chance, also known as Noise. Input in stock-brushes like Fill and Replace. :keyword hollow, input to calculate a hollow brush.
editortools.chunk module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.chunk.
ChunkTool
(editor)[source]¶ Bases:
editortools.editortool.EditorTool
-
createChunks
(*args, **kw)¶
-
destroyChunks
(*args, **kw)¶
-
dontRepopChunks
(*args, **kw)¶
-
pruneChunks
(*args, **kw)¶
-
relightChunks
(*args, **kw)¶
-
repopChunks
(*args, **kw)¶
-
statusText
¶
-
toolIconName
= 'chunk'¶
-
tooltipText
= 'Chunk Control'¶
-
worldTooltipText
¶
-
-
class
editortools.chunk.
ChunkToolPanel
(tool, *a, **kw)[source]¶ Bases:
glbackground.Panel
-
chunkSizeText
¶
-
editortools.clone module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.clone.
BlockCopyOperation
(editor, sourceLevel, sourceBox, destLevel, destPoint, copyAir, copyWater, copyBiomes, staticCommands, moveSpawnerPos, regenerateUUID)[source]¶
-
class
editortools.clone.
CloneOperation
(editor, sourceLevel, sourceBox, originSourceBox, destLevel, destPoint, copyAir, copyWater, copyBiomes, staticCommands, moveSpawnerPos, regenerateUUID, repeatCount)[source]¶ Bases:
editortools.operation.Operation
-
selectOriginalAfterRepeat
= True¶
-
-
class
editortools.clone.
CloneTool
(*args)[source]¶ Bases:
editortools.editortool.EditorTool
-
cameraDistance
¶
-
canRotateLevel
¶
-
chunkAlign
¶
-
cloneCameraDistance
= 0¶
-
color
= (0.3, 1.0, 0.3, 0.19)¶
-
confirm
(*args, **kw)¶
-
copyAir
¶
-
copyBiomes
¶
-
copyWater
¶
-
draggingColor
= (0.77, 1.0, 0.55, 0.05)¶
-
draggingFace
= None¶
-
draggingStartPoint
= None¶
-
draggingY
= 0¶
-
flip
(*args, **kw)¶
-
level
= None¶
-
mirror
(*args, **kw)¶
-
mouseDown
(*args, **kw)¶
-
mouseUp
(*args, **kw)¶
-
moveSpawnerPos
¶
-
panelClass
¶ alias of
CloneToolPanel
-
placeImmediately
¶
-
regenerateUUID
¶
-
repeatCount
= 1¶
-
rescaleLevel
(*args, **kw)¶
-
roll
(*args, **kw)¶
-
rotate
(*args, **kw)¶
-
scaleFactor
¶
-
staticCommands
¶
-
statusText
¶
-
surfaceBuild
= True¶
-
toolIconName
= 'clone'¶
-
tooltipText
= 'Clone\nRight-click for options'¶
-
updateSchematic
(*args, **kw)¶
-
-
class
editortools.clone.
CloneToolPanel
(tool, editor, _parent=None)[source]¶ Bases:
glbackground.Panel
-
useOffsetInput
= True¶
-
-
class
editortools.clone.
ConstructionTool
(*args)[source]¶ Bases:
editortools.clone.CloneTool
-
loadLevel
(*args, **kw)¶
-
originalLevelSize
= (0, 0, 0)¶
-
panelClass
¶ alias of
ConstructionToolPanel
-
statusText
¶
-
surfaceBuild
= True¶
-
toolIconName
= 'crane'¶
-
tooltipText
= 'Import\nRight-click for options'¶
-
-
class
editortools.clone.
ConstructionToolPanel
(tool, editor, _parent=None)[source]¶ Bases:
editortools.clone.CloneToolPanel
-
useOffsetInput
= False¶
-
editortools.editortool module¶
-
class
editortools.editortool.
EditorTool
(editor)[source]¶ Bases:
object
-
cameraDistance
¶
-
cancel
()[source]¶ cancel the current operation. called when a different tool is picked, escape is pressed, or etc etc
-
drawToolMarkers
()[source]¶ draw any markers the tool wants to leave in the field while another tool is out. e.g. the current selection for SelectionTool
-
drawToolReticle
()[source]¶ get self.editor.blockFaceUnderCursor for pos and direction. pos is the coordinates of the block under the cursor, direction indicates which face is under it. draw something to let the user know where the tool is going to act. e.g. a transparent block for the block placing tool.
-
edge_factor
= 0.1¶
-
hotkey
¶
-
maxBlocks
¶
-
mouseDown
(evt, pos, direction)[source]¶ pos is the coordinates of the block under the cursor, direction indicates which face is under it. the tool performs its action on the specified block
-
optionsPanel
= None¶
-
panel
= None¶
-
previewRenderer
= None¶
-
selectionBox
()[source]¶ selection corners, ordered, with the greater point moved up one block for use as the ending value of an array slice
-
selectionBoxForCorners
(p1, p2)[source]¶ considers p1,p2 as the marked corners of a selection. returns a BoundingBox containing all the blocks within.
-
selectionChanged
()[source]¶ called when the selection changes due to nudge. other tools can be active.
-
selectionCorners
()[source]¶ returns the positions of the two selection corners as a pair of 3-tuples, each ordered x,y,z
-
statusText
¶
-
surfaceBuild
= False¶
-
toolIconName
= None¶
-
tooltipText
= '???'¶
-
worldTooltipText
= None¶
-
editortools.fill module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.fill.
BlockFillOperation
(editor, destLevel, destBox, blockInfo, blocksToReplace, noData=False)[source]¶
-
class
editortools.fill.
FillTool
(*args, **kw)[source]¶ Bases:
editortools.editortool.EditorTool
-
blockInfo
¶
-
chooseBlockImmediately
¶
-
chooseBlockImmediatelyReplace
¶
-
color
= (0.75, 1.0, 1.0, 0.7)¶
-
confirm
(*args, **kw)¶
-
mouseDown
(*args, **kw)¶
-
noData
= False¶
-
replaceBlockInfo
= <Block Air (0:0)>¶
-
replacing
= False¶
-
statusText
¶
-
swap
(*args, **kw)¶
-
toolIconName
= 'fill'¶
-
tooltipText
= 'Fill and Replace\nRight-click for options'¶
-
worldTooltipText
¶
-
editortools.filter module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.filter.
FilterModuleOptions
(tool, module, *args, **kw)[source]¶ Bases:
albow.widget.Widget
-
is_gl_container
= True¶
-
options
¶
-
-
class
editortools.filter.
FilterTool
(editor)[source]¶ Bases:
editortools.editortool.EditorTool
-
filterNames
¶
-
showPanel
(*args, **kw)¶
-
statusText
¶
-
toolIconName
= 'filter'¶
-
tooltipText
= 'Filter'¶
-
-
class
editortools.filter.
FilterToolPanel
(tool)[source]¶ Bases:
glbackground.Panel
-
BACKUP_FILTER_JSON
= False¶ If set to true, the filter.json is backed up to the hard disk every time it’s edited. The default is false, which makes the file save only whenever the tool gets closed. If MCEdit were to crash, any recorded macros would not be saved.
-
filter_json
¶
-
macroSelected
¶
-
-
class
editortools.filter.
MacroModuleOptions
(macro_data, *args, **kw)[source]¶ Bases:
albow.widget.Widget
-
is_gl_container
= True¶
-
options
¶
-
-
class
editortools.filter.
SingleFileChooser
(file_types=None, operation=0, **kwds)[source]¶ Bases:
albow.widget.Widget
-
OPEN_FILE
= 0¶
-
SAVE_FILE
= 1¶
-
-
editortools.filter.
addNumField
(page, optionName, oName, val, min_value=None, max_value=None, increment=0.1)[source]¶
-
editortools.filter.
tryImport
(_root, name, org_lang, stock=False, subFolderString='', unicode_name=False, notify=True)¶
editortools.nbtexplorer module¶
-
class
editortools.nbtexplorer.
NBTExplorerTool
(editor)[source]¶ Bases:
editortools.editortool.EditorTool
...
-
alreadyHidden
¶
-
tooltipText
= 'NBT Explorer\nDive into level NBT structure.\nRight-click for options'¶
-
-
class
editortools.nbtexplorer.
NBTExplorerToolPanel
(editor, nbtObject=None, fileName=None, savePolicy=0, dataKeyName='Data', close_text='Close', load_text='Open', **kwargs)[source]¶ Bases:
glbackground.Panel
...
-
class
editortools.nbtexplorer.
NBTTree
(*args, **kwargs)[source]¶ Bases:
albow.tree.Tree
-
class
editortools.nbtexplorer.
SlotEditor
(inventory, data, *args, **kwargs)[source]¶ Bases:
albow.dialogs.Dialog
-
class
editortools.nbtexplorer.
TAG_List_Type
(value=None)[source]¶ Bases:
albow.widget.Widget
-
choices
= ['Short', 'String', 'Integral', u'Floating point (TAG_Float)', 'Byte Array', 'List', u'Floating point (TAG_Double)', 'Int Array', 'Long', 'Compound', 'Byte', 'Short Array']¶
-
value
¶
-
-
editortools.nbtexplorer.
create_TAG_Byte
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Byte_Array
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Double
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Float
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Int
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Int_Array
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Long
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Short
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_Short_Array
(self, i_type, i_name, i_value)¶
-
editortools.nbtexplorer.
create_TAG_String
(self, i_type, i_name, i_value)¶
editortools.nudgebutton module¶
Bases:
glbackground.GLBackground
A button that captures movement keys while pressed and sends them to a listener as nudge events. Poorly planned.
editortools.operation module¶
-
class
editortools.operation.
Operation
(editor, level)[source]¶ Bases:
object
-
changedLevel
= True¶
-
dirtyBox
()[source]¶ The region modified by the operation. Return None to indicate no blocks were changed.
-
redoLevel
= None¶
-
undo
()[source]¶ Undo the operation. Ought to leave the Operation in a state where it can be performed again. Default implementation copies all chunks in undoLevel back into level. Non-chunk-based operations should override this.
-
undoLevel
= None¶
-
editortools.player module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.player.
PlayerAddOperation
(tool)[source]¶ Bases:
editortools.operation.Operation
-
playerTag
= None¶
-
-
class
editortools.player.
PlayerMoveOperation
(tool, pos, player='Player', yp=(None, None))[source]¶ Bases:
editortools.operation.Operation
-
redoPos
= None¶
-
undoPos
= None¶
-
-
class
editortools.player.
PlayerPositionPanel
(tool)[source]¶ Bases:
glbackground.Panel
-
selectedPlayer
¶
-
-
class
editortools.player.
PlayerPositionTool
(*args)[source]¶ Bases:
editortools.editortool.EditorTool
-
addPlayer
(*args, **kw)¶
-
markerLevel
= None¶
-
mouseDown
(*args, **kw)¶
-
movePlayer
(*args, **kw)¶
-
movePlayerToCamera
(*args, **kw)¶
-
movingPlayer
= None¶
-
panel
= None¶
-
recordMove
= True¶
-
reloadSkins
(*args, **kw)¶
-
removePlayer
(*args, **kw)¶
-
surfaceBuild
= True¶
-
toolIconName
= 'player'¶
-
toolReselected
(*args, **kw)¶
-
toolSelected
(*args, **kw)¶
-
tooltipText
= 'Players'¶
-
-
class
editortools.player.
PlayerRemoveOperation
(tool, player='Player (Single Player)')[source]¶ Bases:
editortools.operation.Operation
-
undoTag
= None¶
-
-
class
editortools.player.
PlayerSpawnMoveOperation
(tool, pos)[source]¶ Bases:
editortools.operation.Operation
-
redoPos
= None¶
-
undoPos
= None¶
-
-
class
editortools.player.
PlayerSpawnPositionTool
(*args)[source]¶ Bases:
editortools.player.PlayerPositionTool
-
mouseDown
(*args, **kw)¶
-
spawnProtection
¶
-
statusText
¶
-
surfaceBuild
= True¶
-
toolIconName
= 'playerspawn'¶
-
toolReselected
(*args, **kw)¶
-
tooltipText
= 'Move Spawn Point\nRight-click for options'¶
-
editortools.select module¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
class
editortools.select.
NudgeSelectionOperation
(selectionTool, direction)[source]¶ Bases:
editortools.operation.Operation
-
changedLevel
= False¶
-
oldSelection
= None¶
-
-
class
editortools.select.
SelectionOperation
(selectionTool, points)[source]¶ Bases:
editortools.operation.Operation
-
changedLevel
= False¶
-
-
class
editortools.select.
SelectionTool
(editor)[source]¶ Bases:
editortools.editortool.EditorTool
-
alpha
= 0.25¶
-
analyzeSelection
(*args, **kw)¶
-
bottomLeftColor
= (0.0, 0.0, 1.0)¶
-
bottomLeftPoint
= None¶
-
bottomLeftSelectionColor
= (0.75, 0.62, 1.0)¶
-
chunkMode
¶
-
clickSelectionInProgress
= False¶
-
color
= (0.7, 0.0, 0.7)¶
-
copySelection
(*args, **kw)¶
-
currentCorner
¶
-
currentCornerName
¶
-
cutSelection
(*args, **kw)¶
-
deleteBlocks
(*args, **kw)¶
-
deleteEntities
(*args, **kw)¶
-
deleteTileTicks
(*args, **kw)¶
-
dragResizeDimension
= None¶
-
dragResizeFace
= None¶
-
dragResizePosition
= None¶
-
dragStartPoint
= None¶
-
exportSelection
(*args, **kw)¶
-
nudgeBlocks
(*args, **kw)¶
-
nudgePanel
= None¶
-
openCommands
(*args, **kw)¶
-
selectChunks
(*args, **kw)¶
-
selectionInProgress
= False¶
-
showPreviousSelection
¶
-
statusText
¶
-
surfaceBuild
= False¶
-
toolIconName
= 'selection2'¶
-
tooltipText
= 'Select\nRight-click for options'¶
-
topRightColor
= (0.89, 0.89, 0.35)¶
-
topRightPoint
= None¶
-
topRightSelectionColor
= (1, 0.99, 0.65)¶
-
worldTooltipText
¶
-
-
class
editortools.select.
SelectionToolPanel
(tool, editor)[source]¶ Bases:
glbackground.Panel
editortools.thumbview module¶
editortools.tooloptions module¶
Module contents¶
Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.