From c57d076461fea245e5a9fe2cd554044b341d6b0c Mon Sep 17 00:00:00 2001 From: Octav Sandulescu Date: Fri, 21 Aug 2015 17:25:38 +0000 Subject: [PATCH] Give the +/- button the right caption on re-create --- evoGUI.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evoGUI.lua b/evoGUI.lua index 8a9600d..3e649c6 100644 --- a/evoGUI.lua +++ b/evoGUI.lua @@ -84,6 +84,9 @@ function evogui.create_sensor_display(player) name="evoGUI_toggle_popup", caption="+", style="evoGUI_small_button_style"} + if global.evogui[player.name].popup_open then + action_buttons.evoGUI_toggle_popup.caption = "-" + end action_buttons.add{type="button", name="evoGUI_settings", caption="s",