界面战力不一致
parent
6e860dde51
commit
352f338abe
|
@ -110189,8 +110189,8 @@ 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: 157, y: -16}
|
m_AnchoredPosition: {x: 354.4, y: -14}
|
||||||
m_SizeDelta: {x: 398.7, y: 30}
|
m_SizeDelta: {x: 793.5, y: 119.9}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &329602736948110786
|
--- !u!222 &329602736948110786
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -110233,7 +110233,7 @@ MonoBehaviour:
|
||||||
m_HorizontalOverflow: 0
|
m_HorizontalOverflow: 0
|
||||||
m_VerticalOverflow: 0
|
m_VerticalOverflow: 0
|
||||||
m_LineSpacing: 1
|
m_LineSpacing: 1
|
||||||
m_Text: 0
|
m_Text:
|
||||||
--- !u!114 &4656998361141670262
|
--- !u!114 &4656998361141670262
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -165,6 +165,23 @@ function this.GetAllFormationHeroId()
|
||||||
end
|
end
|
||||||
return list
|
return list
|
||||||
end
|
end
|
||||||
|
-- 获取主线所有正在编队的英雄id
|
||||||
|
function this.GetAllMainFormationHeroId()
|
||||||
|
local list = {}
|
||||||
|
local index = 1
|
||||||
|
for i, team in pairs(this.formationList) do
|
||||||
|
if i == FormationTypeDef.FORMATION_NORMAL then
|
||||||
|
for j = 1, #team.teamHeroInfos do
|
||||||
|
-- 加空判断避免不知名错误
|
||||||
|
if team and team.teamHeroInfos[j] then
|
||||||
|
list[team.teamHeroInfos[j].heroId] = index
|
||||||
|
index = index + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return list
|
||||||
|
end
|
||||||
--获取单个编队所有上阵英雄
|
--获取单个编队所有上阵英雄
|
||||||
function this.GetWuJinFormationHeroIds(index)
|
function this.GetWuJinFormationHeroIds(index)
|
||||||
local forMationData = this.GetFormationByID(index).teamHeroInfos
|
local forMationData = this.GetFormationByID(index).teamHeroInfos
|
||||||
|
|
|
@ -236,7 +236,7 @@ function RoleEquipPanel:OnShow()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
indexBtnNum = PosIdConst.All
|
indexBtnNum = PosIdConst.All
|
||||||
teamHero = FormationManager.GetAllFormationHeroId()
|
teamHero = FormationManager.GetAllMainFormationHeroId()
|
||||||
this.ShowHeroEquip(true)
|
this.ShowHeroEquip(true)
|
||||||
this:OnClickAllBtn()
|
this:OnClickAllBtn()
|
||||||
this.UpView:OnOpen({showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main})
|
this.UpView:OnOpen({showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main})
|
||||||
|
|
|
@ -182,7 +182,7 @@ end
|
||||||
--刷新显示
|
--刷新显示
|
||||||
function this.RefreshShow()
|
function this.RefreshShow()
|
||||||
--LogGreen(Language[11945])
|
--LogGreen(Language[11945])
|
||||||
teamHero = FormationManager.GetAllFormationHeroId()
|
teamHero = FormationManager.GetAllMainFormationHeroId()
|
||||||
isUpZhen = teamHero[curHeroData.dynamicId] and true or false
|
isUpZhen = teamHero[curHeroData.dynamicId] and true or false
|
||||||
this.SetLoopUI()
|
this.SetLoopUI()
|
||||||
this.SetHero()
|
this.SetHero()
|
||||||
|
|
Loading…
Reference in New Issue