Fixed hidden map control. Fixed shield

This commit is contained in:
2025-12-12 12:26:44 +03:00
parent ecec685f0f
commit 7422196588
3 changed files with 14 additions and 7 deletions
+5
View File
@@ -84,15 +84,20 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if selected_sector == null: return
if not visible: return
if event.is_action_pressed("ui_left") and selected_sector.sector_to_left:
_set_selected_sector(selected_sector.sector_to_left)
if event.is_action_pressed("ui_right") and selected_sector.sector_to_right:
_set_selected_sector(selected_sector.sector_to_right)
if event.is_action_pressed("ui_up") and selected_sector.sector_above:
_set_selected_sector(selected_sector.sector_above)
if event.is_action_pressed("ui_down") and selected_sector.sector_below:
_set_selected_sector(selected_sector.sector_below)
if event.is_action_pressed("ui_accept"):
var selected_passage := _get_passage_to_sector(selected_sector)
if selected_passage != null: