PGRData/Script/matrix/xui/xuiset/XUiPanelDlcBoss.lua

34 lines
1 KiB
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
local XUiPanelDlcBoss = XClass(nil, "XUiPanelDlcBoss")
function XUiPanelDlcBoss:Ctor(ui, parent)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.Parent = parent
XTool.InitUiObject(self)
end
function XUiPanelDlcBoss:ShowPanel()
self.GameObject:SetActive(true)
local worldId = XFightUtil.GetDlcHuntWorldId()
local detailList = XDlcHuntWorldConfig.GetWorldBossDetailOnPause(worldId)
for i = 1, #detailList do
local detail = detailList[i]
local uiName = CS.UnityEngine.Object.Instantiate(self.TxtSkillName, self.TxtSkillName.transform.parent)
local uiDesc = CS.UnityEngine.Object.Instantiate(self.TxtSkillbrief, self.TxtSkillbrief.transform.parent)
uiName.text = detail.Name
uiDesc.text = detail.Desc
end
self.TxtSkillName.gameObject:SetActive(false)
self.TxtSkillbrief.gameObject:SetActive(false)
end
function XUiPanelDlcBoss:HidePanel()
self.GameObject:SetActive(false)
end
function XUiPanelDlcBoss:CheckDataIsChange()
return false
end
return XUiPanelDlcBoss