mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Reworked timer widget to show timers for all players
This commit is contained in:
@@ -65,8 +65,8 @@ AdventureMapInterface::AdventureMapInterface():
|
||||
shortcuts->setState(EAdventureState::MAKING_TURN);
|
||||
widget->getMapView()->onViewMapActivated();
|
||||
|
||||
if(LOCPLINT->cb->getStartInfo()->turnTimerInfo.isEnabled() || LOCPLINT->cb->getStartInfo()->turnTimerInfo.isBattleEnabled())
|
||||
watches = std::make_shared<TurnTimerWidget>();
|
||||
if(LOCPLINT->cb->getStartInfo()->turnTimerInfo.turnTimer != 0)
|
||||
watches = std::make_shared<TurnTimerWidget>(Point(24, 24));
|
||||
|
||||
addUsedEvents(KEYBOARD | TIME);
|
||||
}
|
||||
|
Reference in New Issue
Block a user