缓冲垃圾行数预览可开关,调整视频设置的ui

This commit is contained in:
MrZ626
2021-05-11 18:31:17 +08:00
parent 91e33495da
commit 99ba68fce8
11 changed files with 45 additions and 25 deletions

View File

@@ -275,6 +275,7 @@ SETTING={--Settings
text=true, text=true,
score=true, score=true,
warn=true, warn=true,
bufferWarn=false,
highCam=false, highCam=false,
nextPos=false, nextPos=false,
fullscreen=true, fullscreen=true,

View File

@@ -307,7 +307,9 @@ return{
text="Line Clear Pop-up", text="Line Clear Pop-up",
score="Score Pop-up", score="Score Pop-up",
warn="Danger Alert", warn="Danger Alert",
bufferWarn="Buffer Alert",
highCam="Screen Scrolling", highCam="Screen Scrolling",
nextPos="Next Preview", nextPos="Next Preview",
fullscreen="Full Screen", fullscreen="Full Screen",
power="Power Info", power="Power Info",

View File

@@ -279,7 +279,9 @@ return{
text="Texte d'action", text="Texte d'action",
score="Pop-up de score", score="Pop-up de score",
warn="Alerte de danger", warn="Alerte de danger",
-- bufferWarn="Buffer Alert",
highCam="Vue d'oiseau", highCam="Vue d'oiseau",
nextPos="Prévisualisation de position", nextPos="Prévisualisation de position",
fullscreen="Plein écran", fullscreen="Plein écran",
power="Infos d'alimentation", power="Infos d'alimentation",

View File

@@ -307,7 +307,9 @@ return{
text="Texto de ação", text="Texto de ação",
score="Pop-up de pontos", score="Pop-up de pontos",
warn="Alerta de perigo", warn="Alerta de perigo",
-- bufferWarn="Buffer Alert",
highCam="Vista Olho-de-pássaro", highCam="Vista Olho-de-pássaro",
nextPos="Próxima Pos.", nextPos="Próxima Pos.",
fullscreen="Tela cheia", fullscreen="Tela cheia",
power="Informação bateria", power="Informação bateria",

View File

@@ -284,7 +284,9 @@ return{
text="Texto de Acciones", text="Texto de Acciones",
score="Puntaje en Pantalla", score="Puntaje en Pantalla",
warn="Alerta de Peligro", warn="Alerta de Peligro",
-- bufferWarn="Buffer Alert",
highCam="Cám. Vista Aérea", highCam="Cám. Vista Aérea",
nextPos="Ver Spawn de Pza. Sig.", nextPos="Ver Spawn de Pza. Sig.",
fullscreen="Pant. Completa", fullscreen="Pant. Completa",
power="Inf. de Batería", power="Inf. de Batería",

View File

@@ -168,7 +168,9 @@ return{
text="ABC", text="ABC",
score="+123", score="+123",
warn="!↑↑↑!", warn="!↑↑↑!",
-- bufferWarn="Buffer Alert",
highCam="↑__↑", highCam="↑__↑",
nextPos="???←", nextPos="???←",
fullscreen="|←→|", fullscreen="|←→|",
power="+.", power="+.",

View File

@@ -83,6 +83,8 @@ return{
text="招式名", text="招式名",
score="跳分", score="跳分",
warn="要死",
bufferWarn="离死差多远",
highCam="拉镜", highCam="拉镜",
}, },
setting_sound={ setting_sound={

View File

@@ -307,7 +307,9 @@ return{
text="消行文本", text="消行文本",
score="分数动画", score="分数动画",
warn="死亡预警", warn="死亡预警",
bufferWarn="缓冲预警",
highCam="超屏视野", highCam="超屏视野",
nextPos="生成预览", nextPos="生成预览",
fullscreen="全屏", fullscreen="全屏",
power="电量显示", power="电量显示",

View File

@@ -271,6 +271,7 @@ local function drawBuffer(P)
end end
h=h+bar h=h+bar
end end
if P.gameEnv.bufferWarn then
local sum=P.atkBufferSum1 local sum=P.atkBufferSum1
if sum>=8 then if sum>=8 then
gc_push('transform') gc_push('transform')
@@ -282,6 +283,7 @@ local function drawBuffer(P)
gc_pop() gc_pop()
end end
end end
end
local function drawB2Bbar(P) local function drawB2Bbar(P)
local a,b=P.b2b,P.b2b1 if a>b then a,b=b,a end local a,b=P.b2b,P.b2b1 if a>b then a,b=b,a end
gc_setColor(.8,1,.2) gc_setColor(.8,1,.2)

View File

@@ -23,6 +23,7 @@ return{
shakeFX=2, shakeFX=2,
atkFX=2, atkFX=2,
bufferWarn=false,
highCam=false, highCam=false,
nextPos=false, nextPos=false,
hideBoard=false, hideBoard=false,

View File

@@ -13,14 +13,14 @@ scene.widgetList={
WIDGET.newButton{name="sound", x=200,y=80,w=240,h=80,color='lC',font=35,code=swapScene("setting_sound",'swipeR')}, WIDGET.newButton{name="sound", x=200,y=80,w=240,h=80,color='lC',font=35,code=swapScene("setting_sound",'swipeR')},
WIDGET.newButton{name="game", x=1080,y=80,w=240,h=80,color='lC',font=35,code=swapScene("setting_game",'swipeL')}, WIDGET.newButton{name="game", x=1080,y=80,w=240,h=80,color='lC',font=35,code=swapScene("setting_game",'swipeL')},
WIDGET.newSwitch{name="block", x=290,y=165,disp=SETval("block"),code=SETrev("block")}, WIDGET.newSwitch{name="block", x=350,y=165,disp=SETval("block"),code=SETrev("block")},
WIDGET.newSwitch{name="smooth", x=290,y=215,disp=SETval("smooth"),code=SETrev("smooth")}, WIDGET.newSwitch{name="smooth", x=350,y=215,disp=SETval("smooth"),code=SETrev("smooth")},
WIDGET.newSwitch{name="upEdge", x=290,y=265,disp=SETval("upEdge"),code=SETrev("upEdge")}, WIDGET.newSwitch{name="upEdge", x=350,y=265,disp=SETval("upEdge"),code=SETrev("upEdge")},
WIDGET.newSwitch{name="bagLine", x=290,y=315,disp=SETval("bagLine"),code=SETrev("bagLine")}, WIDGET.newSwitch{name="bagLine", x=350,y=315,disp=SETval("bagLine"),code=SETrev("bagLine")},
WIDGET.newSlider{name="ghost", x=600,y=180,w=200,unit=.6, disp=SETval("ghost"),show="percent",code=SETsto("ghost")}, WIDGET.newSlider{name="ghost", x=600,y=180,w=480,unit=.6, disp=SETval("ghost"),show="percent",code=SETsto("ghost")},
WIDGET.newSlider{name="grid", x=600,y=240,w=200,unit=.4, disp=SETval("grid"),show="percent", code=SETsto("grid")}, WIDGET.newSlider{name="grid", x=600,y=240,w=480,unit=.4, disp=SETval("grid"),show="percent", code=SETsto("grid")},
WIDGET.newSlider{name="center", x=600,y=300,w=200,unit=1, disp=SETval("center"), code=SETsto("center")}, WIDGET.newSlider{name="center", x=600,y=300,w=480,unit=1, disp=SETval("center"), code=SETsto("center")},
WIDGET.newSlider{name="lockFX", x=220,y=365,w=380,unit=5, disp=SETval("lockFX"), code=SETsto("lockFX")}, WIDGET.newSlider{name="lockFX", x=220,y=365,w=380,unit=5, disp=SETval("lockFX"), code=SETsto("lockFX")},
WIDGET.newSlider{name="dropFX", x=220,y=405,w=380,unit=5, disp=SETval("dropFX"), code=SETsto("dropFX")}, WIDGET.newSlider{name="dropFX", x=220,y=405,w=380,unit=5, disp=SETval("dropFX"), code=SETsto("dropFX")},
@@ -31,15 +31,17 @@ scene.widgetList={
WIDGET.newSlider{name="atkFX", x=220,y=605,w=380,unit=5, disp=SETval("atkFX"), code=SETsto("atkFX")}, WIDGET.newSlider{name="atkFX", x=220,y=605,w=380,unit=5, disp=SETval("atkFX"), code=SETsto("atkFX")},
WIDGET.newSelector{name="frame", x=410,y=660,w=360,list={8,10,13,17,22,29,37,47,62,80,100},disp=SETval("frameMul"),code=SETsto("frameMul")}, WIDGET.newSelector{name="frame", x=410,y=660,w=360,list={8,10,13,17,22,29,37,47,62,80,100},disp=SETval("frameMul"),code=SETsto("frameMul")},
WIDGET.newSwitch{name="text", x=1140,y=160,font=35,disp=SETval("text"), code=SETrev("text")}, WIDGET.newSwitch{name="text", x=900,y=360,disp=SETval("text"), code=SETrev("text")},
WIDGET.newSwitch{name="score", x=1140,y=210,font=35,disp=SETval("score"), code=SETrev("score")}, WIDGET.newSwitch{name="score", x=900,y=410,disp=SETval("score"), code=SETrev("score")},
WIDGET.newSwitch{name='warn', x=1140,y=260,font=35,disp=SETval('warn'), code=SETrev('warn')}, WIDGET.newSwitch{name="warn", x=900,y=460,disp=SETval('warn'), code=SETrev('warn')},
WIDGET.newSwitch{name="highCam", x=1140,y=310,font=35,disp=SETval("highCam"), code=SETrev("highCam")}, WIDGET.newSwitch{name="bufferWarn", x=900,y=510,disp=SETval('bufferWarn'), code=SETrev('bufferWarn')},
WIDGET.newSwitch{name="nextPos", x=1140,y=360,font=35,disp=SETval("nextPos"), code=SETrev("nextPos")}, WIDGET.newSwitch{name="highCam", x=900,y=560,disp=SETval("highCam"), code=SETrev("highCam")},
WIDGET.newSwitch{name="fullscreen", x=1140,y=410,font=35,disp=SETval("fullscreen"), code=switchFullscreen},
WIDGET.newSwitch{name="power", x=1140,y=460,font=35,disp=SETval("powerInfo"), code=SETrev("powerInfo")}, WIDGET.newSwitch{name="nextPos", x=1180,y=360,disp=SETval("nextPos"), code=SETrev("nextPos")},
WIDGET.newSwitch{name="clickFX", x=1140,y=510,font=35,disp=SETval("clickFX"), code=SETrev("clickFX")}, WIDGET.newSwitch{name="fullscreen", x=1180,y=410,disp=SETval("fullscreen"), code=switchFullscreen},
WIDGET.newSwitch{name="bg", x=1140,y=560,font=35,disp=SETval("bg"), WIDGET.newSwitch{name="power", x=1180,y=460,disp=SETval("powerInfo"), code=SETrev("powerInfo")},
WIDGET.newSwitch{name="clickFX", x=1180,y=510,disp=SETval("clickFX"), code=SETrev("clickFX")},
WIDGET.newSwitch{name="bg", x=1180,y=560,disp=SETval("bg"),
code=function() code=function()
BG.set('none') BG.set('none')
SETTING.bg=not SETTING.bg SETTING.bg=not SETTING.bg