aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/GameSession/ProvinceOverviewPanel.gd')
-rw-r--r--game/src/GameSession/ProvinceOverviewPanel.gd22
1 files changed, 22 insertions, 0 deletions
diff --git a/game/src/GameSession/ProvinceOverviewPanel.gd b/game/src/GameSession/ProvinceOverviewPanel.gd
new file mode 100644
index 0000000..434f6b1
--- /dev/null
+++ b/game/src/GameSession/ProvinceOverviewPanel.gd
@@ -0,0 +1,22 @@
+extends Panel
+
+@export var _province_name_label : Label
+
+@export var province_identifier: String = "":
+ get: return province_identifier
+ set(v):
+ province_identifier = v
+ update_info()
+
+func _ready():
+ update_info()
+
+func update_info() -> void:
+ _province_name_label.text = province_identifier + "_NAME"
+ visible = not province_identifier.is_empty()
+
+func _on_province_selected(identifier : String) -> void:
+ province_identifier = identifier
+
+func _on_button_pressed() -> void:
+ province_identifier = ""