2020-08-20 15:33:28 +02:00
|
|
|
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)
|
2020-08-20 15:33:28 +02:00
|
|
|
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)
|
2020-08-20 15:33:28 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return RadianceWidget
|