| Trees | Indices | Help |
|---|
|
|
Code for the GUI tools that allow the user to edit the map. This is used by the mapgrid module.
|
|||
|
EditorTool Base class for tools used in the map editor. |
|||
| TileTool | |||
| TileDeleteTool | |||
| TileSelectTool | |||
| TileDrawTool | |||
|
ShapeTool Base class for tools that draw physics shapes |
|||
| PhysicsSelectTool | |||
| CircleDrawTool | |||
| PolygonDrawTool | |||
| LightDrawTool | |||
|
|||
|
|||
|
|||
|
|||
|
|||
TILE_DRAW_ID = 0
|
|||
TILE_DELETE_ID = 1
|
|||
PHYSICS_SELECT_ID = 2
|
|||
CIRCLE_DRAW_ID = 3
|
|||
POLYGON_DRAW_ID = 4
|
|||
LIGHT_DRAW_ID = 5
|
|||
__package__ =
|
|||
|
|||
Return the ix and iy snapped to the nearest division between tiles This is used for physics drawing
|
Translates mouse coordinates to tile coordinates
|
Returns the coordinates of a rectangle whose edges are snapped to the divisions between tiles. The returned value is in pixel units in the form (x, y, w, h)
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 6 15:18:45 2009 | http://epydoc.sourceforge.net |