summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-29 13:58:56 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-29 13:58:56 (GMT)
commitf8a6d2ea1f8f6789645279f69471c13c7caa352b (patch)
treeb72c796018bca6244e39ecf4ca1db8d4770a51b0 /src/game/GameView.h
parent716ac44c29a06e9a0e6267b50e263a65f7aba8ec (diff)
downloadpowder-f8a6d2ea1f8f6789645279f69471c13c7caa352b.zip
powder-f8a6d2ea1f8f6789645279f69471c13c7caa352b.tar.gz
Textboxes for decoration, addresses "No text boxes in deco editor to directly edit the values" in issue #23
Diffstat (limited to 'src/game/GameView.h')
-rw-r--r--src/game/GameView.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h
index 9010e4a..648faec 100644
--- a/src/game/GameView.h
+++ b/src/game/GameView.h
@@ -11,6 +11,7 @@
#include "interface/Point.h"
#include "interface/Button.h"
#include "interface/Slider.h"
+#include "interface/Textbox.h"
#include "ToolButton.h"
#include "RenderPreset.h"
#include "Brush.h"
@@ -75,6 +76,11 @@ private:
ui::Slider * colourBSlider;
ui::Slider * colourASlider;
+ ui::Textbox * colourRValue;
+ ui::Textbox * colourGValue;
+ ui::Textbox * colourBValue;
+ ui::Textbox * colourAValue;
+
bool drawModeReset;
ui::Point drawPoint1;
ui::Point drawPoint2;
@@ -93,7 +99,8 @@ private:
int lastOffset;
void setToolButtonOffset(int offset);
- void changeColour();
+ void changeColourSlider();
+ void changeColourText();
virtual ui::Point lineSnapCoords(ui::Point point1, ui::Point point2);
virtual ui::Point rectSnapCoords(ui::Point point1, ui::Point point2);