aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-04-16 11:58:39 +0200
committer GitHub <noreply@github.com>2024-04-16 11:58:39 +0200
commit21334b0040d3c2c1456e0c18e5c2a1605f22f934 (patch)
treef12a3e91c9f3cbf3ff57ef6477f91cc9f053eb45 /game/src/Game/GameSession/ProvinceOverviewPanel.gd
parentb5eacaa436bb6e3400f9e80795248c67c50e9d6b (diff)
parentc79bf36ced0319572c561b82a2a9158ffa3bc94b (diff)
Merge pull request #216 from OpenVicProject/pop-menu-imp
Implement Population Menu
Diffstat (limited to 'game/src/Game/GameSession/ProvinceOverviewPanel.gd')
-rw-r--r--game/src/Game/GameSession/ProvinceOverviewPanel.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
index 731d02c..13e7111 100644
--- a/game/src/Game/GameSession/ProvinceOverviewPanel.gd
+++ b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
@@ -166,6 +166,15 @@ func _ready() -> void:
_pop_types_piechart = get_gfx_pie_chart_texture_from_nodepath(^"./province_view/province_statistics/workforce_chart")
_pop_ideologies_piechart = get_gfx_pie_chart_texture_from_nodepath(^"./province_view/province_statistics/ideology_chart")
_pop_cultures_piechart = get_gfx_pie_chart_texture_from_nodepath(^"./province_view/province_statistics/culture_chart")
+ var population_menu_button : Button = get_button_from_nodepath(^"./province_view/province_statistics/open_popscreen")
+ if population_menu_button:
+ population_menu_button.pressed.connect(
+ func() -> void:
+ pass
+ MenuSingleton.population_menu_select_province(_selected_index)
+ _on_close_button_pressed()
+ Events.NationManagementScreens.open_nation_management_screen(NationManagement.Screen.POPULATION)
+ )
_supply_limit_label = get_label_from_nodepath(^"./province_view/province_statistics/supply_limit_label")
_cores_overlapping_elements_box = get_gui_overlapping_elements_box_from_nodepath(^"./province_view/province_statistics/core_icons")
if _cores_overlapping_elements_box and _cores_overlapping_elements_box.set_gui_child_element_name("province_interface", "province_core") != OK: