diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 23:53:55 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 23:53:55 -0400 |
| commit | f732cdaf7374fde737b503ec6966fb8cd8f4c32b (patch) | |
| tree | f7fa3122f30ee98a5984cf7e5fb0260c6c6c1148 /tools/mapedit/src/mapselect_combo.h | |
| parent | b2ad90fef0e31a1d8635b817940d9bf71320b588 (diff) | |
| download | therapy-f732cdaf7374fde737b503ec6966fb8cd8f4c32b.tar.gz therapy-f732cdaf7374fde737b503ec6966fb8cd8f4c32b.tar.bz2 therapy-f732cdaf7374fde737b503ec6966fb8cd8f4c32b.zip | |
Map editor can now define actions to occur when the player goes off a specified edge of the map
Diffstat (limited to 'tools/mapedit/src/mapselect_combo.h')
| -rw-r--r-- | tools/mapedit/src/mapselect_combo.h | 36 |
1 files changed, 36 insertions, 0 deletions
| diff --git a/tools/mapedit/src/mapselect_combo.h b/tools/mapedit/src/mapselect_combo.h new file mode 100644 index 0000000..9f0fe25 --- /dev/null +++ b/tools/mapedit/src/mapselect_combo.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #ifndef MAPSELECT_COMBO_H | ||
| 2 | #define MAPSELECT_COMBO_H | ||
| 3 | |||
| 4 | #include <wx/wxprec.h> | ||
| 5 | |||
| 6 | #ifndef WX_PRECOMP | ||
| 7 | #include <wx/wx.h> | ||
| 8 | #endif | ||
| 9 | |||
| 10 | #include <wx/combo.h> | ||
| 11 | #include <wx/treectrl.h> | ||
| 12 | |||
| 13 | class MapeditFrame; | ||
| 14 | |||
| 15 | class MapSelectComboPopup : public wxTreeCtrl, public wxComboPopup { | ||
| 16 | public: | ||
| 17 | MapSelectComboPopup(wxTreeCtrl* mapTree, int initial); | ||
| 18 | void Init(); | ||
| 19 | bool Create(wxWindow* parent); | ||
| 20 | wxWindow* GetControl(); | ||
| 21 | wxString GetStringValue() const; | ||
| 22 | void OnPopup(); | ||
| 23 | void OnMouseClick(wxMouseEvent& event); | ||
| 24 | int GetSelectedMapID() const; | ||
| 25 | void SetSelectedMapID(int id); | ||
| 26 | |||
| 27 | private: | ||
| 28 | void CopyNodes(wxTreeItemId from, wxTreeItemId to); | ||
| 29 | |||
| 30 | wxTreeCtrl* mapTree; | ||
| 31 | int lastSelected = 0; | ||
| 32 | |||
| 33 | wxDECLARE_EVENT_TABLE(); | ||
| 34 | }; | ||
| 35 | |||
| 36 | #endif | ||
