View Single Post
07-25-11, 08:59 AM   #7
Waky
A Cobalt Mageweaver
 
Waky's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 200
For an conditionals you need a double equal sign "==", also the addon is "ShadowedUnitFrames" from what I've known

Try this code:

Code:
local actionFrame = CreateFrame("FRAME", "actionFrame", UIParent)
actionFrame:RegisterEvent("ADDON_LOADED")
actionFrame:SetScript("OnEvent", function(self,event,addonName)
   if (adddonName == "ShadowedUnitFrames") then
      local f = CreateFrame("FRAME", "myFrame", UIParent)
      .....some design stuff color and border.....
      f:SetPoint("CENTER", SUFUnitplayer, 0, 0)
      f:Show()
   end
end)
  Reply With Quote