Quantcast
WoWInterface - View Single Post - [LUA]Need help making rectangular buttons on masque without stretching the icon
View Single Post
12-17-16, 09:32 AM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,702
See this documentation:
http://wowprogramming.com/docs/widge...re/SetTexCoord

* top - Top (or minY) edge of the scaled/cropped image, as a fraction of the image's height from the top (number)
* bottom - Bottom (or maxY) edge of the scaled/cropped image, as a fraction of the image's height from the top (number)
The reason it's black is because you've cropped it to show everything between 0.75 and 0.75 (which is nothing).
Try: 0, 0, 0.25, 0.75 (which will show everything between 0.25 and 0.75, which is half the image)

Last edited by p3lim : 12-17-16 at 09:38 AM.
  Reply With Quote