1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

tray notification for windows

This commit is contained in:
Andrii Danylchenko
2020-03-22 15:57:13 +02:00
committed by Andrii Danylchenko
parent 45bdacb119
commit 2fc7cf02b0
6 changed files with 209 additions and 1 deletions

View File

@ -62,6 +62,7 @@
#include "CServerHandler.h"
// FIXME: only needed for CGameState::mutex
#include "../lib/CGameState.h"
#include "gui/NotificationHandler.h"
// The macro below is used to mark functions that are called by client when game state changes.
@ -166,6 +167,8 @@ void CPlayerInterface::yourTurn()
GH.curInt = this;
adventureInt->selection = nullptr;
NotificationHandler::notify("Your turn");
std::string prefix = settings["session"]["saveprefix"].String();
int frequency = static_cast<int>(settings["general"]["saveFrequency"].Integer());
if (firstCall)