diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-17 15:57:12 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-17 15:57:12 (GMT) |
| commit | 2329f98f0af9dffda5375aca7b05f9e76a84d06a (patch) | |
| tree | a0385c88d74e970343a689fed417e5e8d5f05a3d /src/game/GameController.cpp | |
| parent | 52c9a9052a63cf124c1fca7504c267a03553d8b0 (diff) | |
| download | powder-2329f98f0af9dffda5375aca7b05f9e76a84d06a.zip powder-2329f98f0af9dffda5375aca7b05f9e76a84d06a.tar.gz | |
Varying update notifications
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 8ece34b..260d99a 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -681,7 +681,18 @@ void GameController::NotifyUpdateAvailable(Client * sender) } }; - gameModel->AddNotification(new UpdateNotification(this, "A new version is available - click here to download")); + switch(sender->GetUpdateInfo().Type) + { + case UpdateInfo::Snapshot: + gameModel->AddNotification(new UpdateNotification(this, std::string("A new snapshot is available - click here to update"))); + break; + case UpdateInfo::Stable: + gameModel->AddNotification(new UpdateNotification(this, std::string("A new version is available - click here to update"))); + break; + case UpdateInfo::Beta: + gameModel->AddNotification(new UpdateNotification(this, std::string("A new beta is available - click here to update"))); + break; + } } void GameController::RemoveNotification(Notification * notification) |
