PGRData/Script/matrix/xui/xuitheatre/fieldguide/XUiPanelDetailNature.lua

20 lines
No EOL
665 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--增益详情的布局
local XUiPanelDetailNature = XClass(nil, "XUiPanelDetailNature")
function XUiPanelDetailNature:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
self.TheatreManager = XDataCenter.TheatreManager
self.AdventureManager = self.TheatreManager.GetCurrentAdventureManager()
end
--skillXAdventureSkill
function XUiPanelDetailNature:Show(skill)
self.TxtAttrInfo.text = XUiHelper.ConvertLineBreakSymbol(skill:GetLevelDesc())
self.TxtEffectInfo.text = XUiHelper.ConvertLineBreakSymbol(skill:GetDesc())
self.GameObject:SetActiveEx(true)
end
return XUiPanelDetailNature