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

14 lines
419 B
Lua
Raw Normal View History

2021-05-05 08:30:32 +02:00
local Widget = require "birb.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