Add button highlighting/glow effect, to be used for the objective button when the objectives update

This commit is contained in:
Scott_NZ
2012-09-29 20:16:05 +12:00
parent b897579a20
commit 0c6daf191c
9 changed files with 78 additions and 21 deletions

View File

@@ -45,10 +45,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var objectivesButton = gameRoot.Get<ButtonWidget>("OBJECTIVES_BUTTON");
var objectivesWidget = Game.LoadWidget(world, iop.ObjectivesPanel, Ui.Root, new WidgetArgs());
objectivesWidget.Visible = false;
objectivesButton.OnClick = () =>
{
objectivesWidget.Visible = !objectivesWidget.Visible;
};
objectivesButton.OnClick += () => objectivesWidget.Visible = !objectivesWidget.Visible;
objectivesButton.IsVisible = () => world.LocalPlayer != null;
}