diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
| commit | 281bdf956a646fd8c9944e9a44f867c984792216 (patch) | |
| tree | ba0297d2125ac22d22c873e012a8f0604e9e3a86 /tools/mapedit/src/widget.h | |
| parent | 103587c2d5f9deb20e549a86cdf5023b429cc6a1 (diff) | |
| download | therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.gz therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.bz2 therapy-281bdf956a646fd8c9944e9a44f867c984792216.zip | |
Map editor can now edit properties for objects (breaks main game build)
Diffstat (limited to 'tools/mapedit/src/widget.h')
| -rw-r--r-- | tools/mapedit/src/widget.h | 7 |
1 files changed, 6 insertions, 1 deletions
| diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index 864e299..937b699 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h | |||
| @@ -16,7 +16,7 @@ class MapeditFrame; | |||
| 16 | class TileWidget; | 16 | class TileWidget; |
| 17 | class Map; | 17 | class Map; |
| 18 | class MapObject; | 18 | class MapObject; |
| 19 | struct MapObjectEntry; | 19 | class MapObjectEntry; |
| 20 | 20 | ||
| 21 | #include "consts.h" | 21 | #include "consts.h" |
| 22 | 22 | ||
| @@ -76,5 +76,10 @@ class MapeditWidget : public wxScrolledCanvas { | |||
| 76 | DECLARE_DYNAMIC_CLASS(MapeditWidget) | 76 | DECLARE_DYNAMIC_CLASS(MapeditWidget) |
| 77 | DECLARE_EVENT_TABLE() | 77 | DECLARE_EVENT_TABLE() |
| 78 | }; | 78 | }; |
| 79 | |||
| 80 | // sends when an entity is selected OR deselected. | ||
| 81 | // client data will be a pointer to the MapObjectEntry if selection. | ||
| 82 | // client data will be nullptr if deselection. | ||
| 83 | wxDECLARE_EVENT(EVT_MAP_SELECTED_ENTITY, wxCommandEvent); | ||
| 79 | 84 | ||
| 80 | #endif | 85 | #endif |
