sonic-radiance/sonic-radiance.love/game/scenes/init.lua

30 lines
791 B
Lua
Raw Normal View History

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)
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")
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")
end
2021-08-26 23:27:21 +02:00
function RadianceScene:showOverlay()
self.gui:showScreen("overlay")
end
return RadianceScene