Thread Tools Display Modes
03-21-14, 09:32 PM   #1
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
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?
  Reply With Quote
03-21-14, 10:25 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Just use SetTexture on it.

Code:
CharacterFramePortrait:SetTexture("Interface\\BUTTONS\\WHITE8X8")
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
03-22-14, 08:34 AM   #3
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
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.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to 'reset' SetPortraitToTexture()?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off