15 lines
380 B
Lua
15 lines
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
|