diff options
author | Hop311 <Hop3114@gmail.com> | 2024-02-19 23:35:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 23:35:27 +0100 |
commit | 5d7c6eafe35e2c6e952bc0b3f91d27d760c8e75e (patch) | |
tree | 1912fb231991b53dd638a295bb8d8f84b587885b /game/src/Game/GameSession/Topbar.gd | |
parent | 275cfbb62fe69828aeb9968110ad822447322a4e (diff) | |
parent | c48d14ca66d47ea7c25bb9a36c3d51f76d8351fc (diff) |
Merge pull request #208 from OpenVicProject/sprite-texture
Added multipurpose GFXSpriteTexture + reworked GFXButtonStateTexture
Diffstat (limited to 'game/src/Game/GameSession/Topbar.gd')
-rw-r--r-- | game/src/Game/GameSession/Topbar.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/src/Game/GameSession/Topbar.gd b/game/src/Game/GameSession/Topbar.gd index 3cfc0e6..e660c6a 100644 --- a/game/src/Game/GameSession/Topbar.gd +++ b/game/src/Game/GameSession/Topbar.gd @@ -5,13 +5,13 @@ extends GUINode var _speed_up_button : Button var _speed_down_button : Button var _speed_indicator_button : Button -var _speed_indicator_texture : GFXIconTexture +var _speed_indicator_texture : GFXSpriteTexture var _date_label : Label var _country_name_label : Label # NationManagement.Screen-Button var _nation_management_buttons : Dictionary -# NationManagement.Screen-GFXIconTexture +# NationManagement.Screen-GFXSpriteTexture var _nation_management_button_textures : Dictionary func _ready() -> void: @@ -54,7 +54,7 @@ func _ready() -> void: _speed_indicator_button = get_button_from_nodepath(^"./topbar/speed_indicator") if _speed_indicator_button: _speed_indicator_button.pressed.connect(_on_play_pause_button_pressed) - _speed_indicator_texture = GUINode.get_gfx_icon_texture_from_node(_speed_indicator_button) + _speed_indicator_texture = GUINode.get_gfx_sprite_texture_from_node(_speed_indicator_button) # Nation management screens const screen_nodepaths : Dictionary = { @@ -73,7 +73,7 @@ func _ready() -> void: button.pressed.connect( Events.NationManagementScreens.toggle_nation_management_screen.bind(screen) ) - var icon : GFXIconTexture = get_gfx_icon_texture_from_node(button) + var icon : GFXSpriteTexture = get_gfx_sprite_texture_from_node(button) if icon: _nation_management_buttons[screen] = button _nation_management_button_textures[screen] = icon |