From 244a669311edc5136aaa730b31ef64fd9d56879d Mon Sep 17 00:00:00 2001 From: Hop311 Date: Fri, 28 Jul 2023 14:18:33 +0100 Subject: First pass at pops (test pops and density mapmode) --- .../Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd') diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd index 13418b6..9a3690e 100644 --- a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd +++ b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd @@ -3,6 +3,7 @@ extends PanelContainer @export var _province_name_label : Label @export var _region_name_label : Label @export var _life_rating_bar : ProgressBar +@export var _total_population_label : Label @export var _rgo_icon_texture_rect : TextureRect @export var _rgo_name_label : Label @export var _buildings_container : Container @@ -110,6 +111,8 @@ func _update_info() -> void: "life_rating": Localisation.tr_number(_life_rating_bar.value) }) + _total_population_label.text = Localisation.tr_number(_province_info.get(GameSingleton.get_province_info_total_population_key(), 0)) + _rgo_name_label.text = _province_info.get(GameSingleton.get_province_info_rgo_key(), GameSingleton.get_province_info_rgo_key() + _missing_suffix) _rgo_icon_texture_rect.texture = GameSingleton.get_good_icon_texture(_rgo_name_label.text) -- cgit v1.2.3-56-ga3b1