第一次启动会自动进入语言设置菜单 close #150
This commit is contained in:
5
main.lua
5
main.lua
@@ -27,6 +27,7 @@ MOBILE=SYSTEM=='Android'or SYSTEM=='iOS'
|
||||
SAVEDIR=fs.getSaveDirectory()
|
||||
|
||||
--Global Vars & Settings
|
||||
FIRSTLAUNCH=false
|
||||
DAILYLAUNCH=false
|
||||
|
||||
--System setting
|
||||
@@ -265,6 +266,10 @@ end
|
||||
do
|
||||
local needSave
|
||||
|
||||
if not fs.getInfo('conf/data')then
|
||||
FIRSTLAUNCH=true
|
||||
needSave=true
|
||||
end
|
||||
if type(STAT.version)~='number'then
|
||||
STAT.version=0
|
||||
needSave=true
|
||||
|
||||
@@ -144,7 +144,12 @@ end
|
||||
|
||||
function scene.mouseDown()
|
||||
if LOADED then
|
||||
SCN.swapTo(SETTING.simpMode and'main_simple'or'main')
|
||||
if FIRSTLAUNCH then
|
||||
SCN.push('main')
|
||||
SCN.swapTo('lang')
|
||||
else
|
||||
SCN.swapTo(SETTING.simpMode and'main_simple'or'main')
|
||||
end
|
||||
end
|
||||
end
|
||||
scene.touchDown=scene.mouseDown
|
||||
|
||||
Reference in New Issue
Block a user