2020-08-02 08:30:19 +02:00
|
|
|
local ParentPanel = Object:extend()
|
|
|
|
local gui = require "game.modules.gui"
|
|
|
|
|
|
|
|
function ParentPanel:new()
|
|
|
|
self.panelBackground = gui.newTextBox("assets/gui/dialogbox.png", 128+32, 128)
|
|
|
|
end
|
|
|
|
|
|
|
|
function ParentPanel:draw(x, y, w, h)
|
2021-04-03 20:03:55 +02:00
|
|
|
if (core.debug.active) then
|
|
|
|
love.graphics.draw(self.panelBackground, x, y)
|
|
|
|
self:drawContent(x+8, y+8)
|
|
|
|
end
|
2020-08-02 08:30:19 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function ParentPanel:drawContent(x, y)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return ParentPanel
|