summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-03-04 16:26:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-03-04 16:26:03 (GMT)
commit644e6770e43e5ed568b0cdc14d63f20869d7fccc (patch)
tree19e0b8b60df245d0972a3d7afb106f6954b931ee /src/game/GameView.h
parent3bbaa1a111e3770d2ce9b04f4b0f9688948d3e85 (diff)
downloadpowder-644e6770e43e5ed568b0cdc14d63f20869d7fccc.zip
powder-644e6770e43e5ed568b0cdc14d63f20869d7fccc.tar.gz
Slider and decoration colour changer
Diffstat (limited to 'src/game/GameView.h')
-rw-r--r--src/game/GameView.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h
index 716147c..a27ecf4 100644
--- a/src/game/GameView.h
+++ b/src/game/GameView.h
@@ -8,6 +8,7 @@
#include "interface/Window.h"
#include "interface/Point.h"
#include "interface/Button.h"
+#include "interface/Slider.h"
#include "ToolButton.h"
#include "Brush.h"
@@ -48,9 +49,14 @@ private:
ui::Button * pauseButton;
ui::Point currentMouse;
+ ui::Slider * colourRSlider;
+ ui::Slider * colourGSlider;
+ ui::Slider * colourBSlider;
+
bool drawModeReset;
ui::Point drawPoint1;
ui::Point drawPoint2;
+ void changeColour();
public:
GameView();
void AttachController(GameController * _c){ c = _c; }
@@ -64,6 +70,8 @@ public:
void NotifyActiveToolsChanged(GameModel * sender);
void NotifyUserChanged(GameModel * sender);
void NotifyZoomChanged(GameModel * sender);
+ void NotifyColourSelectorVisibilityChanged(GameModel * sender);
+ void NotifyColourSelectorColourChanged(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);