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">
        <Script file="CT_ModOptions.lua"/>
        <Frame name="CT_OptionBarFrame" parent="Minimap" frameStrata="MEDIUM" enableMouse="true" hidden="false">
                <Size>
                        <AbsDimension x="29" y="32"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT">
                                <Offset>
                                        <AbsDimension x="2" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Button name="CT_OptionButton">
                                <Size>
                                        <AbsDimension x="32" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="-15" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel(5);
                                                this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
                                        </OnLoad>
                                        <OnClick>
                                                CT_OptionButton_OnClick(arg1);
                                        </OnClick>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                if ( CT_MF_ShowFrames ) then
                                                        GameTooltip:SetText("Mod Options\nRight-click to lock frames");
                                                else
                                                        GameTooltip:SetText("Mod Options\nRight-click to unlock frames");
                                                end
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                                </Scripts>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <Texture name="$parentTexture" file="Interface\AddOns\CT_MasterMod\Images\ct"/>
                                        </Layer>
                                </Layers>
                                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:RegisterEvent("VARIABLES_LOADED");
                        </OnLoad>
                        <OnEvent>
                                CT_OptionBar_MoveButton();
                        </OnEvent>
                </Scripts>
        </Frame>
</Ui>