Timer Widget
Added a new Timer Widget Made one to display the ingame time elapsed Hooked up to reset on Game Start Added a setting for it in Settings Menu (default true)
This commit is contained in:
@@ -29,6 +29,7 @@ namespace OpenRA.Widgets.Delegates
|
||||
var optionsBG = gameRoot.GetWidget("INGAME_OPTIONS_BG");
|
||||
|
||||
Game.OnGameStart += () => r.OpenWindow("INGAME_ROOT");
|
||||
Game.OnGameStart += () => gameRoot.GetWidget<TimerWidget>("GAME_TIMER").Stopwatch.Reset();
|
||||
|
||||
r.GetWidget("INGAME_OPTIONS_BUTTON").OnMouseUp = mi => {
|
||||
optionsBG.Visible = !optionsBG.Visible;
|
||||
|
||||
Reference in New Issue
Block a user