vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<!--

        Tooltip Wrangler
        
        - Allows the user to move the tooltips freely about the screen.  
        Works great with most other tooltip mod programs including AF_Tooltip and GypsyMod.

-->

<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="TTW_Tooltip.lua"/>
        <Frame name="TTW_RecticleFrame" toplevel="true" frameStrata="HIGH" enableMouse="true" parent="UIParent" movable="true">
                <Size>
                        <AbsDimension x="66" y="66"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="200" y="-200"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Frame name="TTW_RecticleBackdrop" setAllPoints="true" frameStrata="HIGH" hidden="false">
                                <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="16"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Layers>
                                <Layer level="ARTWORK">
                                        <!-- Icon to the left of the buff button -->
                                        <Texture name="$crosshairs" file="Interface\AddOns\TTW_Tooltip\crosshairs">
                                                <Size>
                                                        <AbsDimension x="53" y="53"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER" relativePoint="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </Texture>
                                </Layer>
                                </Layers>       
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
                                                this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b,0.4);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                </Frames>
                <Scripts>
                        <OnLoad>
                                TTW_TooltipOnLoad();
                        </OnLoad>
                        <OnEvent>
                                TTW_TooltipOnEvent(event);
                        </OnEvent>
                        <OnMouseDown>
                                TTW_TooltipOnMouseDown();
                        </OnMouseDown>
                        <OnMouseUp>
                                TTW_TooltipOnMouseUp();
                        </OnMouseUp>
                </Scripts>
        </Frame>

        <Button name="TTW_AnchorTopLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorTopLeftOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>
        

        <Button name="TTW_AnchorTopRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorTopRightOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorBottomRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorBottomRightOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorBottomLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorBottomLeftOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorTopButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="TOP" relativePoint="TOP">
                                <Offset>
                                        <AbsDimension x="0" y="5"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorTopOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorBottomButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOM" relativePoint="BOTTOM">
                                <Offset>
                                        <AbsDimension x="0" y="-5"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorBottomOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorLeftButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="LEFT" relativePoint="LEFT">
                                <Offset>
                                        <AbsDimension x="-4" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorLeftOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>

        <Button name="TTW_AnchorRightButton" parent="TTW_RecticleBackdrop" frameStrata="HIGH">
                <Size>
                        <AbsDimension x="18" y="18"/>
                </Size>
                <Anchors>
                        <Anchor point="RIGHT" relativePoint="RIGHT">
                                <Offset>
                                        <AbsDimension x="5" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                        <Scripts>
                                <OnClick>
                                        TTW_AnchorRightOnClick();
                                </OnClick>
                                <OnEnter>
                                        TTW_ButtonTooltip();
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>
                        </Scripts>
                <NormalTexture file="Interface\AddOns\TTW_Tooltip\redButton"/>
                <PushedTexture file="Interface\AddOns\TTW_Tooltip\greenButton"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>
</Ui>