PDA

View Full Version : Button picture problem


Athene
27-06-2006, 01:58 PM
I've made a button for my mod, and I've made a picture for it. But I dont understand a tiny bit of how to put the picture on the button...
I've looked at the codes from 5 other mods with such buttons, but I can't make it work nomatter what I do.
First I tried looking at Blacklist, but I could only get the picture working if I put it in the exact same location where the Blacklist pictures are, or it wouldnt work... So my picture is fine, but if I just move it to a different folder or rename it, then it wont appear...
Then I tried looking at some other mods, but they all refer to files that I can't even find anywhere, like "Interface\Buttons\UI-Quickslot2"...

Then I tried looking for a tutorial on the web, but I havent found any.
Can anyone help? Maybe someone could make a very simple mod that just creates a button with a picture on it, and that's it. Then I could see how I can make it work

bigblue
27-06-2006, 09:26 PM
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\AddOns\your_addon\picture">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>