Thread Tools Display Modes
12-09-16, 07:01 PM   #1
Traymoir
A Defias Bandit
Join Date: Dec 2016
Posts: 2
Having trouble assigning a custom texture to a button.

I've tried lots of stuff (converting to blp, tga, different size images, etc) but it all ends in a green square.

CharSelect.GenjiButt:SetNormalTexture("Interface\\AddOns\\OverwatchQuotes\\Images\\GenjiButton.blp")

I'm pretty sure my syntax is right because if I use an image I extracted from WoW itself (even in the same folder as my custom image) that image is displayed. But nothing I make myself is used.

Are there certain constraints I'm missing? I tried googling but didn't find much. Thanks in advance.
  Reply With Quote
12-09-16, 09:23 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
All images used in WoW need to have dimensions that are a power of 2 and have 4 channels (r, g, b, a).
__________________
"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
12-09-16, 09:44 PM   #3
Traymoir
A Defias Bandit
Join Date: Dec 2016
Posts: 2
Originally Posted by Seerah View Post
All images used in WoW need to have dimensions that are a power of 2 and have 4 channels (r, g, b, a).
This is exactly what I needed to know, got it working now. Thanks!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Having trouble assigning a custom texture to a button.

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