aboutsummaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-26 23:05:42 +0200
committer GitHub <noreply@github.com>2024-07-26 23:05:42 +0200
commit0300a10ed7839710750b3937307c1f6c11c7bd75 (patch)
treed6cb992d6d3bf8cb1b1090fa18e0002fa4539b1a /game
parentf61760e725de0ae4878580a93bcd8ce456aa539f (diff)
parent46c3009075be36577ab7dbea263655e428833b20 (diff)
Merge pull request #241 from OpenVicProject/locale-sort-cache
Cache sort order of localised population menu columns
Diffstat (limited to 'game')
-rw-r--r--game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd b/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd
index 0bcf64a..2799dd4 100644
--- a/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd
+++ b/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd
@@ -66,6 +66,8 @@ func _ready() -> void:
MenuSingleton.population_menu_province_list_selected_changed.connect(_update_province_list)
MenuSingleton.population_menu_pops_changed.connect(_update_pops)
+ MenuSingleton.population_menu_update_locale_sort_cache()
+
Events.NationManagementScreens.update_active_nation_management_screen.connect(_on_update_active_nation_management_screen)
add_gui_element(_scene_name, "country_pop")
@@ -396,6 +398,7 @@ func _setup_pop_list() -> void:
func _notification(what : int) -> void:
match what:
NOTIFICATION_TRANSLATION_CHANGED:
+ MenuSingleton.population_menu_update_locale_sort_cache()
_update_info()
func _on_update_active_nation_management_screen(active_screen : NationManagement.Screen) -> void: