Originally Posted by merlight
@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:
<Button name="ZO_CloseButton" inherits="ZO_ButtonBehaviorClickSound" mouseOverBlendMode="ADD" virtual="true"> <Dimensions x="20" y="20" /> <Anchor point="TOPRIGHT" offsetX="-5" offsetY="6" /> <TextureCoords left="0" top="0" right="0.625" bottom="0.625" /> <Textures normal="EsoUI/Art/Buttons/closeButton_up.dds" pressed="EsoUI/Art/Buttons/closeButton_down.dds" mouseOver="EsoUI/Art/Buttons/closeButton_mouseOver.dds" disabled="EsoUI/Art/Buttons/closeButton_disabled.dds" /> </Button>
|
Oh man, that's it! Unbelievable how stupid I am... Thx for your hint