sonic-radiance/sonic-radiance.love/game/modules/menus/parents/widget.lua
2020-08-20 15:33:28 +02:00

13 lines
405 B
Lua

local Widget = require "core.modules.menusystem.widgets"
local RadianceWidget = Widget.Text:extend()
function RadianceWidget:new(scene, name, label)
self.scene = scene
local label = label or ""
local font = scene.assets.fonts["small"]
font:setFilter("shadow")
local widgetMenu = scene.menusystem.menus[name]
RadianceWidget.super.new(self, widgetMenu, font, label)
end
return RadianceWidget