Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Fix close buttons on production panel and city overview #2

Merged
merged 1 commit into from
Oct 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion UI/Panels/CityPanelOverview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ function OnClose()
end

function OnCloseButtonClicked()
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end

function View(data)
Expand Down Expand Up @@ -890,4 +891,4 @@ function Initialize()
Events.GovernmentPolicyChanged.Add( OnPolicyChanged );
Events.GovernmentPolicyObsoleted.Add( OnPolicyChanged );
end
Initialize();
Initialize();
1 change: 1 addition & 0 deletions UI/Panels/ProductionPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ end
-- ===========================================================================
-- Close via click
function OnClose()
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end

-- ===========================================================================
Expand Down