stuff
This commit is contained in:
48
LIB/types/text.lua
Normal file
48
LIB/types/text.lua
Normal file
@@ -0,0 +1,48 @@
|
||||
local path = (...):sub(1, -(("text"):len() + 2))
|
||||
local generic = require(tostring(path) .. "/generic")
|
||||
local graphics
|
||||
graphics = love.graphics
|
||||
local text
|
||||
do
|
||||
local _class_0
|
||||
local _parent_0 = generic
|
||||
local _base_0 = {
|
||||
draw = function(self) end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
setmetatable(_base_0, _parent_0.__base)
|
||||
_class_0 = setmetatable({
|
||||
__init = function(self, element, parent)
|
||||
if element == nil then
|
||||
element = { }
|
||||
end
|
||||
return _class_0.__parent.__init(self, element, parent)
|
||||
end,
|
||||
__base = _base_0,
|
||||
__name = "text",
|
||||
__parent = _parent_0
|
||||
}, {
|
||||
__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,
|
||||
__call = function(cls, ...)
|
||||
local _self_0 = setmetatable({}, _base_0)
|
||||
cls.__init(_self_0, ...)
|
||||
return _self_0
|
||||
end
|
||||
})
|
||||
_base_0.__class = _class_0
|
||||
if _parent_0.__inherited then
|
||||
_parent_0.__inherited(_parent_0, _class_0)
|
||||
end
|
||||
text = _class_0
|
||||
return _class_0
|
||||
end
|
Reference in New Issue
Block a user