Modificat el menu de Pausa amb la funció d'escriure text en gran

This commit is contained in:
2026-03-16 23:24:00 +01:00
parent 6304c6ff06
commit 336deaafa9

View File

@@ -618,9 +618,10 @@ function pause()
end
function update_pause()
draw.rectf(16,16,97,65,16)
draw.rect(16,16,97,65,15)
draw.text("PAUSA",54,20,15)
draw.rectf(16*o2aX,16*o2aX,97*o2aX,65*o2aX,16)
draw.rect(16*o2aX,16*o2aX,97*o2aX,65*o2aX,15)
-- draw.text("PAUSA",54*o2aX,20*o2aX,15)
arc_text("PAUSA",54*o2aX,20*o2aX,15)
menu_count=menu_count+1
local parpadeig=false
@@ -628,25 +629,33 @@ function update_pause()
parpadeig=true
if menu_count>40 then menu_count=0 end
end
draw.rect(28,33+(10*(pausa_option-1)),73,9,14)
if (not parpadeig) then draw.rect(28,33+(10*(pausa_option-1)),73,9,13) end
draw.rect(28*o2aX,(33+(10*(pausa_option-1)))*o2aX,73*o2aX,9*o2aX,14)
if (not parpadeig) then draw.rect(28*o2aX,(33+(10*(pausa_option-1)))*o2aX,73*o2aX,9*o2aX,13) end
--draw.rect(28,33+(10*(pausa_option-1)),73,9,13)
draw.text("CONTINUAR",30,35,14)
draw.text("MUSICA:",30,45,14)
-- draw.text("CONTINUAR",30*o2aX,35*o2aX,14)
arc_text("CONTINUAR",30*o2aX,35*o2aX,14)
-- draw.text("MUSICA:",30*o2aX,45*o2aX,14)
arc_text("MUSICA:",30*o2aX,45*o2aX,14)
if music.enabled() then
draw.text("SI",91,45,15)
-- draw.text("SI",91*o2aX,45*o2aX,15)
arc_text("SI",91*o2aX,45*o2aX,15)
else
draw.text("NO",91,45,15)
-- draw.text("NO",91*o2aX,45*o2aX,15)
arc_text("NO",91*o2aX,45*o2aX,15)
end
draw.text("SÓ:",30,55,14)
-- draw.text("SÓ:",30*o2aX,55*o2aX,14)
arc_text("SÓ:",30*o2aX,55*o2aX,14)
if sound.enabled() then
draw.text("SI",91,55,15)
-- draw.text("SI",91*o2aX,55*o2aX,15)
arc_text("SI",91*o2aX,55*o2aX,15)
else
draw.text("NO",91,55,15)
-- draw.text("NO",91*o2aX,55*o2aX,15)
arc_text("NO",91*o2aX,55*o2aX,15)
end
draw.text("EIXIR",30,65,14)
-- draw.text("EIXIR",30*o2aX,65*o2aX,14)
arc_text("EIXIR",30*o2aX,65*o2aX,14)
if key.press(key.ESCAPE) then
surf.source(back)