Hi Ayantir, what I meant is:
The way I understand how to setup a button with a texture in lua or xml is, that
Code:
<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" />
and
Code:
:SetNormalTexture("/esoui/art/buttons/decline_up.dds");
:SetMouseOverTexture("/esoui/art/buttons/decline_over.dds");
:SetPressedTexture("/esoui/art/buttons/decline_down.dds");
should do exactly the same thing. But they don't, because the XML variant does not scale the texture to the size of it's parent element (<Button>), where SetxyzTexture does.
This is the difference (I used Circonians Control outline to show the actual dimensions of the button element):
... using SetXyzTexture() working as intended
... using XML not working as intended
Cheers, Letho