Pop.Box/pop/elements/box.lua
Paul Liverman III 486f307274 init crap
2015-11-17 19:27:06 -08:00

25 lines
705 B
Lua

local path = string.sub(..., 1, string.len(...) - string.len(".elements.box"))
local class = require(path .. ".lib.middleclass")
local element = require(path .. ".elements.element")
local box = class("pop.box", element)
function box:initialize(pop, parent)
element.initialize(self, pop, parent)
self.sizeControl = "specified"
self.outerWidth = 300
self.outerHeight = 250
self.innerWidth = self.outerWidth - self.style.borderSize
self.innerHeight = self.outerHeight - self.style.borderSize
end
function box:update(pop)
--
end
function box:draw()
--TODO find a way for relative x/y to be passed here, because else, we won't have proper coords for drawing
end
return box