From 67be0de6088ac4bafefae3e3ad97d0fa44389198 Mon Sep 17 00:00:00 2001 From: G C <37224614+Hdt80bro@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:28:05 -0800 Subject: [PATCH] Fix the broken resource sharing panel (#4370) --- lua/ui/game/diplomacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ui/game/diplomacy.lua b/lua/ui/game/diplomacy.lua index 352ddd432d..49ccfe3563 100644 --- a/lua/ui/game/diplomacy.lua +++ b/lua/ui/game/diplomacy.lua @@ -199,7 +199,6 @@ local function LayoutMajorAlliedEntry(entry, manualShare) Tooltip.AddButtonTooltip(giveResourcesBtn, 'dip_give_resources') entry.giveResourcesBtn = giveResourcesBtn - giveResourcesBtn:Disable() giveResourcesBtn.OnClick = function(self, modifiers) CreateShareResourcesDialog(entry) end @@ -598,6 +597,7 @@ function CreateShareResourcesDialog(control) giveResGroup.Width:Set(control.Width) LayoutHelpers.SetHeight(giveResGroup, 90) LayoutHelpers.AtLeftBottomIn(giveResGroup, control) + control.giveResourcesGroup = giveResGroup local okBtn = UIUtil.CreateButtonStd(giveResGroup, '/dialogs/toggle_btn/toggle-d',