【命格】提交
parent
b88b0d9dce
commit
022a3ee307
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue