aa
This commit is contained in:
@@ -36,14 +36,13 @@ CLLMainLua.init = function()
|
||||
ReporterMessageReceiver.self:setLua()
|
||||
end
|
||||
-- 设置显示状态栏
|
||||
Screen.fullScreen = false
|
||||
-- Screen.fullScreen = false
|
||||
-- AndroidStatusBar.setColor(AndroidStatusBar.DEFAULT_BACKGROUND_COLOR)
|
||||
-- AndroidStatusBar.statusBarState = AndroidStatusBar.States.Visible
|
||||
-- AndroidStatusBar.dimmed = false
|
||||
-- AndroidStatusBar.setFlags(AndroidStatusBar.WINDOW_FLAG_FORCE_NOT_FULLSCREEN)
|
||||
|
||||
CS.ApplicationChrome.statusBarState = CS.ApplicationChrome.States.Visible
|
||||
CS.ApplicationChrome.dimmed = false
|
||||
-- CS.ApplicationChrome.statusBarState = CS.ApplicationChrome.States.Visible
|
||||
-- CS.ApplicationChrome.dimmed = false
|
||||
|
||||
--设置帧率
|
||||
Application.targetFrameRate = 10
|
||||
@@ -169,6 +168,7 @@ function CLLMainLua.onCheckUpgrader(isHaveUpdated)
|
||||
end
|
||||
|
||||
function CLLMainLua.begain()
|
||||
pcall(fitIphoneX)
|
||||
local success, msg = pcall(CLLMainLua.init)
|
||||
if not success then
|
||||
printe(msg)
|
||||
|
||||
@@ -592,6 +592,17 @@ function dump(obj)
|
||||
end
|
||||
return dumpObj(obj, 0)
|
||||
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 = {}
|
||||
|
||||
Reference in New Issue
Block a user