end; |
ExposeFeature = function(desc, state, errs) |
if not desc then VFL.AddError(errs, VFLI.i18n("Missing descriptor.")); return nil; end |
return true; |
local flg = true; |
if desc.statusBar and desc.statusBar ~= "" and not state:Slot("StatusBar_" .. desc.statusBar) then |
VFL.AddError(errs, VFLI.i18n("Status Bar Invalide")); flg = nil; |
end |
if desc.text and desc.text ~= "" and not state:Slot("Text_" .. desc.text) then |
VFL.AddError(errs, VFLI.i18n("Custom Text Invalide")); flg = nil; |
end |
return flg; |
end; |
ApplyFeature = function(desc, state, errs) |
local objname = "shader_SPB_" .. math.random(10000000); -- Generate a random ID. |