How to widen default unit frames for custom texture?
Hi all, I'm modifying the existing whoathickframes addon and trying to use a wider frame texture. I created it successfully in photoshop as a tga and it's loading correctly but the end is chopped off. I've tried SetWidth on every frame I can think of and the only one that does anything is PlayerFrame but then the texture stretches to fill it out and is still cropped. PlayerFrameBackground width setting works for the semi-opaque black background behind the healthbar but not the texture itself. See picture here: https://imgur.com/a/WW7Xnpx
Here is my code for changing the texture: PlayerFrameTexture:SetTexture("Interface\\Addons\\whoaThickFrames_Classic\\media\\UI-TargetingFrame"); Trying to set the width of this frame does nothing. Thanks in advance |
The PlayerFrame uses the texture from the target frame, but flipped. The texture file is also cropped.
(taken from PlayerFrame.xml) Code:
<Texture name="PlayerFrameTexture" file="Interface\TargetingFrame\UI-TargetingFrame"> |
Quote:
Ah thank you, it must be the coordinates since my texture is the same size. That property is such a pain to change though, it rescales so you need to know all the coordinates and it's not "pixels" or anything standard. I may give up |
The actual graphic (colored pixels) in your texture is not the same size and/or position as in the default texture. Otherwise yours would not get cut off. ;)
https://wow.gamepedia.com/Viewing_Bl...interface_code -or- https://wow.gamepedia.com/API_Texture_SetTexCoord |
Quote:
|
All times are GMT -6. The time now is 05:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI