Thread: Custom Button
View Single Post
09-20-08, 03:35 AM   #1
Gethe
RealUI Developer
 
Gethe's Avatar
Premium Member
Featured
Join Date: Sep 2008
Posts: 942
Custom Button

I'm trying to make a custom button for my add-on, but so far all I've been able to create is a green placeholder the size of the button. This is the code I have written for it:
Code:
<Button name="$parent_RestoreButton">
   <Size>
      <AbsDimension x="32" y="32"/>
   </Size>
   <Anchors>
      <Anchor point="TOPRIGHT">
         <Offset x="-28" y="-20"/>
      </Anchor>
   </Anchors>
   <Scripts>
      <OnClick>
         RestoreButton_OnClick();
      </OnClick>
   </Scripts>
   <NormalTexture file="Interface\AddOns\MyAddon\Art\ResButtonUp.blp"/>
   <PushedTexture file="Interface\AddOns\MyAddon\Art\ResButtonDown.blp"/>
   <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
</Button>
I've looked all over and at this point I'm totally stumped as to why this won't work, so if someone could help me out it would be greatly appreciated.
  Reply With Quote