diff --git a/LuaUI/Widgets/gui_chili_spectator_panels.lua b/LuaUI/Widgets/gui_chili_spectator_panels.lua index ab5c1c4b96..6de7baf3f1 100644 --- a/LuaUI/Widgets/gui_chili_spectator_panels.lua +++ b/LuaUI/Widgets/gui_chili_spectator_panels.lua @@ -138,13 +138,16 @@ options_order = { 'fancySkinning', } +local econName, econPath = "Chili Economy Panel Default", "Settings/HUD Panels/Economy Panel" options = { enableSpectator = { name = "Enable as Spectator", type = "bool", value = false, - OnChange = function(self) option_CheckEnable(self) end, - noHotkey = true, + OnChange = function(self) + option_CheckEnable(self) + WG.SetWidgetOption(econName, econPath, "ecoPanelHideSpec", self.value) + end, desc = "Enables the spectator resource bars when spectating a game with two teams." }, clanNameLengthCutoff = { diff --git a/LuaUI/Widgets/gui_hud_presets.lua b/LuaUI/Widgets/gui_hud_presets.lua index d64c4d1ca8..bd716cbd12 100644 --- a/LuaUI/Widgets/gui_hud_presets.lua +++ b/LuaUI/Widgets/gui_hud_presets.lua @@ -25,7 +25,7 @@ local consoleName, consolePath = "Chili Pro Console", "Settings/HUD Panels/Chat" local selName, selPath = "Chili Selections & CursorTip", "Settings/HUD Panels/Selected Units Panel" local globalName, globalPath = "Chili Global Commands", "Settings/HUD Panels/Global Commands" local econName, econPath = "Chili Economy Panel Default", "Settings/HUD Panels/Economy Panel" -local specName, specPath = "Chili Spectator Panels", "Settings/HUD Panels/Extras/Spectating" +local specName, specPath = "Chili Spectator Panels", "Settings/HUD Panels/Spectator Panels" local dockName, dockPath = "Chili Docking", "Settings/HUD Panels/Extras/Docking" local function Selections_SetOptions(group, showInfo, square, iconSize, showCommand, showDgun, alwaysShow)