diff options
author | George L. Albany <Megacake1234@gmail.com> | 2024-05-07 01:15:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 01:15:50 +0200 |
commit | c29cc0dabe3e3c7d03280e74d2d10fc3cc479c7f (patch) | |
tree | 059fe3b320d6ed41416aee3853c5eb8e8ca36583 /game/src/Game/GameSession/Topbar.gd | |
parent | 8c8ee1524f51d44acd1d1894eda5984956cba9a6 (diff) | |
parent | 7def4dd2e7987c20163c6a419bcc0506b5a670d9 (diff) |
Merge pull request #226 from Spartan322/click-mask-guinodes
Improve map view and game panel user experience
Diffstat (limited to 'game/src/Game/GameSession/Topbar.gd')
-rw-r--r-- | game/src/Game/GameSession/Topbar.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/Topbar.gd b/game/src/Game/GameSession/Topbar.gd index 92ee75a..8da15e0 100644 --- a/game/src/Game/GameSession/Topbar.gd +++ b/game/src/Game/GameSession/Topbar.gd @@ -27,6 +27,12 @@ func _ready() -> void: const player_country : String = "SLV" + # Disables all consuming invisible panel + var topbar := get_panel_from_nodepath(^"./topbar") + if topbar: + topbar.mouse_filter = Control.MOUSE_FILTER_IGNORE + set_click_mask_from_nodepaths([^"./topbar/topbar_bg", ^"./topbar/topbar_paper"]) + # Player country info var player_flag_texture : GFXMaskedFlagTexture = get_gfx_masked_flag_texture_from_nodepath(^"./topbar/player_flag") if player_flag_texture: |