This commit is contained in:
RealFD 2022-02-26 22:50:50 +01:00
parent 23e52e6f33
commit 2e52788d51
2 changed files with 7 additions and 11 deletions

Binary file not shown.

View File

@ -926,18 +926,11 @@ function join_room(room)
mpScreen.JoinWithoutPassword(room.id)
end
end
local que1 = 0
-- Handle button presses to advance the UI
button_pressed = function(button)
if button == game.BUTTON_FXL and que1 == 0 then
que1 = que1+1
elseif button == game.BUTTON_FXR and que1 == 1 then
que1 = que1+1
end
if que1 == 2 then
que1 = 0
if button == game.BUTTON_FXL and game.BUTTON_FXR then
if start_game_soon then
return
end
@ -973,6 +966,9 @@ end
if button == game.BUTTON_BTB then
toggle_mirror();
end
if button == game.BUTTON_BTC then
toggle_rotate();
end
end
-- Handle the escape key around the UI