leveleditor 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.
-
leveleditor.
DebugDisplay
(obj, *attrs)[source]
-
class
leveleditor.
EditorToolbar
(rect, tools, *args, **kw)[source]
Bases: albow.openglwidgets.GLOrtho
-
currentToolTextureRect
= (0.0, 22.0, 24.0, 24.0)
-
drawToolbar
()[source]
-
getTooltipText
()[source]
-
gfont
= None
-
gl_draw
()[source]
-
mouse_down
(evt)[source]
-
parent_resized
(dw, dh)[source]
-
reloadTextures
()[source]
-
removeToolPanels
()[source]
-
selectTool
(toolNumber)[source]
pass a number outside the bounds to pick the selection tool
-
set_parent
(parent)[source]
-
set_update_ui
(v)[source]
-
showToolOptions
(toolNumber)[source]
-
toolNumberUnderMouse
(pos)[source]
-
toolTextureChanged
()[source]
-
toolbarRectInWindowCoords
()[source]
returns a rectangle (x, y, w, h) representing the toolbar’s
location in the window. use for hit testing.
-
toolbarSize
= (204, 24)
-
toolbarSizeForScreenWidth
(width)[source]
-
toolbarTextureSize
= (202.0, 22.0)
-
toolbarWidthRatio
= 0.5
-
tooltipText
-
tooltipsUp
= True
-
class
leveleditor.
LevelEditor
(mcedit)[source]
Bases: albow.openglwidgets.GLViewport
-
static
Notify
(msg)[source]
-
YesNoWidget
(msg)[source]
-
activeevent
(evt)[source]
-
addCopiedSchematic
(sch)[source]
-
addDebugString
(string)[source]
-
addExternalWidget
(obj)[source]
-
addExternalWidget_Dict
(provided_fields)[source]
-
addExternalWidget_Widget
(obj)[source]
-
addOperation
(op)[source]
-
addUnsavedEdit
()[source]
-
addWorker
(chunkWorker)[source]
-
allBlend
= False
-
analyzeBox
(level, box)[source]
-
anchor
= 'tlbr'
-
askLoadWorld
(*args, **kw)
-
askOpenFile
()[source]
-
averageCPS
= 0.0
-
averageFPS
= 0.0
-
blockFaceUnderCursor
-
changeViewDistance
(dist)[source]
-
chunksToSelection
()[source]
-
clearUnsavedEdits
(saving=False)[source]
-
closeEditor
()[source]
-
confirmConstruction
()[source]
-
copyPanel
= None
-
copySelection
()[source]
-
createCopyPanel
()[source]
-
createNewLevel
()[source]
-
createRenderers
()[source]
-
cutSelection
()[source]
-
decreaseReach
()[source]
-
defaultCameraToolDistance
= 10
-
deleteAllCopiedSchematics
()[source]
-
deleteCopiedSchematic
(sch)[source]
-
deleteSelectedBlocks
()[source]
-
deleteWaypoint
()[source]
-
deselect
()[source]
-
discardAllChunks
()[source]
-
doWorkUnit
(onMenu=False)[source]
-
drawConstructionCube
(box, color, texture=None)[source]
-
drawStars
()[source]
-
static
drawString
(x, y, color, string)[source]
-
drawWireCubeReticle
(color=(1.0, 1.0, 1.0, 1.0), position=None)[source]
-
endSelection
()[source]
-
exportSchematic
(schematic)[source]
-
fboCache
= None
-
fractionalReachAdjustment
= True
-
static
freezeStatus
(string)[source]
-
static
genSixteenBlockTexture
()[source]
-
generateStars
()[source]
-
getFrameDuration
()[source]
-
getLastCopiedSchematic
()[source]
-
gl_draw
()[source]
-
gotoDimension
(dimNo)[source]
-
gotoEarth
(*args, **kw)
-
gotoLastWaypoint
(lastPos)[source]
-
gotoNether
(*args, **kw)
-
gotoWaypoint
()[source]
-
handleMemoryError
()[source]
-
hideDebugPanel
()[source]
-
idleevent
(e)[source]
-
increaseReach
()[source]
-
infoPanel
= None
-
initWindowCaption
()[source]
-
invalidateAllChunks
()[source]
-
invalidateBox
(box)[source]
-
invalidateChunks
(c)[source]
-
is_gl_container
= True
-
key_down
(evt)[source]
-
key_up
(evt)[source]
-
lastRendererDraw
= datetime.datetime(2017, 2, 5, 10, 21, 49, 912000)
-
level
-
loadFile
(filename, addToRecent=True)[source]
Called when the user picks a level using Load World or Open File.
-
loadLevel
(level, saveChanges=False)[source]
Called to load a level, world, or dimension into the editor and display it in the viewport.
-
loadWorldFromFTP
()[source]
-
lockAcquired
()[source]
-
lockLost
()[source]
-
longDistanceMode
-
maxCopies
Copy stack size.
-
maxDebug
= 1
-
mouseEntered
= True
-
mouseLookOff
()[source]
-
mouseLookOn
()[source]
-
mouseSensitivity
= 5.0
-
mouseWasCaptured
= False
-
mouse_down
(evt)[source]
-
mouse_down_session
(evt)[source]
-
mouse_drag
(evt)[source]
-
mouse_up
(evt)[source]
-
netherPanel
= None
-
no
()[source]
-
onscreen
= True
-
pasteSchematic
(schematic)[source]
-
pasteSelection
()[source]
-
performWithRetry
(op)[source]
-
static
postMouseMoved
()[source]
-
quit
()[source]
-
recordUndo
= True
-
redo
()[source]
-
reload
(*args, **kw)
-
reloadToolbar
()[source]
-
removeNetherPanel
()[source]
-
removeUnsavedEdit
()[source]
-
removeWorker
(chunkWorker)[source]
-
repairRegions
()[source]
-
resetReach
()[source]
-
saveAs
(*args, **kw)
-
saveFile
(*args, **kw)
-
saveInfoLabelText
-
selectAll
()[source]
-
selectionBox
()[source]
-
selectionChanged
()[source]
-
selectionSize
()[source]
-
selectionToChunks
(remove=False, add=False)[source]
-
set_update_ui
(v)[source]
-
shouldLoadAndRender
= True
-
showAnalysis
(*args, **kw)
-
showChunkRendererInfo
()[source]
-
showControls
()[source]
-
showCreateDialog
()[source]
-
showDebugPanel
()[source]
-
showGotoPanel
()[source]
-
static
showProgress
(*a, **kw)[source]
-
showWaypointsDialog
()[source]
-
showWorldInfo
(*args, **kw)
-
starColor
= None
-
statusText
-
swapDebugLevels
()[source]
-
swapViewDistance
()[source]
-
static
swapViewports
()[source]
-
thumbCache
= None
-
toolMouseDown
(evt, f)[source]
-
toolMouseUp
(evt, f)[source]
-
toolbar
= None
-
turn_off_focus
()[source]
-
undo
(*args, **kw)
-
updateCopyPanel
()[source]
-
updateInspectionString
(blockPosition)[source]
-
uploadChanges
()[source]
-
viewDistanceLabelText
-
viewMode
-
yes
()[source]