【命格】提交

dev_chengFeng
ZhangBiao 2021-12-06 15:31:29 +08:00
parent b88b0d9dce
commit 022a3ee307
2 changed files with 4507 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@ function Gem:InitComponent()
self.mid = Util.GetGameObject(self.gameObject, "Mid")
self.img = Util.GetGameObject(self.mid, "Man"):GetComponent("Image")
self.ManCanvas = Util.GetGameObject(self.mid, "Man"):GetComponent("Canvas")
self.fx_ui_xiuxingshengxin_cangzhu = Util.GetGameObject(self.gameObject, "Bg/fx_ui_xiuxingshengxin_cangzhu")
--页签
self.btnPractice = Util.GetGameObject(self.gameObject, "Tab/tab1")
@ -42,6 +43,7 @@ end
function Gem:OnSortingOrderChange()
self.ManCanvas.sortingOrder = self.sortingOrder + 2
Util.SetParticleSortLayer(self.fx_ui_xiuxingshengxin_cangzhu, self.sortingOrder + 1)
-- 头像层级
if self.playerInfoView then
self.playerInfoView:SetLayer(self.sortingOrder)
@ -50,6 +52,11 @@ end
function Gem:OnShow()
self.playerInfoView:OnShow()
Util.SetParticleSortLayer(self.fx_ui_xiuxingshengxin_cangzhu, self.sortingOrder + 1)
self:Refresh()
end
function Gem:Refresh()
local oldWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
self:RefreshMid()
end