feat: make the messagequeue a GuiElement
This commit is contained in:
parent
0fe46dea91
commit
9acb3b303b
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue