mod界面加入重置按钮

This commit is contained in:
MrZ626
2020-11-21 22:44:27 +08:00
parent d023455f73
commit 73ccc1d7ed
6 changed files with 8 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ function keyDown.mod(key)
for _,M in next,MODOPT do
M.sel=0
end
SFX.play("hold")
sceneTemp.unranked=false
elseif #key==1 then
for N,M in next,MODOPT do
@@ -124,5 +125,6 @@ end
WIDGET.init("mod",{
WIDGET.newText({name="title",x=80,y=50,font=70,align="L"}),
WIDGET.newText({name="unranked",x=1200,y=60,color="lRed",font=50,align="R",hide=function()return not sceneTemp.unranked end}),
WIDGET.newButton({name="reset",x=1140,y=540,w=170,h=80,font=25,code=WIDGET.lnk_pressKey("tab")}),
WIDGET.newButton({name="back",x=1140,y=640,w=170,h=80,font=40,code=WIDGET.lnk_BACK}),
})