Quantcast
WoWInterface - View Single Post - UI-Debuff-Overlays Square Shape with SetTexCoord
View Single Post
12-10-19, 11:50 PM   #1
Terenna
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 105
UI-Debuff-Overlays Square Shape with SetTexCoord

Hello,

I'm trying to get the canonical debuffType colored debuff overlay that uses the UI-Debuff-Overlays texture to fit a square rather than the rounded corner square. You'll often see code like this:
Lua Code:
  1. local overlay = button:CreateTexture(nil, 'OVERLAY')
  2. overlay:SetTexture([[Interface\Buttons\UI-Debuff-Overlays]])
  3. overlay:SetTexCoord(.296875, .5703125, 0, .515625)
  4. button.overlay = overlay

However, that SetTexCoord will make a rounded corner square. Is there a way to get the UI-Debuff-Overlays to fit a true square with 90 degree corners?

Thank you!

Or perhaps does anyone have a transparent BLP, TGA, or JPEG 32x32 square with a FFFFFF 1 pixel border?

Last edited by Terenna : 12-11-19 at 12:48 AM.
  Reply With Quote