WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (http://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to 'reset' SetPortraitToTexture()? (http://www.wowinterface.com/forums/showthread.php?t=49130)

Duugu 03-21-14 09:32 PM

How to 'reset' SetPortraitToTexture()?
 
It's easy to set a texture to a round shape with SetPortraitToTexture. But how do I reset the texture back to the default square shape? :)
It this even supported?

Phanx 03-21-14 10:25 PM

Just use SetTexture on it.

Code:

CharacterFramePortrait:SetTexture("Interface\\BUTTONS\\WHITE8X8")

Duugu 03-22-14 08:34 AM

Doh. I'm that stupid.
Tried that before I posted my request. Did not work.

Now I realized, that I've hooked SetTexture to apply SetPortraitToTexture if the texture changes and completly forgot that hook. I've tried a hour or so to 'reset' the texture with SetTexture and was perplex that nothing happend. :D


All times are GMT -6. The time now is 12:15 PM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC