feat: make the messagequeue a GuiElement

This commit is contained in:
Kazhnuz 2021-09-12 10:00:41 +02:00
parent 0fe46dea91
commit 9acb3b303b

View file

@ -1,4 +1,5 @@
local MessageQueue = Object:extend()
local GuiElement = require "birb.modules.gui.elements.parent"
local MessageQueue = GuiElement:extend()
local Message = require "game.modules.messagequeue.message"
local MAX = 3
@ -6,6 +7,8 @@ function MessageQueue:new(scene)
self.messages = {}
self.permaMessage = nil
self.scene = scene
MessageQueue.super.new(self, "messageQueue", 0, 0, 424, 240)
self.depth = 0
end
function MessageQueue:addMessage(newMessage)