vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
        <CheckButton name="AutoBar_ButtonTemplate" inherits="ActionButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="36" y="36"/>
                </Size>
                <Scripts>
                        <OnLoad>
                                this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
                        </OnLoad>
                        <OnClick>
                                AutoBar_Button_OnClick(arg1, "CLICK");
                        </OnClick>
                        <OnMouseUp>
                                AutoBar_Button_OnClick(arg1, "UP");
                        </OnMouseUp>
                        <OnMouseDown>
                                AutoBar_Button_OnClick(arg1, "DOWN");
                        </OnMouseDown>
                        <OnEnter>
                                AutoBar_Button_SetTooltip();
                        </OnEnter>
                        <OnLeave>
                                this:GetParent().updateTooltip = nil;
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </CheckButton>
        <Frame name="AutoBar" parent="UIParent">
                <Size>
                        <AbsDimension x="1" y="1"/>
                </Size>
                <Scripts>
                        <OnLoad>
                                AutoBar_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                AutoBar_OnEvent(event);
                        </OnEvent>
                        <OnUpdate>
                                if (this.updateTooltip and this.tooltipButton and GameTooltip:IsOwned(this)) then
                                        AutoBar_Button_SetTooltip(this.tooltipButton, arg1);
                                else
                                        this.updateTooltip = nil;
                                end
                        </OnUpdate>
                </Scripts>
                <Frames>
                        <CheckButton name="$parent_Button1" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button2" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button3" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button4" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button5" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button6" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button7" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button8" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button9" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button10" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button11" inherits="AutoBar_ButtonTemplate"/>
                        <CheckButton name="$parent_Button12" inherits="AutoBar_ButtonTemplate"/>
                </Frames>
        </Frame>
</Ui>