取消暂停过程中允许再次暂停
This commit is contained in:
@@ -4,9 +4,20 @@ local scene={}
|
|||||||
|
|
||||||
local timer
|
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.mouseDown=NULL
|
||||||
scene.touchDown=NULL
|
scene.touchDown=NULL
|
||||||
|
|
||||||
@@ -36,4 +47,8 @@ function scene.draw()
|
|||||||
gc.rectangle('fill',500,342,280*timer,36,10)
|
gc.rectangle('fill',500,342,280*timer,36,10)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scene.widgetList={
|
||||||
|
WIDGET.newKey{name="pause",x=0,y=45,w=60,code=pauseGame,fText=TEXTURE.game.pause},
|
||||||
|
}
|
||||||
|
|
||||||
return scene
|
return scene
|
||||||
Reference in New Issue
Block a user