From 9acb3b303bdd405078fd8004571742bba1979161 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 12 Sep 2021 10:00:41 +0200 Subject: [PATCH] feat: make the messagequeue a GuiElement --- sonic-radiance.love/game/modules/messagequeue/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sonic-radiance.love/game/modules/messagequeue/init.lua b/sonic-radiance.love/game/modules/messagequeue/init.lua index 2947ba2..f9738ee 100644 --- a/sonic-radiance.love/game/modules/messagequeue/init.lua +++ b/sonic-radiance.love/game/modules/messagequeue/init.lua @@ -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)