PGRData/Script/matrix/xui/xuirestaurant/xuipanel/XUiPanelWorkBase.lua
2024-09-01 22:49:41 +02:00

43 lines
No EOL
816 B
Lua

---@class XUiPanelWorkBase
---@field GameObject UnityEngine.GameObject
---@field Transform UnityEngine.Transform
---@field AreaType number
---@field Index number
local XUiPanelWorkBase = XClass(nil, "XUiPanelWorkBase")
function XUiPanelWorkBase:Ctor(ui)
XTool.InitUiObjectByUi(self, ui)
self:InitUi()
self:InitCb()
end
function XUiPanelWorkBase:InitUi()
end
function XUiPanelWorkBase:InitCb()
end
function XUiPanelWorkBase:Show(areaType, index, ...)
self.GameObject:SetActiveEx(true)
self.AreaType = areaType
self.Index = index
self:RefreshView()
end
function XUiPanelWorkBase:Hide()
self.GameObject:SetActiveEx(false)
self:ClearCache()
end
function XUiPanelWorkBase:RefreshView()
end
function XUiPanelWorkBase:ClearCache()
end
return XUiPanelWorkBase