Sync up the countdown timer and the objectives button flash with the game speed

This commit is contained in:
Scott_NZ
2012-10-05 22:03:35 +13:00
parent a4b01cf114
commit 073a8ee079
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
objectives = world.WorldActor.TraitsImplementing<IHasObjectives>().First();
objectivesButton = gameRoot.Get<ButtonWidget>("OBJECTIVES_BUTTON");
objectivesButton.IsHighlighted = () => Game.LocalTick % 60 <= 30 && objectivesButton.Highlighted;
objectivesButton.IsHighlighted = () => Game.LocalTick % 50 < 25 && objectivesButton.Highlighted;
objectivesButton.OnClick += () => objectivesButton.Highlighted = false;
objectives.OnObjectivesUpdated += UpdateObjectives;