PGRData/Resources/Scripts/XUi/XUiFubenSimulatedCombat/XUiSettleWin/XUiGridCond.lua
2022-12-26 14:06:01 +05:30

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