Pop.Box/pop/elements/box.lua
Paul Liverman III 723997fe7a mid-redesign
2015-11-20 03:30:40 -08:00

25 lines
712 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.skin.style.borderSize
self.innerHeight = self.outerHeight - self.skin.style.borderSize
end
function box:update()
--
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