diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
| commit | bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8 (patch) | |
| tree | 644bbe8435b3f31c738325cf55419860dd9fa6f4 /src/gui/game | |
| parent | beff3db8d291b00b47fc13a1b936fa4419e3d78d (diff) | |
| download | powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.zip powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.tar.gz | |
instant save option option, hold ctrl when clicking a save in the save preview to skip the entire preview and not load the comments
Diffstat (limited to 'src/gui/game')
| -rw-r--r-- | src/gui/game/GameController.cpp | 8 | ||||
| -rw-r--r-- | src/gui/game/GameController.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index f4ad0b2..488d30a 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -588,7 +588,7 @@ bool GameController::MouseUp(int x, int y, unsigned button) if (tempSaveID) { if ((*iter).text.c_str()[1] == 'c') - OpenSavePreview(tempSaveID, 0); + OpenSavePreview(tempSaveID, 0, false); else if ((*iter).text.c_str()[1] == 't') { char url[256]; @@ -1096,9 +1096,9 @@ void GameController::LoadSave(SaveInfo * save) gameModel->SetSave(save); } -void GameController::OpenSavePreview(int saveID, int saveDate) +void GameController::OpenSavePreview(int saveID, int saveDate, bool instant) { - activePreview = new PreviewController(saveID, saveDate, new SaveOpenCallback(this)); + activePreview = new PreviewController(saveID, saveDate, instant, new SaveOpenCallback(this)); ui::Engine::Ref().ShowWindow(activePreview->GetView()); } @@ -1106,7 +1106,7 @@ void GameController::OpenSavePreview() { if(gameModel->GetSave()) { - activePreview = new PreviewController(gameModel->GetSave()->GetID(), new SaveOpenCallback(this)); + activePreview = new PreviewController(gameModel->GetSave()->GetID(), false, new SaveOpenCallback(this)); ui::Engine::Ref().ShowWindow(activePreview->GetView()); } } diff --git a/src/gui/game/GameController.h b/src/gui/game/GameController.h index 88f426b..d723ccb 100644 --- a/src/gui/game/GameController.h +++ b/src/gui/game/GameController.h @@ -113,7 +113,7 @@ public: void OpenLogin(); void OpenProfile(); void OpenTags(); - void OpenSavePreview(int saveID, int saveDate); + void OpenSavePreview(int saveID, int saveDate, bool instant); void OpenSavePreview(); void OpenLocalSaveWindow(bool asCurrent); void OpenLocalBrowse(); |
