Quantcast
WoWInterface - View Single Post - My CombatIndicator spawns "behind" the frame.
View Single Post
05-11-18, 08:01 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,759
Originally Posted by Aftermathhqt View Post
or make a invisible frame, that works too

Lua Code:
  1. local InvisFrame = CreateFrame("Frame", nil, self)
  2. InvisFrame:SetFrameLevel(Health:GetFrameLevel() + 5)
  3. InvisFrame:SetAllPoints()
  4.  
  5. local Combat = InvisFrame:CreateTexture(nil, "OVERLAY")
  6. Combat:Size(20, 20)
  7. Combat:Point("TOP", self, 0, 9)
But then you end up with an extra, irrelevant frame. Instead, just use :SetDrawLayer() on the texture to make it draw higher than the healthbar.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote