Expand contextual actions horizontally
This commit is contained in:
parent
d79c756d5b
commit
d20a62a26f
2 changed files with 10 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue