aa
This commit is contained in:
@@ -36,14 +36,13 @@ CLLMainLua.init = function()
|
|||||||
ReporterMessageReceiver.self:setLua()
|
ReporterMessageReceiver.self:setLua()
|
||||||
end
|
end
|
||||||
-- 设置显示状态栏
|
-- 设置显示状态栏
|
||||||
Screen.fullScreen = false
|
-- Screen.fullScreen = false
|
||||||
-- AndroidStatusBar.setColor(AndroidStatusBar.DEFAULT_BACKGROUND_COLOR)
|
-- AndroidStatusBar.setColor(AndroidStatusBar.DEFAULT_BACKGROUND_COLOR)
|
||||||
-- AndroidStatusBar.statusBarState = AndroidStatusBar.States.Visible
|
-- AndroidStatusBar.statusBarState = AndroidStatusBar.States.Visible
|
||||||
-- AndroidStatusBar.dimmed = false
|
-- AndroidStatusBar.dimmed = false
|
||||||
-- AndroidStatusBar.setFlags(AndroidStatusBar.WINDOW_FLAG_FORCE_NOT_FULLSCREEN)
|
-- AndroidStatusBar.setFlags(AndroidStatusBar.WINDOW_FLAG_FORCE_NOT_FULLSCREEN)
|
||||||
|
-- CS.ApplicationChrome.statusBarState = CS.ApplicationChrome.States.Visible
|
||||||
CS.ApplicationChrome.statusBarState = CS.ApplicationChrome.States.Visible
|
-- CS.ApplicationChrome.dimmed = false
|
||||||
CS.ApplicationChrome.dimmed = false
|
|
||||||
|
|
||||||
--设置帧率
|
--设置帧率
|
||||||
Application.targetFrameRate = 10
|
Application.targetFrameRate = 10
|
||||||
@@ -169,6 +168,7 @@ function CLLMainLua.onCheckUpgrader(isHaveUpdated)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function CLLMainLua.begain()
|
function CLLMainLua.begain()
|
||||||
|
pcall(fitIphoneX)
|
||||||
local success, msg = pcall(CLLMainLua.init)
|
local success, msg = pcall(CLLMainLua.init)
|
||||||
if not success then
|
if not success then
|
||||||
printe(msg)
|
printe(msg)
|
||||||
|
|||||||
@@ -592,6 +592,17 @@ function dump(obj)
|
|||||||
end
|
end
|
||||||
return dumpObj(obj, 0)
|
return dumpObj(obj, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fitIphoneX()
|
||||||
|
local mode = SystemInfo.deviceModel
|
||||||
|
if
|
||||||
|
string.find(mode, "iPhone10,3") or string.find(mode, "iPhone10,6") or string.find(mode, "iPhone11,3") or
|
||||||
|
string.find(mode, "iPhone11,6") or -- XS Max
|
||||||
|
string.find(mode, "iPhone11,8")
|
||||||
|
then -- xr
|
||||||
|
NGUITools.isFringe = true
|
||||||
|
end
|
||||||
|
end
|
||||||
--*******************************************************************
|
--*******************************************************************
|
||||||
--*******************************************************************
|
--*******************************************************************
|
||||||
local borrowedSpList = {}
|
local borrowedSpList = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user