Merge branch 'xma/dev' into 0功能/本周版本优化内容
# Conflicts: # Assets/ManagedResources/~Lua/Logic/Network.lua # Assets/ManagedResources/~Lua/Modules/Harmony/Panel/HongMengEnvoyPanel.lua # Assets/ManagedResources/~Lua/Modules/Harmony/View/HarmonyScrllow.lua # Assets/ManagedResources/~Lua/Modules/Mission/MissionDailyPanel_QingLongSecretTreasure.lua # Assets/ManagedResources/~Lua/Modules/Story/StoryManager.luadev_chengFeng
commit
dd706075d2
|
@ -112,41 +112,6 @@ NavMeshSettings:
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
--- !u!1 &1071845793
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1071845794}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: "\u7ACB\u7ED8\u8BF7\u653E\u8FD9\u91CC\uFF0C \u5927\u5C0F\u8BF7\u8C03\u6574\u6211\u786E\u5B9A"
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1071845794
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1071845793}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 0.45, y: 0.45, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 462259303512664307}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
|
||||||
m_AnchoredPosition: {x: -1.1, y: -76.8}
|
|
||||||
m_SizeDelta: {x: 100, y: 100}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!1 &1133079358
|
--- !u!1 &1133079358
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1673,14 +1638,13 @@ RectTransform:
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children: []
|
||||||
- {fileID: 1071845794}
|
|
||||||
m_Father: {fileID: 5490285290452042586}
|
m_Father: {fileID: 5490285290452042586}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 26.6, y: -162.1}
|
m_AnchoredPosition: {x: 0, y: -120}
|
||||||
m_SizeDelta: {x: 100, y: 100}
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!224 &484367328498137730
|
--- !u!224 &484367328498137730
|
||||||
|
@ -22501,7 +22465,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 6.88, y: 130.4}
|
m_AnchoredPosition: {x: 0, y: 125}
|
||||||
m_SizeDelta: {x: 221.93, y: 548.78}
|
m_SizeDelta: {x: 221.93, y: 548.78}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &5499537129101667573
|
--- !u!222 &5499537129101667573
|
||||||
|
@ -25950,7 +25914,7 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 462259303512664307}
|
- component: {fileID: 462259303512664307}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: "\u70B9\u5F00\u6211\uFF0C\u4F4D\u7F6E\u8BF7\u8C03\u6574\u6211\u786E\u5B9A"
|
m_Name: "\u7ACB\u7ED8\u653E\u5728\u8FD9\u91CC"
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
|
|
@ -3169,7 +3169,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 259, y: 303}
|
m_AnchoredPosition: {x: 284, y: 303}
|
||||||
m_SizeDelta: {x: 203.89, y: 203.89}
|
m_SizeDelta: {x: 203.89, y: 203.89}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &313656261710327451
|
--- !u!222 &313656261710327451
|
||||||
|
|
|
@ -3257,6 +3257,7 @@ RectTransform:
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1918779212887374031}
|
- {fileID: 1918779212887374031}
|
||||||
|
- {fileID: 7477322209160810193}
|
||||||
m_Father: {fileID: 1918779212270220639}
|
m_Father: {fileID: 1918779212270220639}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
@ -4464,7 +4465,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: -18.55}
|
m_AnchoredPosition: {x: 0, y: 16}
|
||||||
m_SizeDelta: {x: 459.73, y: 37.1}
|
m_SizeDelta: {x: 459.73, y: 37.1}
|
||||||
m_Pivot: {x: 0, y: 0.5}
|
m_Pivot: {x: 0, y: 0.5}
|
||||||
--- !u!222 &1918779212887373872
|
--- !u!222 &1918779212887373872
|
||||||
|
@ -9220,6 +9221,100 @@ MonoBehaviour:
|
||||||
m_FillClockwise: 1
|
m_FillClockwise: 1
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
|
--- !u!1 &6860646687044628261
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7477322209160810193}
|
||||||
|
- component: {fileID: 3756077877038525707}
|
||||||
|
- component: {fileID: 8707570722145572194}
|
||||||
|
- component: {fileID: 5811088695344504971}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: time
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7477322209160810193
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6860646687044628261}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3291570141714537517}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 26, y: -19}
|
||||||
|
m_SizeDelta: {x: 459.73, y: 37.1}
|
||||||
|
m_Pivot: {x: 0, y: 0.5}
|
||||||
|
--- !u!222 &3756077877038525707
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6860646687044628261}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8707570722145572194
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6860646687044628261}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 72f543c75b355a741976183c1e74debc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
_textSpacing: -1
|
||||||
|
--- !u!114 &5811088695344504971
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6860646687044628261}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: ebfe0e44da74fbd44b1b744995de2324, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.3018868, g: 0.3018868, b: 0.3018868, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||||
|
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||||
|
m_FontSize: 27
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 2
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 1
|
||||||
|
m_VerticalOverflow: 1
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: "\u6D3B\u52A8\u65F6\u95F4\uFF1A"
|
||||||
|
LanguageIndex: 11708
|
||||||
--- !u!1 &6906709250642857206
|
--- !u!1 &6906709250642857206
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -63,4 +63,12 @@ function ServerConfigManager.GetConfigInfo(key)
|
||||||
local s = ConfigMgr:GetConfigInfo(key)
|
local s = ConfigMgr:GetConfigInfo(key)
|
||||||
return s
|
return s
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function ServerConfigManager.GetSDKVersionCode()
|
||||||
|
if AppConst.isSDK then
|
||||||
|
return AndroidDeviceInfo.Instance:GetVersionCode()
|
||||||
|
end
|
||||||
|
return 9999
|
||||||
end
|
end
|
|
@ -103,7 +103,7 @@ function Network:OnReconnect()
|
||||||
|
|
||||||
if not self.isConnected then
|
if not self.isConnected then
|
||||||
Log("没有收到 重连信息,重新设置链接!!")
|
Log("没有收到 重连信息,重新设置链接!!")
|
||||||
self.socket:Disconnect()
|
self.socket:Disconnect("no reconnect msg, reset socket!!")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -71,7 +71,9 @@ end
|
||||||
-- 获取设备Id
|
-- 获取设备Id
|
||||||
function this.GetDeviceId()
|
function this.GetDeviceId()
|
||||||
if AppConst.isSDK then
|
if AppConst.isSDK then
|
||||||
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.ThinkAnalysis_GetDeviceID) then
|
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.ThinkAnalysis_GetDeviceID)
|
||||||
|
or ServerConfigManager.GetSDKVersionCode() >= 24
|
||||||
|
then
|
||||||
return App.TAMgr:GetDeviceId()
|
return App.TAMgr:GetDeviceId()
|
||||||
end
|
end
|
||||||
return AndroidDeviceInfo.Instance:GetDeviceID()
|
return AndroidDeviceInfo.Instance:GetDeviceID()
|
||||||
|
|
|
@ -143,7 +143,6 @@ function FormationEditPopup:BindEvent()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LogRed(#choosedList)
|
|
||||||
this.RefreshDesc()
|
this.RefreshDesc()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -262,7 +261,7 @@ function this.SingleHeroDataShow(_go, _heroData)
|
||||||
choosedList[i].position=v.position-1
|
choosedList[i].position=v.position-1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
this.OnClickTabBtn(proId)
|
this.RefreshDesc()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -277,8 +276,8 @@ function this.SingleHeroDataShow(_go, _heroData)
|
||||||
choosed:SetActive(true)
|
choosed:SetActive(true)
|
||||||
order=order+1
|
order=order+1
|
||||||
table.insert(choosedList, {did = heroData.dynamicId, choosed = choosed, position=order})
|
table.insert(choosedList, {did = heroData.dynamicId, choosed = choosed, position=order})
|
||||||
this.OnClickTabBtn(proId)
|
|
||||||
choosedList[heroData.dynamicId] = choosed
|
choosedList[heroData.dynamicId] = choosed
|
||||||
|
this.RefreshDesc()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddLongPressClick(go, function()
|
Util.AddLongPressClick(go, function()
|
||||||
|
|
|
@ -1044,7 +1044,8 @@ function this.SetOneKeyGoExpedition()
|
||||||
end
|
end
|
||||||
for k, v in ipairs(theros) do
|
for k, v in ipairs(theros) do
|
||||||
local curSingleherodata = HeroManager.GetSingleHeroData(v.dynamicId)
|
local curSingleherodata = HeroManager.GetSingleHeroData(v.dynamicId)
|
||||||
if not upHeroSidTable[curSingleherodata.id] then
|
local hp = FormationManager.GetFormationHeroHp(this.curFormationIndex,v.dynamicId)
|
||||||
|
if not upHeroSidTable[curSingleherodata.id] and hp > 0 then
|
||||||
LogGreen("this.choosedList "..#this.choosedList)
|
LogGreen("this.choosedList "..#this.choosedList)
|
||||||
if #this.choosedList < 6 then
|
if #this.choosedList < 6 then
|
||||||
for n = 1, #posArr do
|
for n = 1, #posArr do
|
||||||
|
|
|
@ -116,6 +116,7 @@ function this.SetRankDataShow(msg)
|
||||||
end
|
end
|
||||||
myDemonsItemList[i].gameObject:SetActive(true)
|
myDemonsItemList[i].gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
|
this.myDemons:SetActive(msg.myRankInfo.rank > 0)
|
||||||
end
|
end
|
||||||
--显示奖励
|
--显示奖励
|
||||||
function this.ShowCurIndexRewardData()
|
function this.ShowCurIndexRewardData()
|
||||||
|
|
|
@ -27,7 +27,7 @@ function this.InitData(func)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
NetManager.GetDeathPathStatusResponse(function(msg)
|
NetManager.GetDeathPathStatusResponse(function(msg)
|
||||||
this.allowchallange=msg.allowchallange
|
this.allowchallange=msg.allowChallange
|
||||||
this.status=msg.status
|
this.status=msg.status
|
||||||
if this.status==DeathPosStatus.Fight then --请求剩余挑战次数
|
if this.status==DeathPosStatus.Fight then --请求剩余挑战次数
|
||||||
NetManager.GetDeathPathInfoResponse(function(msg1)
|
NetManager.GetDeathPathInfoResponse(function(msg1)
|
||||||
|
|
|
@ -641,7 +641,7 @@ function HandBookHeroAndEquipListPanel:OnShowSingleHeroData(...)
|
||||||
if star == 6 then
|
if star == 6 then
|
||||||
lv = 145
|
lv = 145
|
||||||
elseif star == 10 then
|
elseif star == 10 then
|
||||||
lv = 155
|
lv = 255
|
||||||
elseif star == 11 then
|
elseif star == 11 then
|
||||||
lv = 330
|
lv = 330
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
require("Base/BasePanel")
|
require("Base/BasePanel")
|
||||||
HongMengEnvoyPanel = Inherit(BasePanel)
|
HongMengEnvoyPanel = Inherit(BasePanel)
|
||||||
|
|
||||||
HongMengEnvoyPanel.contents = {
|
HongMengEnvoyPanel.contents = {
|
||||||
[1] = {view = require("Modules/Harmony/View/HarmonyScrllow"), panelName = " HongMengEnvoyPanel"}
|
[1] = {view = require("Modules/Harmony/View/HarmonyScrllow"), panelName = " HongMengEnvoyPanel"}
|
||||||
}
|
}
|
||||||
HongMengEnvoyPanel.prefab = {}
|
HongMengEnvoyPanel.prefab = {}
|
||||||
|
|
||||||
HongMengEnvoyPanel.EnvoyItemList = {}
|
HongMengEnvoyPanel.EnvoyItemList = {}
|
||||||
local Item = require("Modules/Harmony/EnvoyItem/EnvoyItem")
|
local Item = require("Modules/Harmony/EnvoyItem/EnvoyItem")
|
||||||
|
|
||||||
local Gold = 0
|
local Gold = 0
|
||||||
local GrowthAmulet = 0
|
local GrowthAmulet = 0
|
||||||
HongMengEnvoyPanel.timerEffect = nil
|
HongMengEnvoyPanel.timerEffect = nil
|
||||||
|
@ -43,27 +40,17 @@ function HongMengEnvoyPanel:InitComponent()
|
||||||
HarmonyManager:SetTowerInit()
|
HarmonyManager:SetTowerInit()
|
||||||
|
|
||||||
self:InitEnvoyItemList(ItemPfb, parent)
|
self:InitEnvoyItemList(ItemPfb, parent)
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function HongMengEnvoyPanel:InitEnvoyItemList(ItemPfb, parent)
|
function HongMengEnvoyPanel:InitEnvoyItemList(ItemPfb, parent)
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
-- bodys
|
|
||||||
|
|
||||||
self.EnvoyItemList[i] = Item:New(newObject(ItemPfb))
|
self.EnvoyItemList[i] = Item:New(newObject(ItemPfb))
|
||||||
|
|
||||||
self.EnvoyItemList[i]:InitComponent(parent, HarmonyManager.hongmengGuards[i])
|
self.EnvoyItemList[i]:InitComponent(parent, HarmonyManager.hongmengGuards[i])
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, #self.contents do
|
for i = 1, #self.contents do
|
||||||
self.prefab[i] = Util.GetGameObject(self.panel, self.contents[i].panelName)
|
self.prefab[i] = Util.GetGameObject(self.panel, self.contents[i].panelName)
|
||||||
self.contents[i].view:InitComponent(
|
self.contents[i].view:InitComponent(self.panel,BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi),BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal),2)
|
||||||
self.panel,
|
|
||||||
BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi),
|
|
||||||
BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal),
|
|
||||||
2
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--绑定事件(用于子类重写)
|
--绑定事件(用于子类重写)
|
||||||
|
@ -94,7 +81,6 @@ function HongMengEnvoyPanel:BindEvent()
|
||||||
PopupTipPanel.ShowTip("鸿蒙碑等级已达上限!")
|
PopupTipPanel.ShowTip("鸿蒙碑等级已达上限!")
|
||||||
else
|
else
|
||||||
local data = HarmonyManager:GetHongMengUpData()
|
local data = HarmonyManager:GetHongMengUpData()
|
||||||
--print(data.LevelUp[1][2].." "..data.LevelUp[2][2])
|
|
||||||
if data == nil then
|
if data == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -137,7 +123,6 @@ function HongMengEnvoyPanel:RunTimerFun()
|
||||||
for key, value in pairs(self.EnvoyItemList) do
|
for key, value in pairs(self.EnvoyItemList) do
|
||||||
if HarmonyManager.hongmengGuards[key].time - GetTimeStamp() > 0 then
|
if HarmonyManager.hongmengGuards[key].time - GetTimeStamp() > 0 then
|
||||||
if value.Empty.activeSelf == false then
|
if value.Empty.activeSelf == false then
|
||||||
-- body
|
|
||||||
value.Empty:SetActive(true)
|
value.Empty:SetActive(true)
|
||||||
end
|
end
|
||||||
local time_content = TimeToFelaxible(HarmonyManager.hongmengGuards[key].time - GetTimeStamp())
|
local time_content = TimeToFelaxible(HarmonyManager.hongmengGuards[key].time - GetTimeStamp())
|
||||||
|
@ -163,7 +148,6 @@ function HongMengEnvoyPanel:IsUpBtnGray()
|
||||||
self.imageGame:SetActive(false)
|
self.imageGame:SetActive(false)
|
||||||
self.TextGame:SetActive(false)
|
self.TextGame:SetActive(false)
|
||||||
self.UnShowText:SetActive(true)
|
self.UnShowText:SetActive(true)
|
||||||
-- self.UpBtnRedPoint:SetActive(false)
|
|
||||||
else
|
else
|
||||||
Util.SetGray(self.UpBtn, false)
|
Util.SetGray(self.UpBtn, false)
|
||||||
self.imageGame:SetActive(true)
|
self.imageGame:SetActive(true)
|
||||||
|
@ -174,11 +158,8 @@ function HongMengEnvoyPanel:IsUpBtnGray()
|
||||||
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
|
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
|
||||||
end
|
end
|
||||||
function HongMengEnvoyPanel:RefeshRedPoint()
|
function HongMengEnvoyPanel:RefeshRedPoint()
|
||||||
-- body
|
|
||||||
|
|
||||||
end
|
end
|
||||||
function HongMengEnvoyPanel:UpdateShow(list)
|
function HongMengEnvoyPanel:UpdateShow(list)
|
||||||
|
|
||||||
for i = 1, #list do
|
for i = 1, #list do
|
||||||
--LogBlue("执行刷新"..list[i].heroId)
|
--LogBlue("执行刷新"..list[i].heroId)
|
||||||
self.EnvoyItemList[i]:SetItemData(list[i])
|
self.EnvoyItemList[i]:SetItemData(list[i])
|
||||||
|
@ -259,7 +240,6 @@ end
|
||||||
--界面打开时调用(用于子类重写)
|
--界面打开时调用(用于子类重写)
|
||||||
function HongMengEnvoyPanel:OnOpen(equipSId)
|
function HongMengEnvoyPanel:OnOpen(equipSId)
|
||||||
--NetManager.PlayerInfoRequest(LoadingPanel.OnStep)
|
--NetManager.PlayerInfoRequest(LoadingPanel.OnStep)
|
||||||
|
|
||||||
for i = 1, #self.EnvoyItemList do
|
for i = 1, #self.EnvoyItemList do
|
||||||
self.EnvoyItemList[i]:OnOpen()
|
self.EnvoyItemList[i]:OnOpen()
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
local this={}
|
local this={}
|
||||||
|
|
||||||
this.tab=ConfigManager.GetConfig(ConfigName.Hongmeng)
|
this.tab=ConfigManager.GetConfig(ConfigName.Hongmeng)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local Gold =0;
|
local Gold =0;
|
||||||
local DemonCrystal = 0
|
local DemonCrystal = 0
|
||||||
local HeroList = {}
|
local HeroList = {}
|
||||||
|
|
||||||
local tempData = nil
|
local tempData = nil
|
||||||
local TempItem = nil
|
local TempItem = nil
|
||||||
|
|
||||||
local ItemList = {}
|
local ItemList = {}
|
||||||
local Box = 0
|
local Box = 0
|
||||||
local OpenBox = 0
|
local OpenBox = 0
|
||||||
|
@ -21,146 +15,85 @@ function this:AwakeLength()
|
||||||
HeroCount = 0
|
HeroCount = 0
|
||||||
Box = #HarmonyManager.hongmengHeroInfos;
|
Box = #HarmonyManager.hongmengHeroInfos;
|
||||||
OpenBox = #HarmonyManager.hongmengHeroInfos+2
|
OpenBox = #HarmonyManager.hongmengHeroInfos+2
|
||||||
--print(Box.."@@@@@@@@@"..OpenBox)
|
|
||||||
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengHeroInfos[i].heroId~="" then
|
if HarmonyManager.hongmengHeroInfos[i].heroId~="" then
|
||||||
-- body
|
|
||||||
HeroCount = HeroCount + 1
|
HeroCount = HeroCount + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if self.stage == 1 then
|
if self.stage == 1 then
|
||||||
-- body
|
|
||||||
this.NumText.text = string.format("%d/%d",HeroCount,Box)
|
this.NumText.text = string.format("%d/%d",HeroCount,Box)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
local count = 0
|
local count = 0
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
-- body
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
this.NumText.text = string.format("%d/%d",HeroCount + count,Box + #HarmonyManager.hongmengGuards)
|
this.NumText.text = string.format("%d/%d",HeroCount + count,Box + #HarmonyManager.hongmengGuards)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
function this:InitComponent(gameObject,Golds,DemonCrystals,stage)
|
function this:InitComponent(gameObject,Golds,DemonCrystals,stage)
|
||||||
Gold = Golds
|
Gold = Golds
|
||||||
DemonCrystal = DemonCrystals
|
DemonCrystal = DemonCrystals
|
||||||
self.stage = stage
|
self.stage = stage
|
||||||
|
|
||||||
-- item预制件
|
-- item预制件
|
||||||
|
|
||||||
this.item = Util.GetGameObject(gameObject , "HarmonyPanel/item")
|
this.item = Util.GetGameObject(gameObject , "HarmonyPanel/item")
|
||||||
|
|
||||||
--btn组件
|
--btn组件
|
||||||
this.addBtn = Util.GetGameObject(gameObject,"HarmonyPanel/AddBtn")
|
this.addBtn = Util.GetGameObject(gameObject,"HarmonyPanel/AddBtn")
|
||||||
this.GongMingMsgBtn = Util.GetGameObject(gameObject,"HarmonyPanel/KnowGongMing")
|
this.GongMingMsgBtn = Util.GetGameObject(gameObject,"HarmonyPanel/KnowGongMing")
|
||||||
|
|
||||||
this.scrollbar = Util.GetGameObject(gameObject,"HarmonyPanel/Scrollbar"):GetComponent("Scrollbar")
|
this.scrollbar = Util.GetGameObject(gameObject,"HarmonyPanel/Scrollbar"):GetComponent("Scrollbar")
|
||||||
local scrollParent = Util.GetGameObject(gameObject, "HarmonyPanel/scroll"):GetComponent("RectTransform").rect
|
local scrollParent = Util.GetGameObject(gameObject, "HarmonyPanel/scroll"):GetComponent("RectTransform").rect
|
||||||
|
|
||||||
this.NumText = Util.GetGameObject(gameObject,"HarmonyPanel/itemNumText"):GetComponent("Text")
|
this.NumText = Util.GetGameObject(gameObject,"HarmonyPanel/itemNumText"):GetComponent("Text")
|
||||||
|
|
||||||
this.ScrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,Util.GetGameObject(gameObject,"HarmonyPanel/scroll").transform,
|
this.ScrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,Util.GetGameObject(gameObject,"HarmonyPanel/scroll").transform,
|
||||||
this.item,this.scrollbar,Vector2.New(-scrollParent.x*2,-scrollParent.y*2),1,5,Vector2.New(42,15))
|
this.item,this.scrollbar,Vector2.New(-scrollParent.x*2,-scrollParent.y*2),1,5,Vector2.New(42,15))
|
||||||
|
|
||||||
this.ScrollView.moveTween.MomentumAmount = 1
|
this.ScrollView.moveTween.MomentumAmount = 1
|
||||||
this.ScrollView.moveTween.Strength = 1
|
this.ScrollView.moveTween.Strength = 1
|
||||||
-- for key, value in ConfigPairs(this.tab) do
|
|
||||||
-- print("key:",key,"value",value.Id)
|
|
||||||
-- end
|
|
||||||
|
|
||||||
|
|
||||||
this.BoxList=0;
|
this.BoxList=0;
|
||||||
this:AwakeLength()
|
this:AwakeLength()
|
||||||
this:InitBox()
|
this:InitBox()
|
||||||
--this.RunTimerFun()
|
|
||||||
end
|
end
|
||||||
local TextList = {}
|
local TextList = {}
|
||||||
local BoxList = {}
|
local BoxList = {}
|
||||||
function this:InitBox()
|
function this:InitBox()
|
||||||
|
|
||||||
--
|
|
||||||
|
|
||||||
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
|
|
||||||
this.ScrollView:SetData(keys,function (index, go)
|
this.ScrollView:SetData(keys,function (index, go)
|
||||||
local key = keys[index]
|
local key = keys[index]
|
||||||
|
|
||||||
this.SingleBoxDataShow(go, this.tab[key], index)
|
this.SingleBoxDataShow(go, this.tab[key], index)
|
||||||
|
|
||||||
|
|
||||||
end,false,false)
|
end,false,false)
|
||||||
--print(LengthOfTable(ItemList))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.RunTimerFun()
|
function this.RunTimerFun()
|
||||||
|
|
||||||
local refreshFunc = function()
|
local refreshFunc = function()
|
||||||
|
|
||||||
for key, value in pairs(ItemList) do
|
for key, value in pairs(ItemList) do
|
||||||
if value.index <= #HarmonyManager.hongmengHeroInfos then
|
if value.index <= #HarmonyManager.hongmengHeroInfos then
|
||||||
--value.TimerText.text = "" value.index <= #HarmonyManager.hongmengHeroInfos and
|
|
||||||
-- print("倒计时开启 .."..#HarmonyManager.hongmengHeroInfos)
|
|
||||||
if value.TimerText ~=nil and value.Empty ~=nil then
|
if value.TimerText ~=nil and value.Empty ~=nil then
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengHeroInfos[value.index].time - GetTimeStamp() > 0 then
|
if HarmonyManager.hongmengHeroInfos[value.index].time - GetTimeStamp() > 0 then
|
||||||
if value.Empty ~=nil then
|
if value.Empty ~=nil then
|
||||||
-- body
|
|
||||||
--print(value.Empty," ")
|
|
||||||
-- if value.Empty.activeSelf == false then
|
|
||||||
-- -- body
|
|
||||||
-- value.Empty:SetActive(true)
|
|
||||||
-- end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local time_content = TimeToFelaxible(HarmonyManager.hongmengHeroInfos[value.index].time - GetTimeStamp())
|
local time_content = TimeToFelaxible(HarmonyManager.hongmengHeroInfos[value.index].time - GetTimeStamp())
|
||||||
--print(" ~~~~~ ",value.TimerText," xxxxx",time_content)
|
|
||||||
value.TimerText.text = string.format("<color=#ffbc22>%s</color>\n<color=#bd922a>后恢复</color>",time_content)
|
value.TimerText.text = string.format("<color=#ffbc22>%s</color>\n<color=#bd922a>后恢复</color>",time_content)
|
||||||
else
|
else
|
||||||
|
|
||||||
HarmonyManager.hongmengHeroInfos[value.index].time = 0
|
HarmonyManager.hongmengHeroInfos[value.index].time = 0
|
||||||
|
|
||||||
if value.TimerText then
|
if value.TimerText then
|
||||||
-- body
|
|
||||||
value.TimerText.text = ""
|
value.TimerText.text = ""
|
||||||
if not value.AddImage.activeSelf then
|
if not value.AddImage.activeSelf then
|
||||||
-- body
|
|
||||||
value.AddImage:SetActive(true)
|
value.AddImage:SetActive(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
if this.timerEffect ==nil then
|
if this.timerEffect ==nil then
|
||||||
-- body
|
|
||||||
this.timerEffect = Timer.New(refreshFunc, 1, -1, true)
|
this.timerEffect = Timer.New(refreshFunc, 1, -1, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
this.timerEffect:Start()
|
this.timerEffect:Start()
|
||||||
refreshFunc()
|
refreshFunc()
|
||||||
end
|
end
|
||||||
function this.SingleBoxDataShow(go,boxData,index)
|
function this.SingleBoxDataShow(go,boxData,index)
|
||||||
-- body
|
|
||||||
|
|
||||||
local mask = Util.GetGameObject(go.transform,"Box/Empty/lock/mask");
|
local mask = Util.GetGameObject(go.transform,"Box/Empty/lock/mask");
|
||||||
local lock = Util.GetGameObject(go.transform,"Box/Empty/lock");
|
local lock = Util.GetGameObject(go.transform,"Box/Empty/lock");
|
||||||
local Empty = Util.GetGameObject(go.transform,"Box/Empty")
|
local Empty = Util.GetGameObject(go.transform,"Box/Empty")
|
||||||
|
@ -169,7 +102,6 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
local redPoint = Util.GetGameObject(go.transform,"Box/Empty/redPoint")
|
local redPoint = Util.GetGameObject(go.transform,"Box/Empty/redPoint")
|
||||||
|
|
||||||
Util.GetGameObject(go.transform, "GameObject/proIcon"):GetComponent("Image").sprite = Util.LoadSprite("r_hero_huo 1_zh")
|
Util.GetGameObject(go.transform, "GameObject/proIcon"):GetComponent("Image").sprite = Util.LoadSprite("r_hero_huo 1_zh")
|
||||||
|
|
||||||
ItemList[go] ={}
|
ItemList[go] ={}
|
||||||
ItemList[go].index = index
|
ItemList[go].index = index
|
||||||
ItemList[go].TimerText = TimerText
|
ItemList[go].TimerText = TimerText
|
||||||
|
@ -194,10 +126,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
LogError("error: no hero data")
|
LogError("error: no hero data")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
||||||
if gridData.time - GetTimeStamp() <= 0 then
|
if gridData.time - GetTimeStamp() <= 0 then
|
||||||
-- body
|
|
||||||
|
|
||||||
TimerText.text = ""
|
TimerText.text = ""
|
||||||
AddImage:SetActive(true)
|
AddImage:SetActive(true)
|
||||||
else
|
else
|
||||||
|
@ -209,19 +138,15 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
redPoint:SetActive(false)
|
redPoint:SetActive(false)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
||||||
end
|
end
|
||||||
elseif index == Box + 1 then
|
elseif index == Box + 1 then
|
||||||
mask:SetActive(false)
|
mask:SetActive(false)
|
||||||
Util.SetGray(lock,false)
|
Util.SetGray(lock,false)
|
||||||
tempData = boxData
|
tempData = boxData
|
||||||
if HarmonyManager.RefreshOpenBoxPoint() then
|
if HarmonyManager.RefreshOpenBoxPoint() then
|
||||||
-- body
|
|
||||||
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
||||||
CheckRedPointStatus(RedPointType.HongMeng_OpenBox)
|
CheckRedPointStatus(RedPointType.HongMeng_OpenBox)
|
||||||
-- print(Gold.."!@@@@@@"..boxData.PropPrice[2])
|
|
||||||
if Gold > boxData.PropPrice[2] then
|
if Gold > boxData.PropPrice[2] then
|
||||||
-- body
|
|
||||||
redPoint:SetActive(true)
|
redPoint:SetActive(true)
|
||||||
else
|
else
|
||||||
redPoint:SetActive(false)
|
redPoint:SetActive(false)
|
||||||
|
@ -231,29 +156,22 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
TimerText.text = ""
|
TimerText.text = ""
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Util.AddOnceClick(go,function()
|
Util.AddOnceClick(go,function()
|
||||||
if gridData then
|
if gridData then
|
||||||
-- body
|
|
||||||
if gridData.heroId ~= "" then
|
if gridData.heroId ~= "" then
|
||||||
-- body
|
|
||||||
TempItem = index
|
TempItem = index
|
||||||
HarmonyManager:SetMingListIndexData(boxData.Id)
|
HarmonyManager:SetMingListIndexData(boxData.Id)
|
||||||
HarmonyManager.UnLoadGongMing = boxData.Id--发往服务器
|
HarmonyManager.UnLoadGongMing = boxData.Id--发往服务器
|
||||||
UIManager.OpenPanel(UIName.HongMengUnLoadPanel)
|
UIManager.OpenPanel(UIName.HongMengUnLoadPanel)
|
||||||
else
|
else
|
||||||
if gridData.time == 0 then
|
if gridData.time == 0 then
|
||||||
-- body
|
|
||||||
UIManager.OpenPanel(UIName.HongMengChooseHeroPanel,false)
|
UIManager.OpenPanel(UIName.HongMengChooseHeroPanel,false)
|
||||||
TempItem = index
|
TempItem = index
|
||||||
|
|
||||||
HarmonyManager.GongMingBox = boxData.Id
|
HarmonyManager.GongMingBox = boxData.Id
|
||||||
print(" 添加等级 ",HarmonyManager.GongMingBox)
|
print(" 添加等级 ",HarmonyManager.GongMingBox)
|
||||||
else
|
else
|
||||||
local content = ""
|
local content = ""
|
||||||
--print((HarmonyManager.hongmengHeroInfos[boxData.Id].time - GetTimeStamp()) / 432)
|
|
||||||
local money = math.ceil((HarmonyManager.hongmengHeroInfos[boxData.Id].time - GetTimeStamp()) / 432)
|
local money = math.ceil((HarmonyManager.hongmengHeroInfos[boxData.Id].time - GetTimeStamp()) / 432)
|
||||||
content =string.format("是否花费%d妖晶直接恢复",money)
|
content =string.format("是否花费%d妖晶直接恢复",money)
|
||||||
|
|
||||||
|
@ -267,10 +185,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
end
|
end
|
||||||
--向服务器 发消息
|
--向服务器 发消息
|
||||||
NetManager.UnlockGrid(boxData.Id,1,function ()
|
NetManager.UnlockGrid(boxData.Id,1,function ()
|
||||||
-- body
|
|
||||||
|
|
||||||
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengHeroInfos[i].gridId ==boxData.Id then
|
if HarmonyManager.hongmengHeroInfos[i].gridId ==boxData.Id then
|
||||||
HarmonyManager.hongmengHeroInfos[i].time = 0
|
HarmonyManager.hongmengHeroInfos[i].time = 0
|
||||||
print("清除数据")
|
print("清除数据")
|
||||||
|
@ -282,7 +197,6 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
|
|
||||||
end,"取消","确认")
|
end,"取消","确认")
|
||||||
this.RunTimerFun()
|
this.RunTimerFun()
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -292,23 +206,14 @@ function this.SingleBoxDataShow(go,boxData,index)
|
||||||
PopupTipPanel.ShowTip("请先解锁前一个共鸣位置!")
|
PopupTipPanel.ShowTip("请先解锁前一个共鸣位置!")
|
||||||
else
|
else
|
||||||
if lock.activeSelf then
|
if lock.activeSelf then
|
||||||
-- body
|
|
||||||
this:AddBoxFun(boxData)
|
this:AddBoxFun(boxData)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
function this:UpdateItemShow(go,boxData,msg)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
--卸载刷新
|
|
||||||
function this:UpdateItemShow(go,boxData,msg)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
function this:AddBoxFun(boxData)
|
function this:AddBoxFun(boxData)
|
||||||
local content = ""
|
local content = ""
|
||||||
|
@ -329,54 +234,40 @@ function this:AddBoxFun(boxData)
|
||||||
|
|
||||||
end
|
end
|
||||||
MsgPanel.ShowTwo(content,function ()
|
MsgPanel.ShowTwo(content,function ()
|
||||||
|
|
||||||
end,function ()
|
end,function ()
|
||||||
if Gold < boxData.PropPrice[2] and DemonCrystal < boxData.MoneyPrice[2] then
|
if Gold < boxData.PropPrice[2] and DemonCrystal < boxData.MoneyPrice[2] then
|
||||||
PopupTipPanel.ShowTip("妖晶不足!")
|
PopupTipPanel.ShowTip("妖晶不足!")
|
||||||
return
|
return
|
||||||
end
|
|
||||||
if condition then
|
|
||||||
-- body
|
|
||||||
end
|
end
|
||||||
--向服务器请求消息
|
--向服务器请求消息
|
||||||
NetManager.HongMengRequset(boxData.Id,function()
|
NetManager.HongMengRequset(boxData.Id,function()
|
||||||
--
|
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.RereshNumText,boxData.Id)
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.RereshNumText,boxData.Id)
|
||||||
end)
|
end)
|
||||||
end,"取消","确认")
|
end,"取消","确认")
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:BindEvent()
|
function this:BindEvent()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:OnOpen()
|
function this:OnOpen()
|
||||||
|
|
||||||
this:AwakeLength()
|
this:AwakeLength()
|
||||||
ItemList = {}
|
ItemList = {}
|
||||||
this:InitBox()
|
this:InitBox()
|
||||||
this.RunTimerFun()
|
this.RunTimerFun()
|
||||||
--this.timerEffect:Start()
|
|
||||||
end
|
end
|
||||||
function this.SingleItemDataShow(clone,Itemdata)
|
function this.SingleItemDataShow(clone,Itemdata)
|
||||||
--LogGreen(clone.name.."||"..Itemdata.heroConfig.Id)
|
|
||||||
--Util.GetGameObject(clone.transform, "Box/Empty"):SetActive(false)
|
|
||||||
Util.GetGameObject(clone.transform, "GameObject/frame"):GetComponent("Image").sprite = Util.LoadSprite(GetHeroQuantityImageByquality(Itemdata.heroConfig.Quality,Itemdata.star))
|
Util.GetGameObject(clone.transform, "GameObject/frame"):GetComponent("Image").sprite = Util.LoadSprite(GetHeroQuantityImageByquality(Itemdata.heroConfig.Quality,Itemdata.star))
|
||||||
Util.GetGameObject(clone.transform, "GameObject/lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",Itemdata.lv)
|
Util.GetGameObject(clone.transform, "GameObject/lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",Itemdata.lv)
|
||||||
Util.GetGameObject(clone.transform, "GameObject/icon"):GetComponent("Image").sprite = Util.LoadSprite(Itemdata.icon)
|
Util.GetGameObject(clone.transform, "GameObject/icon"):GetComponent("Image").sprite = Util.LoadSprite(Itemdata.icon)
|
||||||
--Util.GetGameObject(clone.transform, "GameObject/posIcon"):SetActive(false)--:GetComponent("Image").sprite = Util.LoadSprite(heroData.professionIcon)
|
|
||||||
Util.GetGameObject(clone.transform, "GameObject/proIcon"):GetComponent("Image").sprite = Util.LoadSprite(GetProStrImageByProNum(Itemdata.heroConfig.PropertyName))
|
Util.GetGameObject(clone.transform, "GameObject/proIcon"):GetComponent("Image").sprite = Util.LoadSprite(GetProStrImageByProNum(Itemdata.heroConfig.PropertyName))
|
||||||
local starGrid = Util.GetGameObject(clone.transform, "GameObject/star")
|
local starGrid = Util.GetGameObject(clone.transform, "GameObject/star")
|
||||||
SetHeroStars(starGrid, Itemdata.star,1,nil,nil,Vector2.New(0,1))
|
SetHeroStars(starGrid, Itemdata.star,1,nil,nil,Vector2.New(0,1))
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function this:Refesh(id)
|
function this:Refesh(id)
|
||||||
-- body
|
|
||||||
|
|
||||||
Box = Box + 1
|
Box = Box + 1
|
||||||
OpenBox = OpenBox + 1
|
OpenBox = OpenBox + 1
|
||||||
|
|
||||||
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
||||||
DemonCrystal = BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal)
|
DemonCrystal = BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal)
|
||||||
if self.stage == 1 then
|
if self.stage == 1 then
|
||||||
|
@ -384,15 +275,12 @@ function this:Refesh(id)
|
||||||
else
|
else
|
||||||
local count = 0
|
local count = 0
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
-- body
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
||||||
end
|
end
|
||||||
LogGreen(Box)
|
|
||||||
local data = {}
|
local data = {}
|
||||||
data.gridId = id
|
data.gridId = id
|
||||||
data.heroId = ""
|
data.heroId = ""
|
||||||
|
@ -401,66 +289,45 @@ function this:Refesh(id)
|
||||||
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
this.ScrollView:SetData(keys,function (index, go)
|
this.ScrollView:SetData(keys,function (index, go)
|
||||||
local key = keys[index]
|
local key = keys[index]
|
||||||
|
|
||||||
this.SingleBoxDataShow(go, this.tab[key], index)
|
this.SingleBoxDataShow(go, this.tab[key], index)
|
||||||
|
|
||||||
|
|
||||||
end,true,true)
|
end,true,true)
|
||||||
end
|
end
|
||||||
function this:OpenBoxFun()
|
function this:OpenBoxFun()
|
||||||
if tempData then
|
if tempData then
|
||||||
-- body
|
|
||||||
this:AddBoxFun(tempData)
|
this:AddBoxFun(tempData)
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip("共鸣格子已经全部解锁")
|
PopupTipPanel.ShowTip("共鸣格子已经全部解锁")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:UpdateHero(Herodata)
|
function this:UpdateHero(Herodata)
|
||||||
|
|
||||||
|
|
||||||
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
||||||
-- body
|
|
||||||
if HarmonyManager.GongMingBox ==HarmonyManager.hongmengHeroInfos[i].gridId then
|
if HarmonyManager.GongMingBox ==HarmonyManager.hongmengHeroInfos[i].gridId then
|
||||||
-- body
|
|
||||||
|
|
||||||
HarmonyManager.hongmengHeroInfos[i].heroId = Herodata.dynamicId
|
HarmonyManager.hongmengHeroInfos[i].heroId = Herodata.dynamicId
|
||||||
HarmonyManager.hongmengHeroInfos[i].time = 0
|
HarmonyManager.hongmengHeroInfos[i].time = 0
|
||||||
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
HeroCount = HeroCount + 1
|
HeroCount = HeroCount + 1
|
||||||
if self.stage == 1 then
|
if self.stage == 1 then
|
||||||
-- body
|
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box})
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box})
|
||||||
else
|
else
|
||||||
local count = 0
|
local count = 0
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengGuards[i].heroId~="" then
|
if HarmonyManager.hongmengGuards[i].heroId~="" then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
-- body
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
||||||
end
|
end
|
||||||
--Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
|
|
||||||
--this.NumText.text = string.format("%d/%d",HeroCount,Box)
|
|
||||||
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
|
|
||||||
--刷新选择英雄界面的 数据
|
--刷新选择英雄界面的 数据
|
||||||
HarmonyManager:SetInitList()
|
HarmonyManager:SetInitList()
|
||||||
|
|
||||||
this.ScrollView:SetData(keys,function (index, go)
|
this.ScrollView:SetData(keys,function (index, go)
|
||||||
local key = keys[index]
|
local key = keys[index]
|
||||||
|
|
||||||
this.SingleBoxDataShow(go, this.tab[key], index)
|
this.SingleBoxDataShow(go, this.tab[key], index)
|
||||||
|
|
||||||
|
|
||||||
end,true,true)
|
end,true,true)
|
||||||
this.RunTimerFun()
|
this.RunTimerFun()
|
||||||
end
|
end
|
||||||
|
@ -469,44 +336,30 @@ end
|
||||||
|
|
||||||
function this:UnLoadFun(msg)
|
function this:UnLoadFun(msg)
|
||||||
HeroCount = HeroCount - 1
|
HeroCount = HeroCount - 1
|
||||||
|
|
||||||
for key, value in pairs(ItemList) do
|
for key, value in pairs(ItemList) do
|
||||||
if value.index == TempItem then
|
if value.index == TempItem then
|
||||||
-- body
|
|
||||||
HarmonyManager.hongmengHeroInfos[value.index].time = msg.leftTime + GetTimeStamp()
|
HarmonyManager.hongmengHeroInfos[value.index].time = msg.leftTime + GetTimeStamp()
|
||||||
|
|
||||||
HarmonyManager.hongmengHeroInfos[value.index].heroId = ""
|
HarmonyManager.hongmengHeroInfos[value.index].heroId = ""
|
||||||
|
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
|
||||||
--刷新选择英雄界面的 数据
|
--刷新选择英雄界面的 数据
|
||||||
HarmonyManager:SetInitList()
|
HarmonyManager:SetInitList()
|
||||||
if self.stage == 1 then
|
if self.stage == 1 then
|
||||||
-- body
|
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
|
||||||
else
|
else
|
||||||
local count = 0
|
local count = 0
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
-- body
|
|
||||||
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
-- body
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
|
||||||
end
|
end
|
||||||
-- Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
|
|
||||||
--this.NumText.text = string.format("%d/%d",HeroCount,Box)
|
|
||||||
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
|
|
||||||
ItemList = {}
|
ItemList = {}
|
||||||
this.ScrollView:SetData(keys,function (index, go)
|
this.ScrollView:SetData(keys,function (index, go)
|
||||||
local key = keys[index]
|
local key = keys[index]
|
||||||
|
|
||||||
this.SingleBoxDataShow(go, this.tab[key], index)
|
this.SingleBoxDataShow(go, this.tab[key], index)
|
||||||
|
|
||||||
|
|
||||||
end,true,true)
|
end,true,true)
|
||||||
this.RunTimerFun()
|
this.RunTimerFun()
|
||||||
end
|
end
|
||||||
|
@ -516,25 +369,18 @@ function this:OnlyRefeshHeroLv()
|
||||||
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
this.ScrollView:SetData(keys,function (index, go)
|
this.ScrollView:SetData(keys,function (index, go)
|
||||||
local key = keys[index]
|
local key = keys[index]
|
||||||
|
|
||||||
this.SingleBoxDataShow(go, this.tab[key], index)
|
this.SingleBoxDataShow(go, this.tab[key], index)
|
||||||
|
|
||||||
|
|
||||||
end,true,true)
|
end,true,true)
|
||||||
|
|
||||||
end
|
end
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
function this:OnClose()
|
function this:OnClose()
|
||||||
if this.timerEffect then
|
if this.timerEffect then
|
||||||
-- body
|
|
||||||
this.timerEffect:Stop()
|
this.timerEffect:Stop()
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:AddListener()
|
function this:AddListener()
|
||||||
-- body
|
|
||||||
|
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.RereshNumText,self.Refesh,self)
|
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.RereshNumText,self.Refesh,self)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.OpenBoxTips,self.OpenBoxFun,self)
|
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.OpenBoxTips,self.OpenBoxFun,self)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.ChooseData,self.UpdateHero,self)
|
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.ChooseData,self.UpdateHero,self)
|
||||||
|
@ -544,7 +390,6 @@ function this:AddListener()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:RemoveListener()
|
function this:RemoveListener()
|
||||||
-- body
|
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.RereshNumText,self.Refesh,self)
|
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.RereshNumText,self.Refesh,self)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.OpenBoxTips,self.OpenBoxFun,self)
|
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.OpenBoxTips,self.OpenBoxFun,self)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.ChooseData,self.UpdateHero,self)
|
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.ChooseData,self.UpdateHero,self)
|
||||||
|
@ -553,11 +398,5 @@ function this:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.UpdateGongMingLv,self.OnlyRefeshHeroLv,self)
|
Game.GlobalEvent:RemoveEvent(GameEvent.HongMeng.UpdateGongMingLv,self.OnlyRefeshHeroLv,self)
|
||||||
end
|
end
|
||||||
function this:OnShow(...)
|
function this:OnShow(...)
|
||||||
-- body
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -16,7 +16,8 @@ function this:InitComponent(gameObject)
|
||||||
this.quesBtn = Util.GetGameObject(this.gameObject, "bg/quesBtn")
|
this.quesBtn = Util.GetGameObject(this.gameObject, "bg/quesBtn")
|
||||||
this.helpPosition= this.quesBtn:GetComponent("RectTransform").localPosition
|
this.helpPosition= this.quesBtn:GetComponent("RectTransform").localPosition
|
||||||
this.tips = Util.GetGameObject(this.gameObject, "bg/topBar/tips"):GetComponent("Text")
|
this.tips = Util.GetGameObject(this.gameObject, "bg/topBar/tips"):GetComponent("Text")
|
||||||
this.time = Util.GetGameObject(this.gameObject, "bg/topBar/time/Text"):GetComponent("Text")
|
this.timeTxt = Util.GetGameObject(this.gameObject, "bg/topBar/time/Text"):GetComponent("Text")
|
||||||
|
this.time = Util.GetGameObject(this.gameObject, "bg/topBar/time/time"):GetComponent("Text")
|
||||||
|
|
||||||
this.buyBtn = Util.GetGameObject(this.gameObject, "bg/topBar/button/buyBtn")
|
this.buyBtn = Util.GetGameObject(this.gameObject, "bg/topBar/button/buyBtn")
|
||||||
this.buyBtnText = Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
|
this.buyBtnText = Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
|
||||||
|
|
|
@ -474,12 +474,12 @@ function this.ShowLvAndExp()
|
||||||
if #itemDataList <= 25 then
|
if #itemDataList <= 25 then
|
||||||
this.exp.value=PlayerManager.exp/userLevelData[PlayerManager.level].Exp
|
this.exp.value=PlayerManager.exp/userLevelData[PlayerManager.level].Exp
|
||||||
this.expText.text=PlayerManager.exp.."/"..userLevelData[PlayerManager.level].Exp
|
this.expText.text=PlayerManager.exp.."/"..userLevelData[PlayerManager.level].Exp
|
||||||
this.lv.text="LV."..PlayerManager.level
|
this.lv.text= PlayerManager.level
|
||||||
this.lvUpImage:SetActive(FightPointPassManager.oldLevel<PlayerManager.level)
|
this.lvUpImage:SetActive(FightPointPassManager.oldLevel<PlayerManager.level)
|
||||||
elseif #itemDataList > 25 then
|
elseif #itemDataList > 25 then
|
||||||
this.expMax.value=PlayerManager.exp/userLevelData[PlayerManager.level].Exp
|
this.expMax.value=PlayerManager.exp/userLevelData[PlayerManager.level].Exp
|
||||||
this.expTextMax.text=PlayerManager.exp.."/"..userLevelData[PlayerManager.level].Exp
|
this.expTextMax.text=PlayerManager.exp.."/"..userLevelData[PlayerManager.level].Exp
|
||||||
this.lvMax.text="LV."..PlayerManager.level
|
this.lvMax.text= PlayerManager.level
|
||||||
this.lvUpImageMax:SetActive(FightPointPassManager.oldLevel<PlayerManager.level)
|
this.lvUpImageMax:SetActive(FightPointPassManager.oldLevel<PlayerManager.level)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -379,6 +379,7 @@ function this.EquipInfo()
|
||||||
local pos= jewelConfig[data.id].Location
|
local pos= jewelConfig[data.id].Location
|
||||||
|
|
||||||
local o=Util.GetGameObject(this.babyGrid,"Pre"..pos)
|
local o=Util.GetGameObject(this.babyGrid,"Pre"..pos)
|
||||||
|
Util.GetGameObject(o,"Text"):GetComponent("RectTransform").sizeDelta = GetCurLanguage() == 0 and Vector2.New(48, 95) or Vector2.New(95, 95)
|
||||||
local btn=Util.GetGameObject(o,"Frame")
|
local btn=Util.GetGameObject(o,"Frame")
|
||||||
btn.gameObject:SetActive(true)
|
btn.gameObject:SetActive(true)
|
||||||
local frame=Util.GetGameObject(o,"Frame"):GetComponent("Image")
|
local frame=Util.GetGameObject(o,"Frame"):GetComponent("Image")
|
||||||
|
|
|
@ -306,6 +306,4 @@ function this.UnLoadEffect(resName, res)
|
||||||
poolManager:UnLoadAsset(resName, res, PoolManager.AssetType.GameObject)
|
poolManager:UnLoadAsset(resName, res, PoolManager.AssetType.GameObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
return this
|
return this
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,9 @@ function GetPreferredWidth(_transform)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ForceRebuildLayout(_transform)
|
function ForceRebuildLayout(_transform)
|
||||||
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.LayoutBuilderWrap) then
|
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.LayoutBuilderWrap)
|
||||||
|
or ServerConfigManager.GetSDKVersionCode() >= 25
|
||||||
|
then
|
||||||
if not LayoutRebuilder then
|
if not LayoutRebuilder then
|
||||||
LayoutRebuilder = UnityEngine.UI.LayoutRebuilder
|
LayoutRebuilder = UnityEngine.UI.LayoutRebuilder
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue