Quantcast
WoWInterface - View Single Post - Raidframe HealPrediction Texture
View Single Post
05-07-21, 11:43 AM   #12
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Originally Posted by rulezyx View Post
I get the color and gradient/effect stuff but I still dont understand where the texture (length/size) came from
The size is set via SetPoint calls in CompactUnitFrameUtil_UpdateFillBar. It is called as: CompactUnitFrameUtil_UpdateFillBar(frame, healthTexture, frame.myHealPrediction, myIncomingHeal, -myCurrentHealAbsorbPercent)
Originally Posted by rulezyx View Post
Maybe I am missing something and its just color but I am a bit confused because for shield/absorb theres a Raidframe Texture called "Shield-Overlay".
The SetColorTexture(r, g, b) call creates a texture of uniform color. Before Blizzard added that you had to do:
Code:
tex:SetTexture([[Interface\BUTTONS\WHITE8X8]])
tex:SetVertexColor(r, g, b)
Originally Posted by rulezyx View Post
It would be pretty nice if I could change the white-texture to my statusbar-texture like the rest of my UI.
You can. It is still just a normal texture like any other.

Last edited by Vrul : 05-07-21 at 11:46 AM.
  Reply With Quote