summaryrefslogtreecommitdiff
path: root/src/interface/SaveButton.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-16 16:09:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-16 16:09:23 (GMT)
commitbd02c36426f0ee9196ac971f8f9b7e03eb35dbd3 (patch)
treebfe72a315c3204c7ff857dad89b8b6cfc17803d6 /src/interface/SaveButton.h
parentcd7fe454b213f77d5048357c99595ed167918ff8 (diff)
downloadpowder-bd02c36426f0ee9196ac971f8f9b7e03eb35dbd3.zip
powder-bd02c36426f0ee9196ac971f8f9b7e03eb35dbd3.tar.gz
Right click menu to go to history and user info for save buttons
Diffstat (limited to 'src/interface/SaveButton.h')
-rw-r--r--src/interface/SaveButton.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h
index 9e9bef5..f2300d8 100644
--- a/src/interface/SaveButton.h
+++ b/src/interface/SaveButton.h
@@ -30,10 +30,13 @@ class SaveButton : public Component, public ThumbnailListener
SaveInfo * save;
Thumbnail * thumbnail;
std::string name;
+ std::string votesString;
+ std::string votesBackground;
+ std::string votesBackground2;
bool wantsDraw;
bool waitingForThumb;
bool isMouseInsideAuthor;
- bool MouseInsideHistory;
+ bool isMouseInsideHistory;
bool showVotes;
public:
SaveButton(Point position, Point size, SaveInfo * save);
@@ -48,6 +51,8 @@ public:
virtual void OnMouseMovedInside(int x, int y, int dx, int dy);
+ virtual void OnContextMenuAction(int item);
+
virtual void Draw(const Point& screenPos);
virtual void Tick(float dt);