Expand contextual actions horizontally

This commit is contained in:
Loïc Wisniewski 2026-08-13 20:54:22 +02:00
commit d20a62a26f
2 changed files with 10 additions and 5 deletions

View file

@ -397,11 +397,16 @@ func _layout_context_buttons() -> void:
for button in buttons:
button.visible = false
return
# Expand sideways so the controls stay in the same visual band instead of
# pushing the player down a vertical stack. Three actions fit across the
# 720px phone layout with the same generous 148px touch targets.
for i in range(buttons.size()):
var button: Control = buttons[i]
button.visible = true
button.offset_top = 488 + i * 164
button.offset_bottom = button.offset_top + 148
button.offset_left = 188 + i * 164
button.offset_right = button.offset_left + 148
button.offset_top = 324
button.offset_bottom = 472
func _context_action_buttons() -> Array: