From 0d30e9b57229905f78e7bd60fe5d3cde72851f28 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Mar 2015 16:53:05 -0400 Subject: Rewrote map editor so a single file contains all maps Maps are viewed in a tree control on the left. They can be dragged and dropped. Maps are bolded when they are dirty. Saving saves expansion status and order of maps in tree. --- tools/mapedit/src/widget.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/mapedit/src/widget.h') diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index a660f82..34627bc 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h @@ -29,6 +29,7 @@ class MapeditWidget : public wxScrolledWindow { void SetEditMode(EditMode editMode); void StartAddingEntity(MapObject* object); void CancelAddingEntity(); + void SetMap(Map* map); MapeditFrame* frame; @@ -46,7 +47,7 @@ class MapeditWidget : public wxScrolledWindow { void SetTile(wxPoint pos); void SetZoomSize(int zoom); - Map* const map = nullptr; + Map* map = nullptr; wxBitmap tiles; TileWidget* tileWidget; bool mouseIsDown = false; -- cgit 1.4.1