View Single Post
11/09/16, 06:43 PM   #7
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 238
Originally Posted by merlight View Post
@Letho Could it be that you're confusing different textures? In the XML example you use *closebutton*.dds, while in the Lua example you use *decline*.dds.

I can't find the *closebutton*.dds files to check, but looking at the ZO template that uses them, they actually do have padding that's cropped out with TextureCoords:
xml Code:
  1. <Button name="ZO_CloseButton" inherits="ZO_ButtonBehaviorClickSound" mouseOverBlendMode="ADD" virtual="true">
  2.     <Dimensions x="20" y="20" />
  3.     <Anchor point="TOPRIGHT" offsetX="-5" offsetY="6" />
  4.  
  5.     <TextureCoords left="0" top="0" right="0.625" bottom="0.625" />
  6.  
  7.     <Textures
  8.        normal="EsoUI/Art/Buttons/closeButton_up.dds"
  9.        pressed="EsoUI/Art/Buttons/closeButton_down.dds"
  10.        mouseOver="EsoUI/Art/Buttons/closeButton_mouseOver.dds"
  11.        disabled="EsoUI/Art/Buttons/closeButton_disabled.dds"
  12.     />
  13. </Button>
Oh man, that's it! Unbelievable how stupid I am... Thx for your hint
  Reply With Quote