调整确认删除的提醒问号时间计算方法和位置

This commit is contained in:
MrZ626
2021-08-03 15:35:51 +08:00
parent 0bb4b069e7
commit 5b31e3eb87
5 changed files with 30 additions and 31 deletions

View File

@@ -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