/trunk/RDX/Designs/Buttons
ApplyFeature = function(desc, state) |
local objname = "Bar_" .. desc.name; |
local _,class = UnitClass("player"); |
--if class == "SHAMAN" then |
if class == "SHAMAN" then |
------------------ On frame creation |
local createCode = _EmitCreateCode(objname, desc); |
frame.]] .. objname .. [[ = nil; |
]]; |
state:Attach(state:Slot("EmitDestroy"), true, function(code) code:AppendCode(destroyCode); end); |
--end |
end |
return true; |
end; |
UIFromDescriptor = function(desc, parent, state) |