diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-29 17:12:35 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-29 17:12:35 (GMT) |
| commit | 80aa7219a2d47632efa5d72b79bbb4fc65721631 (patch) | |
| tree | 257086419a3380872195415ffffb47ec52fff972 /src/interface/SaveButton.h | |
| parent | 680a36549adaed0c3ce7e8906fadbdf190b0b3b0 (diff) | |
| download | powder-80aa7219a2d47632efa5d72b79bbb4fc65721631.zip powder-80aa7219a2d47632efa5d72b79bbb4fc65721631.tar.gz | |
Vote view in save preview, better handling of controller destruction
Diffstat (limited to 'src/interface/SaveButton.h')
| -rw-r--r-- | src/interface/SaveButton.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h index 65cff52..d4b2570 100644 --- a/src/interface/SaveButton.h +++ b/src/interface/SaveButton.h @@ -7,6 +7,7 @@ #include "search/Save.h" #include "Graphics.h" #include "search/Thumbnail.h" +#include "interface/Colour.h" namespace ui { @@ -23,11 +24,7 @@ class SaveButton : public Component Save * save; Thumbnail * thumbnail; public: - SaveButton(Window* parent_state, Save * save); - SaveButton(Point position, Point size, Save * save); - - SaveButton(Save * save); virtual ~SaveButton(); virtual void OnMouseClick(int x, int y, unsigned int button); @@ -45,6 +42,8 @@ public: void SetActionCallback(SaveButtonAction * action); protected: bool isButtonDown, state, isMouseInside; + float voteRatio; + Colour voteColour; SaveButtonAction * actionCallback; }; } |
