summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-11-26 11:48:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-11-26 11:48:27 (GMT)
commit3664a22f98951548fc2257fb78f3c0232bb9beeb (patch)
treea80d148d5c01b0ff14734828837ff17e33ca2eb3 /src/game/GameView.cpp
parentb08812569cf96dcd5a62c8d0467bd14f3ae90e54 (diff)
downloadpowder-3664a22f98951548fc2257fb78f3c0232bb9beeb.zip
powder-3664a22f98951548fc2257fb78f3c0232bb9beeb.tar.gz
Right clicking on reload button will show save preview.
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 0e3f580..9d900ba 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -223,6 +223,10 @@ GameView::GameView():
{
v->c->ReloadSim();
}
+ void AltActionCallback(ui::Button * sender)
+ {
+ v->c->OpenSavePreview();
+ }
};
reloadButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(17, 15), "", "Reload the simulation");
reloadButton->SetIcon(IconReload);