2016-10-31 05:19:24 +00:00
|
|
|
local element = require(tostring((...):sub(1, -7)) .. "/element")
|
2016-09-08 03:53:22 +00:00
|
|
|
local window
|
|
|
|
do
|
|
|
|
local _class_0
|
2016-10-31 05:19:24 +00:00
|
|
|
local _parent_0 = element
|
2017-01-10 20:57:02 +00:00
|
|
|
local _base_0 = { }
|
2016-09-08 03:53:22 +00:00
|
|
|
_base_0.__index = _base_0
|
2016-10-31 05:19:24 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2016-09-08 03:53:22 +00:00
|
|
|
_class_0 = setmetatable({
|
|
|
|
__init = function(self, parent, data)
|
|
|
|
if data == nil then
|
|
|
|
data = { }
|
|
|
|
end
|
|
|
|
self.parent, self.data = parent, data
|
2016-10-31 06:40:40 +00:00
|
|
|
_class_0.__parent.__init(self, self.parent, self.data)
|
2016-11-25 03:37:53 +00:00
|
|
|
self.data.type = "window"
|
2016-09-08 03:53:22 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2016-10-31 05:19:24 +00:00
|
|
|
__name = "window",
|
|
|
|
__parent = _parent_0
|
2016-09-08 03:53:22 +00:00
|
|
|
}, {
|
2016-10-31 05:19:24 +00:00
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
|
|
|
if val == nil then
|
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
2016-09-08 03:53:22 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2016-10-31 05:19:24 +00:00
|
|
|
if _parent_0.__inherited then
|
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2016-09-08 03:53:22 +00:00
|
|
|
window = _class_0
|
|
|
|
return _class_0
|
|
|
|
end
|