summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-22 23:24:49 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-22 23:24:49 (GMT)
commit8c0678fa48f9598a5ade2d4960c46bfea7e6abef (patch)
tree880535e7984c24948d345932f680ef806baa4cec /src/game/GameView.h
parent19c1fa5dcb4c4a2ba9d692e136b17da316a2631b (diff)
downloadpowder-8c0678fa48f9598a5ade2d4960c46bfea7e6abef.zip
powder-8c0678fa48f9598a5ade2d4960c46bfea7e6abef.tar.gz
Begining menu, tool
Diffstat (limited to 'src/game/GameView.h')
-rw-r--r--src/game/GameView.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h
index 85a96e7..c27c2cc 100644
--- a/src/game/GameView.h
+++ b/src/game/GameView.h
@@ -1,6 +1,7 @@
#ifndef GAMEVIEW_H
#define GAMEVIEW_H
+#include <vector>
#include <queue>
#include "GameController.h"
#include "GameModel.h"
@@ -22,6 +23,8 @@ private:
Renderer * ren;
Brush * activeBrush;
//UI Elements
+ vector<ui::Button*> menuButtons;
+ vector<ui::Button*> toolButtons;
ui::Button * searchButton;
ui::Button * reloadButton;
ui::Button * saveSimulationButton;
@@ -41,6 +44,8 @@ public:
void NotifyPausedChanged(GameModel * sender);
void NotifySaveChanged(GameModel * sender);
void NotifyBrushChanged(GameModel * sender);
+ void NotifyMenuListChanged(GameModel * sender);
+ void NotifyToolListChanged(GameModel * sender);
virtual void OnMouseMove(int x, int y, int dx, int dy);
virtual void OnMouseDown(int x, int y, unsigned button);
virtual void OnMouseUp(int x, int y, unsigned button);
@@ -49,6 +54,7 @@ public:
//virtual void OnKeyRelease(int key, bool shift, bool ctrl, bool alt) {}
virtual void OnTick(float dt);
virtual void OnDraw();
+ class MenuAction;
};
#endif // GAMEVIEW_H