调整确认删除的提醒问号时间计算方法和位置
This commit is contained in:
@@ -62,13 +62,13 @@ function scene.keyDown(key)
|
||||
end
|
||||
end
|
||||
elseif key=="delete"then
|
||||
if sure>20 then
|
||||
if sure>.3 then
|
||||
TABLE.cut(MISSION)
|
||||
cur=0
|
||||
sure=0
|
||||
SFX.play('finesseError',.7)
|
||||
else
|
||||
sure=50
|
||||
sure=1
|
||||
end
|
||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||
if #MISSION>0 then
|
||||
@@ -116,8 +116,8 @@ function scene.keyDown(key)
|
||||
end
|
||||
end
|
||||
|
||||
function scene.update()
|
||||
if sure>0 then sure=sure-1 end
|
||||
function scene.update(dt)
|
||||
if sure>0 then sure=sure-dt end
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
@@ -184,8 +184,8 @@ function scene.draw()
|
||||
|
||||
--Confirm reset
|
||||
if sure>0 then
|
||||
gc.setColor(1,1,1,sure*.02)
|
||||
gc.draw(TEXTURE.sure,980,600)
|
||||
gc.setColor(1,1,1,sure)
|
||||
mDraw(TEXTURE.sure,1000,640,nil,.9)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user