2021-08-21 17:00:42 +02:00
|
|
|
local BirbScene = require "birb.modules.scenes"
|
|
|
|
local RadianceScene = BirbScene:extend()
|
|
|
|
|
2021-08-26 23:27:21 +02:00
|
|
|
local Overlay = require "game.modules.gui.overlay"
|
|
|
|
|
|
|
|
function RadianceScene:new(haveBorder, showVersion)
|
2021-08-21 17:00:42 +02:00
|
|
|
RadianceScene.super.new(self)
|
|
|
|
|
|
|
|
-- Importation Global des assets
|
|
|
|
self.assets:batchImport("assets.commons")
|
|
|
|
self.assets.fonts["small"]:setLineHeight(16/18)
|
|
|
|
self.assets.fonts["small"]:setFilter("shadow")
|
2021-08-30 23:52:45 +02:00
|
|
|
self.gui:addSFX("select", "mSelect")
|
|
|
|
self.gui:addSFX("navigate", "mBeep")
|
|
|
|
self.gui:addSFX("back", "mBack")
|
|
|
|
self.gui:addSFX("error", "mError")
|
2021-08-26 23:27:21 +02:00
|
|
|
|
|
|
|
Overlay(haveBorder, showVersion)
|
|
|
|
end
|
|
|
|
|
|
|
|
function RadianceScene:hideOverlay()
|
|
|
|
self.gui:hideScreen("overlay")
|
2021-08-21 17:00:42 +02:00
|
|
|
end
|
|
|
|
|
2021-08-26 23:27:21 +02:00
|
|
|
function RadianceScene:showOverlay()
|
|
|
|
self.gui:showScreen("overlay")
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2021-08-21 17:00:42 +02:00
|
|
|
return RadianceScene
|