This commit is contained in:
2020-07-10 13:22:24 +08:00
parent 8c154e38ba
commit 9549990b66
108 changed files with 5668 additions and 888 deletions

View File

@@ -124,6 +124,7 @@ function CLLPStart.onLoadPanelAfter(p)
local count = #(lateLoadPanels)
if (panelIndex >= count) then
--已经加载完
isLogined = true
CLLPStart.connectServer()
end
end
@@ -144,10 +145,11 @@ function CLLPStart.connectServer()
-- showHotWheel()
-- Net.self:connect(selectedServer.host, bio2number(selectedServer.port))
isLogined = true
NetProto.init(
function(success)
if success then
CLLPStart.doEnterGame()
CLLPStart.showGuid()
else
CLUIUtl.showConfirm(
"与服务器失去联系",
@@ -232,6 +234,14 @@ function CLLPStart.doEnterGame()
end
end
CLLPStart.showGuid = function()
if Prefs.getShowGuid() then
getPanelAsy("PanelGuid", onLoadedPanelTT, CLLPStart.doEnterGame)
else
CLLPStart.doEnterGame()
end
end
CLLPStart.hideSplash = function()
local p2 = CLPanelManager.getPanel("PanelSplash")
if (p2 ~= nil) then