summaryrefslogtreecommitdiff
path: root/src/gui/game/GameModel.h
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-15 03:50:26 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-15 03:50:26 (GMT)
commit94d21a1679749df49342903545192254a27f8ffc (patch)
tree81d4f9771b4821ad29b0dee0240febcb4e08280e /src/gui/game/GameModel.h
parentab3675d6eea1ce6eeeac713ed44f5cb591ff820f (diff)
downloadpowder-94d21a1679749df49342903545192254a27f8ffc.zip
powder-94d21a1679749df49342903545192254a27f8ffc.tar.gz
when called with no arguments, some tpt. functions will act as get functions (unfinished)
Also, redo some menu stuff to use int's instead of Menu *s, and fix bug with toggleable buttons being toggled without triggering their actions
Diffstat (limited to 'src/gui/game/GameModel.h')
-rw-r--r--src/gui/game/GameModel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/game/GameModel.h b/src/gui/game/GameModel.h
index f8ccfb5..dd54d91 100644
--- a/src/gui/game/GameModel.h
+++ b/src/gui/game/GameModel.h
@@ -53,7 +53,7 @@ private:
vector<Menu*> menuList;
vector<QuickOption*> quickOptions;
- Menu * activeMenu;
+ int activeMenu;
int currentBrush;
vector<Brush *> brushList;
SaveInfo * currentSave;
@@ -168,8 +168,8 @@ public:
void ClearSimulation();
vector<Menu*> GetMenuList();
vector<QuickOption*> GetQuickOptions();
- void SetActiveMenu(Menu * menu);
- Menu * GetActiveMenu();
+ void SetActiveMenu(int menuID);
+ int GetActiveMenu();
void FrameStep(int frames);
User GetUser();
void SetUser(User user);