Home | Trees | Index | Help |
---|
|
object
--+ |LevelEditorTool
--+ |EntityTool
--+ | DecorationTool
Method Summary | |
---|---|
__init__(self,
level,
display)
| |
Return true if this tool should manipulate the given entity. | |
Inherited from EntityTool | |
Turn this tool on. | |
Add the given entity to the level, and mark it as applicable. | |
Called when the user clicks the left mouse button on an entity; by default, this method selects the entity. | |
Called when the user clicks the left mouse button on an empty area; by default, this creates a new entity. | |
Turn this tool off. | |
| |
Called when the user drags an entity with the left mouse button; by default, this moves the entity. | |
Called when the user drags in empty space with the left moues button; by default this moves the newly created entity. | |
| |
| |
| |
| |
| |
Select the subtool corresponding to the given icon | |
Called when the user starts dragging an entity with the left mouse button; by default, this does nothing. | |
Called when the user starts dragging in empty space with the left mouse button; by default, this creates a new entity and selects it. | |
Called when the user finishes dragging an entity with the left mouse button; by default, this does nothing. | |
Called when the user finishes dragging in empty space with the left mouse button; by default, this does nothing. | |
| |
| |
| |
| |
Return the relevant entity at the given world position, if there is one; otherwise, return None. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from LevelEditorTool | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
NoneType |
shortcut : The keyboard shortcut for this tool, or None if this tool
doesn't have a keyboard shortcut. |
Inherited from EntityTool | |
selection : The currently selected entity, or None if no entity is
selected | |
_context_menu : A pop-up menu widget, for manipulating the currently selected
entity. | |
_dragged_entity : When the user is dragging an entity, this points to that entity;
otherwise, it is None. | |
_infobox : A textbox widget, for displaying information about the currently
selected entity. | |
_listeners : Mouse input delegators. | |
_relevant_mark : A dictionary containing marker shapes that are used to highlight
entities that are relevant to this tool. | |
_selection_mark : A marker shape that is used to highlight the currently selected
entity. |
Class Variable Summary | |
---|---|
NoneType |
entity_factories : A list of entity constructors or factory functions, which take (x,y)
as input and return a new entity. |
str |
style = 'Cloud2'
|
Inherited from EntityTool | |
entity_factory : The currently selected entity factory function. | |
bool |
hide_body_markers = True
|
Method Details |
---|
__init__(self,
level,
display)
|
relevant(self, entity)Return true if this tool should manipulate the given entity.
|
Instance Variable Details |
---|
shortcutThe keyboard shortcut for this tool, orNone if this tool
doesn't have a keyboard shortcut.
|
Class Variable Details |
---|
style
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:44 2005 | http://epydoc.sf.net |