生命卡
parent
4c362159ed
commit
cabb20095f
|
@ -30724,7 +30724,7 @@ MonoBehaviour:
|
||||||
m_Top: 20
|
m_Top: 20
|
||||||
m_Bottom: 0
|
m_Bottom: 0
|
||||||
m_ChildAlignment: 1
|
m_ChildAlignment: 1
|
||||||
m_Spacing: 0
|
m_Spacing: 7
|
||||||
m_ChildForceExpandWidth: 0
|
m_ChildForceExpandWidth: 0
|
||||||
m_ChildForceExpandHeight: 0
|
m_ChildForceExpandHeight: 0
|
||||||
m_ChildControlWidth: 0
|
m_ChildControlWidth: 0
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,9 +26,10 @@ function FaLingStrongPopup:InitComponent()
|
||||||
self.spLoader = SpriteLoader.New()
|
self.spLoader = SpriteLoader.New()
|
||||||
self.mask = Util.GetGameObject(self.transform, "mask")
|
self.mask = Util.GetGameObject(self.transform, "mask")
|
||||||
self.content = Util.GetGameObject(self.transform, "Content")
|
self.content = Util.GetGameObject(self.transform, "Content")
|
||||||
self.btn_close=Util.GetGameObject(self.transform, "Content/btn_close")
|
self.Bg = Util.GetGameObject(self.transform, "Content/bg")
|
||||||
|
self.btn_close=Util.GetGameObject(self.transform, "Content/ContentBg/btn_close")
|
||||||
--装备详情--topBar
|
--装备详情--topBar
|
||||||
self.topBar = Util.GetGameObject(self.transform, "Content/topBar")
|
self.topBar = Util.GetGameObject(self.transform, "Content/bg/topBar")
|
||||||
self.UI_effect_WuCai_Kuang = Util.GetGameObject(self.topBar, "UI_effect_WuCai_Kuang")
|
self.UI_effect_WuCai_Kuang = Util.GetGameObject(self.topBar, "UI_effect_WuCai_Kuang")
|
||||||
self.c_ui_qinyan_duan = Util.GetGameObject(self.topBar, "c_ui_qinyan_duan")
|
self.c_ui_qinyan_duan = Util.GetGameObject(self.topBar, "c_ui_qinyan_duan")
|
||||||
self.icon = Util.GetGameObject(self.topBar, "icon"):GetComponent("Image")
|
self.icon = Util.GetGameObject(self.topBar, "icon"):GetComponent("Image")
|
||||||
|
@ -40,7 +41,7 @@ function FaLingStrongPopup:InitComponent()
|
||||||
self.hProLv = Util.GetGameObject(self.topBar, "hProLv"):GetComponent("Text")--家园摘星阁突破
|
self.hProLv = Util.GetGameObject(self.topBar, "hProLv"):GetComponent("Text")--家园摘星阁突破
|
||||||
--装备属性--midBar
|
--装备属性--midBar
|
||||||
--basePro
|
--basePro
|
||||||
self.midBar = Util.GetGameObject(self.transform, "Content/midBar")
|
self.midBar = Util.GetGameObject(self.transform, "Content/bg/midBar")
|
||||||
self.baseProGrid = Util.GetGameObject(self.topBar, "grid")
|
self.baseProGrid = Util.GetGameObject(self.topBar, "grid")
|
||||||
self.baseProPre = Util.GetGameObject(self.topBar, "grid/curProName")
|
self.baseProPre = Util.GetGameObject(self.topBar, "grid/curProName")
|
||||||
self.baseProPre:SetActive(false)
|
self.baseProPre:SetActive(false)
|
||||||
|
@ -57,13 +58,13 @@ function FaLingStrongPopup:InitComponent()
|
||||||
|
|
||||||
|
|
||||||
--costpro
|
--costpro
|
||||||
self.costPro = Util.GetGameObject(self.transform, "costPro")
|
self.costPro = Util.GetGameObject(self.transform, "Content/bg/costPro")
|
||||||
self.costTitle = Util.GetGameObject(self.transform, "costPro/Image/name"):GetComponent("Text")
|
self.costTitle = Util.GetGameObject(self.transform, "costPro/GameObject/Image/name"):GetComponent("Text")
|
||||||
self.costTitle.text="强化要求"
|
self.costTitle.text="强化要求"
|
||||||
self.costProGrid = Util.GetGameObject(self.costPro, "proGrid")
|
self.costProGrid = Util.GetGameObject(self.costPro, "proGrid")
|
||||||
self.costProPre = Util.GetGameObject(self.costPro, "proGrid/item")
|
self.costProPre = Util.GetGameObject(self.costPro, "proGrid/item")
|
||||||
self.costProPre:SetActive(false)
|
self.costProPre:SetActive(false)
|
||||||
self.coinImg = Util.GetGameObject(self.costPro, "coinImg"):GetComponent("Image")
|
self.coinImg = Util.GetGameObject(self.costPro, "needCoin/coinImg"):GetComponent("Image")
|
||||||
self.coinTxt = Util.GetGameObject(self.costPro, "needCoin"):GetComponent("Text")
|
self.coinTxt = Util.GetGameObject(self.costPro, "needCoin"):GetComponent("Text")
|
||||||
--分解按钮--btmBar
|
--分解按钮--btmBar
|
||||||
self.btnStrong=Util.GetGameObject(self.costPro, "btnStrong")
|
self.btnStrong=Util.GetGameObject(self.costPro, "btnStrong")
|
||||||
|
@ -276,6 +277,11 @@ function FaLingStrongPopup:OnShow()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- end
|
-- end
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.superProGrid.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.superPro.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.costPro.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.Bg.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.content.transform)
|
||||||
else
|
else
|
||||||
self.superPro:SetActive(false)
|
self.superPro:SetActive(false)
|
||||||
end
|
end
|
||||||
|
@ -283,9 +289,11 @@ function FaLingStrongPopup:OnShow()
|
||||||
--消耗信息
|
--消耗信息
|
||||||
self:ShowCostInfo()
|
self:ShowCostInfo()
|
||||||
--(此处需要三遍才能完全打开)
|
--(此处需要三遍才能完全打开)
|
||||||
ForceRebuildLayout(self.midBar.transform)
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.midBar.transform)
|
||||||
ForceRebuildLayout(self.midBar.transform)
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.costPro.transform)
|
||||||
ForceRebuildLayout(self.midBar.transform)
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.Bg.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.content.transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.transform)
|
||||||
|
|
||||||
if self.func then
|
if self.func then
|
||||||
self.func()
|
self.func()
|
||||||
|
|
Loading…
Reference in New Issue