Hello all.
I've looked though the forums here and elsewhere and it seems that the problem I'm having is common but I have yet to find an answer. It's basically the same problem that the person a couple threads below is having regarding modifying the tradeskill window. I am trying to add a button to the Auction House Browse frame but instead the button appears in the upper right hand corner of the main WoW window and I can't figure out what I'm doing wrong. I thought making the parent of the button "AuctionBrowseFrame" (the name I got from the Blizzard_AuctionUI.xml file) would do it, but apparently it's not.
Any help would be greatly appreciated.
TestAddon.xml:
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="TestAddon.lua"/>
<Button name="TestAddon_Button" parent="AuctionBrowseFrame" inherits="UIPanelButtonTemplate" text="TESTADDON_BUTTON" hidden="false">
<Size>
<AbsDimension x="120" y="25" />
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="23" y="-100" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
TestAddon_OnClick();
</OnClick>
</Scripts>
</Button>
</Ui>
TestAddon.toc:
Code:
## Interface: 11000
## Author:
## Title: TestAddon
## Notes:
## Version : 0.1
..\Blizzard_AuctionUI\Blizzard_AuctionUI.xml
TestAddon.xml
TestAddon.lua (the button press works):
Code:
-- TestAddon.Version="0.1";
function TestAddon_OnLoad()
end
function TestAddon_OnClick()
message("Hello WoW");
end