PGRData/Script/matrix/xui/xuidlchunt/attr/XUiDlcHuntAttrDialogCharacterAttrGrid.lua
2024-09-01 22:49:41 +02:00

17 lines
No EOL
596 B
Lua

---@class XUiDlcHuntAttrDialogCharacterAttrGrid
local XUiDlcHuntAttrDialogCharacterAttrGrid = XClass(nil, "XUiDlcHuntAttrDialogCharacterAttrGrid")
function XUiDlcHuntAttrDialogCharacterAttrGrid:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUiDlcHuntAttrDialogCharacterAttrGrid:Update(data)
self.TxtAttribute.text = data.Name
self.TxtTotalAttributes.text = data.Value
self.TxtCharacterAttribute.text = data.Value1
self.TxtChipAddition.text = data.Value2
end
return XUiDlcHuntAttrDialogCharacterAttrGrid