sonic-radiance/sonic-radiance.love/game/modules/menus/parents/widget.lua

14 lines
419 B
Lua
Raw Normal View History

local Widget = require "core.modules.menusystem.widgets"
local RadianceWidget = Widget.Text:extend()
2021-03-13 17:26:36 +01:00
function RadianceWidget:new(scene, name, label, color)
self.scene = scene
local label = label or ""
local font = scene.assets.fonts["small"]
font:setFilter("shadow")
local widgetMenu = scene.menusystem.menus[name]
2021-03-13 17:26:36 +01:00
RadianceWidget.super.new(self, widgetMenu, font, label, color)
end
return RadianceWidget