View Single Post
10-05-20, 03:46 PM   #8
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi SDPhantom,

thanks so much for your help.

It seems that it works nicely.
I have also moved the code out of the reposition function as you suggest.


Lua Code:
  1. -- CastBars
  2. hooksecurefunc("Target_Spellbar_AdjustPosition", function(self)
  3.     if self == TargetFrameSpellBar then
  4.         self:ClearAllPoints()
  5.         self:SetPoint("CENTER", UIParent, "CENTER", 0, -30)    
  6.     end
  7. end)       
  8.  
  9. TargetFrameSpellBar:SetScale(2.0)
  10. TargetFrameSpellBar.Icon:SetAlpha(0)
  11. TargetFrameSpellBar.BorderShield:SetAlpha(0)       
  12. TargetFrameSpellBar:SetScript("OnShow",Target_Spellbar_AdjustPosition)

Thanks again so much ...
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote