aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-06-08 16:54:37 +0200
committer GitHub <noreply@github.com>2024-06-08 16:54:37 +0200
commit3dd525092e3a6027f20f0a1afdf8e871a9eecd34 (patch)
treeaea64483ffb003d74c0671f9f2a4db878a3b8cb3 /game/src/Game/GameSession/ProvinceOverviewPanel.gd
parentfb74bc86d194b50cb3277c7f367a5e5a0316c948 (diff)
parent0ba36e6762615d17605a573a036aff5bf84dfc95 (diff)
Merge pull request #232 from OpenVicProject/province-const-mutable
Province const/mutable + proper State names
Diffstat (limited to 'game/src/Game/GameSession/ProvinceOverviewPanel.gd')
-rw-r--r--game/src/Game/GameSession/ProvinceOverviewPanel.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
index 7482673..5616927 100644
--- a/game/src/Game/GameSession/ProvinceOverviewPanel.gd
+++ b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
@@ -242,7 +242,7 @@ func _set_core_flag(core_index : int, country : String) -> void:
func _update_info() -> void:
const _province_info_province_key : StringName = &"province"
- const _province_info_region_key : StringName = &"region"
+ const _province_info_state_key : StringName = &"state"
const _province_info_slave_status_key : StringName = &"slave_status"
const _province_info_colony_status_key : StringName = &"colony_status"
const _province_info_terrain_type_key : StringName = &"terrain_type"
@@ -268,8 +268,8 @@ func _update_info() -> void:
_province_name_label.text = GUINode.format_province_name(_province_info.get(_province_info_province_key, _missing_suffix))
if _region_name_label:
- _region_name_label.text = _province_info.get(_province_info_region_key,
- _province_info_region_key + _missing_suffix)
+ _region_name_label.text = _province_info.get(_province_info_state_key,
+ _province_info_state_key + _missing_suffix)
if _slave_status_icon:
_slave_status_icon.visible = _province_info.get(_province_info_slave_status_key, false)