From f732cdaf7374fde737b503ec6966fb8cd8f4c32b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 17 Mar 2015 23:53:55 -0400 Subject: Map editor can now define actions to occur when the player goes off a specified edge of the map --- tools/mapedit/src/mapselect_combo.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tools/mapedit/src/mapselect_combo.h (limited to 'tools/mapedit/src/mapselect_combo.h') 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 @@ +#ifndef MAPSELECT_COMBO_H +#define MAPSELECT_COMBO_H + +#include + +#ifndef WX_PRECOMP +#include +#endif + +#include +#include + +class MapeditFrame; + +class MapSelectComboPopup : public wxTreeCtrl, public wxComboPopup { + public: + MapSelectComboPopup(wxTreeCtrl* mapTree, int initial); + void Init(); + bool Create(wxWindow* parent); + wxWindow* GetControl(); + wxString GetStringValue() const; + void OnPopup(); + void OnMouseClick(wxMouseEvent& event); + int GetSelectedMapID() const; + void SetSelectedMapID(int id); + + private: + void CopyNodes(wxTreeItemId from, wxTreeItemId to); + + wxTreeCtrl* mapTree; + int lastSelected = 0; + + wxDECLARE_EVENT_TABLE(); +}; + +#endif -- cgit 1.4.1