aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-19 19:19:07 +0100
committer GitHub <noreply@github.com>2024-01-19 19:19:07 +0100
commit30cb31dd4aa2a8783d6b52f7882936f55eeb17a5 (patch)
tree68f95c20c21c67f46af9801bb07d57de7e0f9617 /game/src/Game/GameSession/ProvinceOverviewPanel.gd
parent7acaf673f0465dcfa35b86bfbaf5dc0f83f2fc00 (diff)
parent32dbfc1107b59085ba78929102f313b88c34a6a3 (diff)
Merge pull request #196 from OpenVicProject/overlay-parchment-map
Added overlay parchment map and refactored map shader
Diffstat (limited to 'game/src/Game/GameSession/ProvinceOverviewPanel.gd')
-rw-r--r--game/src/Game/GameSession/ProvinceOverviewPanel.gd10
1 files changed, 7 insertions, 3 deletions
diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
index 8920b26..6fe28d7 100644
--- a/game/src/Game/GameSession/ProvinceOverviewPanel.gd
+++ b/game/src/Game/GameSession/ProvinceOverviewPanel.gd
@@ -176,7 +176,7 @@ func _ready() -> void:
var target_slot_count : int = GameSingleton.get_province_building_count()
var slot_y : float = 0.0
for current_slot_count : int in target_slot_count:
- var slot := generate_gui_element("province_interface.gui", "building", "building_slot_%d" % current_slot_count)
+ var slot := GUINode.generate_gui_element("province_interface.gui", "building", "building_slot_%d" % current_slot_count)
if slot:
_buildings_panel.add_child(slot)
slot.set_position(Vector2(0.0, slot_y))
@@ -220,7 +220,9 @@ enum ColonyStatus { STATE, PROTECTORATE, COLONY }
# This assumes _cores_overlapping_elements_box is non-null
func _set_core_flag(core_index : int, country : String) -> void:
- var core_flag_texture : GFXMaskedFlagTexture = get_gfx_masked_flag_texture_from_node(_cores_overlapping_elements_box.get_child(core_index).get_node(^"./country_flag"))
+ var core_flag_texture : GFXMaskedFlagTexture = GUINode.get_gfx_masked_flag_texture_from_node(
+ _cores_overlapping_elements_box.get_child(core_index).get_node(^"./country_flag")
+ )
if core_flag_texture:
core_flag_texture.set_flag_country_name(country)
@@ -278,7 +280,9 @@ func _update_info() -> void:
# TODO - replace example icons with those from the province's list of modifier instances
_province_modifiers_overlapping_elements_box.set_child_count(8)
for i : int in _province_modifiers_overlapping_elements_box.get_child_count():
- var icon : GFXIconTexture = get_gfx_icon_texture_from_node(_province_modifiers_overlapping_elements_box.get_child(i).get_node(^"./modifier"))
+ var icon : GFXIconTexture = GUINode.get_gfx_icon_texture_from_node(
+ _province_modifiers_overlapping_elements_box.get_child(i).get_node(^"./modifier")
+ )
if icon:
icon.set_icon_index(2 * i + (i & 1) + 1)