移除加载时可能的强制重启(防止ios出问题)

几处love退出改为去quit场景(防止ios出问题)
整理代码
框架跟进
This commit is contained in:
MrZ_26
2022-11-06 17:28:54 +08:00
parent d932febe89
commit f70edaac83
66 changed files with 252 additions and 312 deletions

View File

@@ -4,7 +4,7 @@ local errorShot,errorInfo
local scene={}
function scene.sceneInit()
function scene.enter()
BGcolor=math.random()>.026 and {.3,.5,.9} or {.62,.3,.926}
sysAndScn=SYSTEM.."-"..VERSION.string.." scene:"..Z.getErr('#').scene
errorText=LOADED and text.errorMsg or "An error has occurred while the game was loading.\nAn error log has been created so you can send it to the author."
@@ -34,7 +34,7 @@ end
scene.widgetList={
WIDGET.newKey{name='console',x=940,y=640,w=170,h=80,font=65,fText=CHAR.icon.console,code=goScene'app_console'},
WIDGET.newKey{name='quit',x=1140,y=640,w=170,h=80,font=40,fText=CHAR.icon.cross_thick,code=love.event.quit},
WIDGET.newKey{name='quit',x=1140,y=640,w=170,h=80,font=40,fText=CHAR.icon.cross_thick,code=goScene('quit','none')},
}
return scene