From 09efeed1054f8f48f770c8f32e010594e26bbd66 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 8 Apr 2013 23:04:23 +1200 Subject: [PATCH] Use IsHighlighted for settings / ingame menu tabs. --- OpenRA.Mods.Cnc/Widgets/Logic/CncIngameMenuLogic.cs | 4 ++-- OpenRA.Mods.Cnc/Widgets/Logic/CncSettingsLogic.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/CncIngameMenuLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/CncIngameMenuLogic.cs index 14ad6a064b..bdb80ccfec 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/CncIngameMenuLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/CncIngameMenuLogic.cs @@ -98,7 +98,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic // Debug / Cheats panel var debugButton = panelParent.Get("DEBUG_BUTTON"); debugButton.OnClick = () => Panel = PanelType.Debug; - debugButton.IsDisabled = () => Panel == PanelType.Debug; + debugButton.IsHighlighted = () => Panel == PanelType.Debug; if (world.LocalPlayer != null && world.LobbyInfo.GlobalSettings.AllowCheats) { @@ -113,7 +113,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic var iop = world.WorldActor.TraitsImplementing().FirstOrDefault(); var objectivesButton = panelParent.Get("OBJECTIVES_BUTTON"); objectivesButton.OnClick = () => Panel = PanelType.Objectives; - objectivesButton.IsDisabled = () => Panel == PanelType.Objectives; + objectivesButton.IsHighlighted = () => Panel == PanelType.Objectives; if (iop != null && iop.ObjectivesPanel != null) { diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/CncSettingsLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/CncSettingsLogic.cs index 5c3b99e9d0..413ce4b5aa 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/CncSettingsLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/CncSettingsLogic.cs @@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic // General pane var generalButton = panel.Get("GENERAL_BUTTON"); generalButton.OnClick = () => Settings = PanelType.General; - generalButton.IsDisabled = () => Settings == PanelType.General; + generalButton.IsHighlighted = () => Settings == PanelType.General; var generalPane = panel.Get("GENERAL_CONTROLS"); generalPane.IsVisible = () => Settings == PanelType.General; @@ -118,7 +118,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic var inputButton = panel.Get("INPUT_BUTTON"); inputButton.OnClick = () => Settings = PanelType.Input; - inputButton.IsDisabled = () => Settings == PanelType.Input; + inputButton.IsHighlighted = () => Settings == PanelType.Input; var classicMouseCheckbox = inputPane.Get("CLASSICORDERS_CHECKBOX"); classicMouseCheckbox.IsChecked = () => gameSettings.UseClassicMouseStyle;