aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-08-28 19:46:30 +0200
committer hop311 <hop3114@gmail.com>2024-08-28 23:51:31 +0200
commit88acb31bd43f0e163522837bb1d0dd7da2977c4a (patch)
tree241cbf8cf21a7cdfe1c870469ac3b3ef3064bdb3 /game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd
parentd7672f406406eea46625bc725690651f28211e19 (diff)
Switch to using custom UI nodes
Diffstat (limited to 'game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd')
-rw-r--r--game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd b/game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd
index 7237bf5..b6b18a5 100644
--- a/game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd
+++ b/game/src/Game/GameSession/NationManagementScreen/PoliticsMenu.gd
@@ -11,7 +11,7 @@ func _ready() -> void:
add_gui_element("country_politics", "country_politics")
- var close_button : Button = get_button_from_nodepath(^"./country_politics/close_button")
+ var close_button : GUIIconButton = get_gui_icon_button_from_nodepath(^"./country_politics/close_button")
if close_button:
close_button.pressed.connect(Events.NationManagementScreens.close_nation_management_screen.bind(_screen))