【鸿蒙阵bug修改】

dev_chengFeng
guowei 2020-12-25 15:33:12 +08:00
parent f652a13697
commit 5eb853efbd
3 changed files with 29 additions and 9 deletions

View File

@ -1718,8 +1718,8 @@ RectTransform:
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: 5, y: 135}
m_SizeDelta: {x: 1091.8, y: 1328.1}
m_AnchoredPosition: {x: 5, y: 293}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &6745114888964542168
GameObject:

View File

@ -58,8 +58,9 @@ function GongMingResultTips:OnOpen(flag)
end
this.liveName = GetResourcePath(heroTData.Live)
this.liveNode = poolManager:LoadLive(this.liveName, this.HeroSkin.transform, Vector3.one * heroTData.Scale*0.7, Vector3.New(heroTData.Position[1], heroTData.Position[2]))
this.liveNode.transform.sizeDelta = Vector2.New(1000, 1000)
this.liveNode = poolManager:LoadLive(this.liveName, this.HeroSkin.transform, Vector3.one * heroTData.Scale, Vector3.New(heroTData.Position[1], heroTData.Position[2]))
-- this.liveNode.transform.sizeDelta = Vector2.New(1000, 1000)
this.HeroSkin:GetComponent("RectTransform").localScale = Vector2.New(0.7,0.7)
local SkeletonGraphic = this.liveNode:GetComponent("SkeletonGraphic")
local idle = function()
SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
@ -203,7 +204,10 @@ end
--界面关闭时调用(用于子类重写)
function GongMingResultTips:OnClose()
if this.liveNode then
poolManager:UnLoadLive(this.liveName, this.liveNode)
this.liveNode = nil
end
end
--界面销毁时调用(用于子类重写)

View File

@ -123,9 +123,25 @@ function RoleChooseListPanel:OnOpen(flag)
this.numText.text = ""
this.title_text.text ="共鸣神将选择"
self.flag = flag
self.ScrollView:SetData(HarmonyManager.ChooseDataList,function (index, go)
local list = HarmonyManager.ChooseDataList
table.sort(list, function(a, b)
if a.star == b.star then
if a.heroConfig.Natural ==b.heroConfig.Natural then
if a.lv == b.lv then
return a.heroConfig.Id < b.heroConfig.Id
else
return a.lv > b.lv
end
else
return a.heroConfig.Natural > b.heroConfig.Natural
end
else
return a.star > b.star
end
end)
self.ScrollView:SetData(list,function (index, go)
this.OnShowSingleCardData(go, HarmonyManager.ChooseDataList[index],index)--
this.OnShowSingleCardData(go, list[index],index)--
end)
@ -176,7 +192,7 @@ function this.OnShowSingleCardData(go,heroData,index)--isSelect 1选择 2 没
SelectHero:SetActive(false)
--end
SelectHero = nil
--SelectHero = nil
end
TempData = heroData
SelectHero = choosed
@ -211,7 +227,7 @@ function RoleChooseListPanel:AutoSelectHero()
end
--界面关闭时调用(用于子类重写)
function RoleChooseListPanel:OnClose()
destroy(SelectHero)
--destroy(SelectHero)
SelectHero = nil
end