summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-01 16:55:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-01 16:55:27 (GMT)
commit618e29d5d487a2215628b5cf70ccc72462878201 (patch)
treeb7a940375cf681162e9e6522cfae3e427c9465e5 /src/game/GameModel.h
parent0a67e560f4ca85f16c24fa90cbcefa7e07bac62f (diff)
downloadpowder-618e29d5d487a2215628b5cf70ccc72462878201.zip
powder-618e29d5d487a2215628b5cf70ccc72462878201.tar.gz
Colour picker and presets for decorations
Diffstat (limited to 'src/game/GameModel.h')
-rw-r--r--src/game/GameModel.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h
index 847e940..a46bfd3 100644
--- a/src/game/GameModel.h
+++ b/src/game/GameModel.h
@@ -60,11 +60,14 @@ private:
Tool * lastTool;
Tool * activeTools[3];
User currentUser;
- bool colourSelector;
- ui::Colour colour;
float toolStrength;
std::deque<Snapshot*> history;
+ int activeColourPreset;
+ std::vector<ui::Colour> colourPresets;
+ bool colourSelector;
+ ui::Colour colour;
+
std::string infoTip;
std::string toolTip;
//bool zoomEnabled;
@@ -83,6 +86,8 @@ private:
void notifyPlaceSaveChanged();
void notifyColourSelectorColourChanged();
void notifyColourSelectorVisibilityChanged();
+ void notifyColourPresetsChanged();
+ void notifyColourActivePresetChanged();
void notifyNotificationsChanged();
void notifyLogChanged(string entry);
void notifyInfoTipChanged();
@@ -93,6 +98,13 @@ public:
GameModel();
~GameModel();
+ void SetActiveColourPreset(int preset);
+ int GetActiveColourPreset();
+
+ void SetPresetColour(ui::Colour colour);
+
+ std::vector<ui::Colour> GetColourPresets();
+
void SetColourSelectorVisibility(bool visibility);
bool GetColourSelectorVisibility();