From 6304c6ff0646ea99c67c5a6a60ca20dcd878ad0d Mon Sep 17 00:00:00 2001 From: JailGamer Date: Mon, 16 Mar 2026 23:11:44 +0100 Subject: [PATCH] =?UTF-8?q?Canviades=20les=20funcions=20d'imprimir=20el=20?= =?UTF-8?q?text=20en=20la=20redifinici=C3=B3=20de=20teclat=20i=20gamepad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/game.lua | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/data/game.lua b/data/game.lua index fc691f3..c203a63 100644 --- a/data/game.lua +++ b/data/game.lua @@ -449,7 +449,8 @@ function update_redefine_keys_menu() menu_state = update_options_menu; end if menu_count==0 then - text("PULSA TECLA PER A AMUNT", 20, 24, 13) + -- text("PULSA TECLA PER A AMUNT", 20, 24, 13) + arc_textB("PULSA TECLA PER A AMUNT", 20*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 1 @@ -457,7 +458,8 @@ function update_redefine_keys_menu() config.key("keyup", keyUp) end elseif menu_count==1 then - text("PULSA TECLA PER A AVALL", 20, 24, 13) + -- text("PULSA TECLA PER A AVALL", 20, 24, 13) + arc_textB("PULSA TECLA PER A AVALL", 20*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 2 @@ -465,7 +467,8 @@ function update_redefine_keys_menu() config.key("keydown", keyDown) end elseif menu_count==2 then - text("PULSA TECLA PER A ESQUERRA", 14, 24, 13) + -- text("PULSA TECLA PER A ESQUERRA", 14, 24, 13) + arc_textB("PULSA TECLA PER A ESQUERRA", 14*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 3 @@ -473,7 +476,8 @@ function update_redefine_keys_menu() config.key("keleft", keyLeft) end elseif menu_count==3 then - text("PULSA TECLA PER A DRETA", 20, 24, 13) + -- text("PULSA TECLA PER A DRETA", 20, 24, 13) + arc_textB("PULSA TECLA PER A DRETA", 20*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 4 @@ -481,7 +485,8 @@ function update_redefine_keys_menu() config.key("keyright", keyRight) end elseif menu_count==4 then - text("PULSA TECLA PER A BOTAR", 20, 24, 13) + -- text("PULSA TECLA PER A BOTAR", 20, 24, 13) + arc_textB("PULSA TECLA PER A BOTAR", 20*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 5 @@ -489,7 +494,8 @@ function update_redefine_keys_menu() config.key("keyjump", keyJump) end elseif menu_count==5 then - text("PULSA TECLA PER A DISPAR", 18, 24, 13) + -- text("PULSA TECLA PER A DISPAR", 18, 24, 13) + arc_textB("PULSA TECLA PER A DISPAR", 18*o2aX, 24*o2aX, 13) local k = key.press(); if k ~= 0 and k~=key.ESCAPE then menu_count = 0 @@ -506,7 +512,8 @@ function update_redefine_pad_menu() menu_state = update_options_menu; end if menu_count==0 then - text("PULSA BOTÓ PER A AMUNT", 22, 24, 13) + -- text("PULSA BOTÓ PER A AMUNT", 22, 24, 13) + arc_textB("PULSA BOTÓ PER A AMUNT", 22*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 1 @@ -514,7 +521,8 @@ function update_redefine_pad_menu() config.key("btnup", btnUp) end elseif menu_count==1 then - text("PULSA BOTÓ PER A AVALL", 22, 24, 13) + -- text("PULSA BOTÓ PER A AVALL", 22, 24, 13) + arc_textB("PULSA BOTÓ PER A AVALL", 22*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 2 @@ -522,7 +530,8 @@ function update_redefine_pad_menu() config.key("btndown", btnDown) end elseif menu_count==2 then - text("PULSA BOTÓ PER A ESQUERRA", 16, 24, 13) + -- text("PULSA BOTÓ PER A ESQUERRA", 16, 24, 13) + arc_textB("PULSA BOTÓ PER A ESQUERRA", 16*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 3 @@ -530,7 +539,8 @@ function update_redefine_pad_menu() config.key("keleft", btnLeft) end elseif menu_count==3 then - text("PULSA BOTÓ PER A DRETA", 22, 24, 13) + -- text("PULSA BOTÓ PER A DRETA", 22, 24, 13) + arc_textB("PULSA BOTÓ PER A DRETA", 22*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 4 @@ -538,7 +548,8 @@ function update_redefine_pad_menu() config.key("btnright", btnRight) end elseif menu_count==4 then - text("PULSA BOTÓ PER A BOTAR", 22, 24, 13) + -- text("PULSA BOTÓ PER A BOTAR", 22, 24, 13) + arc_textB("PULSA BOTÓ PER A BOTAR", 22*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 5 @@ -546,7 +557,8 @@ function update_redefine_pad_menu() config.key("btnjump", btnJump) end elseif menu_count==5 then - text("PULSA BOTÓ PER A DISPAR", 20, 24, 13) + -- text("PULSA BOTÓ PER A DISPAR", 20, 24, 13) + arc_textB("PULSA BOTÓ PER A DISPAR", 20*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 6 @@ -554,7 +566,8 @@ function update_redefine_pad_menu() config.key("btnshoot", btnShoot) end elseif menu_count==6 then - text("PULSA BOTÓ PER A GPS ARRERE", 14, 24, 13) + -- text("PULSA BOTÓ PER A GPS ARRERE", 14, 24, 13) + arc_textB("PULSA BOTÓ PER A GPS ARRERE", 14*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 7 @@ -562,7 +575,8 @@ function update_redefine_pad_menu() config.key("btncycle1", btnCycle1) end elseif menu_count==7 then - text("PULSA BOTÓ PER A GPS AVANT", 14, 24, 13) + -- text("PULSA BOTÓ PER A GPS AVANT", 14, 24, 13) + arc_textB("PULSA BOTÓ PER A GPS AVANT", 14*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 8 @@ -570,7 +584,8 @@ function update_redefine_pad_menu() config.key("btncycle2", btnCycle2) end elseif menu_count==8 then - text("PULSA BOTÓ PER A PAUSA", 22, 24, 13) + -- text("PULSA BOTÓ PER A PAUSA", 22, 24, 13) + arc_textB("PULSA BOTÓ PER A PAUSA", 22*o2aX, 24*o2aX, 13) local btn = pad.press(); if btn ~= -1 then menu_count = 0