取消暂停过程中允许再次暂停

This commit is contained in:
MrZ626
2021-08-10 01:09:34 +08:00
parent 7943ebc8f8
commit d040754d8c

View File

@@ -4,9 +4,20 @@ local scene={}
local timer
function scene.sceneInit()timer=1 end
function scene.sceneInit()
timer=1
scene.widgetList.pause.x=
SETTING.menuPos=='right'and 1195 or
SETTING.menuPos=='middle'and 860 or
SETTING.menuPos=='left'and 190
end
function scene.keyDown(key)
if key=="escape"then
pauseGame()
end
end
scene.keyDown=NULL
scene.mouseDown=NULL
scene.touchDown=NULL
@@ -36,4 +47,8 @@ function scene.draw()
gc.rectangle('fill',500,342,280*timer,36,10)
end
scene.widgetList={
WIDGET.newKey{name="pause",x=0,y=45,w=60,code=pauseGame,fText=TEXTURE.game.pause},
}
return scene