View Single Post
10-20-10, 10:56 PM   #1
Yksrep
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 21
Post XML Make Button drag-able

Im having trouble with making a GameMenuButtonTemplate button drag-able, can anyone give me a hand or tell me where I can find a why to do it.

Thanks


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/

    http://wowprogramming.com/FrameXML/UI.xsd">


    <Button name="PointMe_Button"
 inherits="GameMenuButtonTemplate"
 parent="WorldMapFrame" text="Point Me">

        <Anchors>
            <Anchor point="TOPRIGHT">
                <Offset x="-213" y="-1"/>
            </Anchor>
        </Anchors>

        <Scripts>

            <OnClick>

                PointMe_ButtonOnClick(self, button, down)

            </OnClick>		

        </Scripts>

    </Button>

    <Frame name="PointMe_DropDown" inherits="UIDropDownMenuTemplate" frameStrata="FULLSCREEN_DIALOG">

        <Scripts>

            <OnLoad>

                PointMe_DropDownOnLoad(self)

            </OnLoad>

        </Scripts>

    </Frame>

</Ui>
  Reply With Quote