PGRData/Script/matrix/xui/xuifubensimulatedcombat/xuisettlewin/XUiGridCond.lua

15 lines
No EOL
380 B
Lua

local XUiGridCond = XClass(nil, "XUiGridCond")
function XUiGridCond:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUiGridCond:Refresh(desc, active)
self.TxtDesc.text = desc
self.TxtLoaded.gameObject:SetActive(active)
self.TxtNotLoaded.gameObject:SetActive(not active)
end
return XUiGridCond