WoWInterface SVN OpenRDX

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/RDX/Designs/Shaders
    from Rev 617 to Rev 658
    Reverse comparison

Rev 617 → Rev 658

SmoothPowerBarShader.lua
66,7 → 66,14
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.