From c05d6f6b922c64c30527ea2f0e81e8aa0cf579a9 Mon Sep 17 00:00:00 2001 From: zgavin Date: Fri, 28 Oct 2016 21:09:34 -0600 Subject: [PATCH] Fix close buttons on production panel and city overview --- UI/Panels/CityPanelOverview.lua | 3 ++- UI/Panels/ProductionPanel.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/Panels/CityPanelOverview.lua b/UI/Panels/CityPanelOverview.lua index 89bba1a..609f8b3 100644 --- a/UI/Panels/CityPanelOverview.lua +++ b/UI/Panels/CityPanelOverview.lua @@ -747,6 +747,7 @@ function OnClose() end function OnCloseButtonClicked() + UI.SetInterfaceMode(InterfaceModeTypes.SELECTION); end function View(data) @@ -890,4 +891,4 @@ function Initialize() Events.GovernmentPolicyChanged.Add( OnPolicyChanged ); Events.GovernmentPolicyObsoleted.Add( OnPolicyChanged ); end -Initialize(); \ No newline at end of file +Initialize(); diff --git a/UI/Panels/ProductionPanel.lua b/UI/Panels/ProductionPanel.lua index 470db56..c7611ed 100644 --- a/UI/Panels/ProductionPanel.lua +++ b/UI/Panels/ProductionPanel.lua @@ -377,6 +377,7 @@ end -- =========================================================================== -- Close via click function OnClose() + UI.SetInterfaceMode(InterfaceModeTypes.SELECTION); end -- ===========================================================================