WoWInterface SVN GymnastTooltips

[/] [trunk/] [Gymnast/] [Gymnast.xml] - Rev 3

Compare with Previous | Blame | View Log

<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/
..\FrameXML\UI.xsd">
        <Script file="localization.lua"/>
        <Script file="localization.fr.lua" /> 
        <Script file="localization.de.lua" /> 
        <Script file="Gymnast.lua"/>
        
        <CheckButton name="GymnastCheckButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="26" y="26"/>
                </Size>
                <Scripts>
                        <OnClick>
                                Gymnast.CheckButtonOnClick(self)
                        </OnClick>
                        <OnEnter>
                                GameTooltip:SetOwner(self, self.anchor)
                                GameTooltip:SetText(self.anchor, nil, nil, nil, nil, 1)
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide()
                        </OnLeave>
                </Scripts>
                <NormalTexture urgency="5" file="Interface\Buttons\UI-CheckBox-Up"/>
                <PushedTexture urgency="5" file="Interface\Buttons\UI-CheckBox-Down"/>
                <HighlightTexture urgency="5" file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
                <CheckedTexture urgency="5" file="Interface\Buttons\UI-CheckBox-Check"/>
                <DisabledCheckedTexture urgency="5" file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
        </CheckButton>
        
        <CheckButton name="GymnastCheckButtonToggleTemplate" inherits="GymnastCheckButtonTemplate" virtual="true">
                <HitRectInsets>
                        <AbsInset left="0" right="-60" top="0" bottom="0"/>
                </HitRectInsets>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormal">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="1"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
                                GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1)
                        </OnEnter>
                </Scripts>
        </CheckButton>
        
        <GameTooltip name="MobileGameTooltip" hidden="true" frameStrata="DIALOG" parent="UIParent" inherits="GameTooltipTemplate" movable="true" enableMouse="true">
                <Frames>
                        <CheckButton name="$parentTOPLEFT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="5" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "TOPLEFT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentTOP" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "TOP"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentTOPRIGHT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-5" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "TOPRIGHT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentLEFT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="LEFT" relativePoint="LEFT">
                                                <Offset>
                                                        <AbsDimension x="5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "LEFT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCENTER" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="CENTER" relativePoint="CENTER">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "CENTER"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentRIGHT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="RIGHT" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="-5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "RIGHT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentBOTTOMLEFT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="5" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "BOTTOMLEFT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentBOTTOM" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "BOTTOM"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentBOTTOMRIGHT" inherits="GymnastCheckButtonTemplate" hidden="true">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-5" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "BOTTOMRIGHT"
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentUBER" inherits="GymnastCheckButtonToggleTemplate">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentTOP" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="10" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "UBER"
                                                _G[self:GetName().."Text"]:SetText(self.anchor);
                                                self.tooltip = _G["GYMNAST_TOOLTIPS_INFO_"..self.anchor];
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentOWNER" inherits="GymnastCheckButtonToggleTemplate">
                                <Anchors>
                                        <Anchor point="TOP" relativeTo="$parentUBER" relativePoint="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                self.anchor = "OWNER"
                                                _G[self:GetName().."Text"]:SetText(self.anchor);
                                                self.tooltip = _G["GYMNAST_TOOLTIPS_INFO_"..self.anchor];
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <Button name="$parentOkay" inherits="UIPanelButtonTemplate" text="GYMNAST_TOOLTIPS_HERE">
                                <Size>
                                        <AbsDimension x="64" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="50" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                Gymnast.HereButtonOnClick(self)
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Button name="$parentMouse" inherits="UIPanelButtonTemplate" text="GYMNAST_TOOLTIPS_MOUSE">
                                <Size>
                                        <AbsDimension x="64" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-50" y="10"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                Gymnast.MouseButtonOnClick(self)
                                        </OnClick>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                        <OnMouseUp>
                                Gymnast.OnMouseUp(self)
                        </OnMouseUp>
                        <OnMouseDown>
                                Gymnast.OnMouseDown(self,button)
                        </OnMouseDown>
                        <OnEnter>
                                Gymnast.OnEnter(self)
                        </OnEnter>
                        <OnLeave>
                                Gymnast.OnLeave(self)
                        </OnLeave>
                        <OnShow>
                                Gymnast.OnShow(self)
                        </OnShow>
                        <OnHide>
                                Gymnast.OnHide(self)
                        </OnHide>
                        <OnUpdate>
                                Gymnast.OnUpdate(self,elapsed)
                        </OnUpdate>
                </Scripts>
        </GameTooltip>
        
        <Frame name="GymnastFrame" hidden="true">
                <Scripts>
                        <OnLoad>
                                Gymnast.OnLoad(self)
                        </OnLoad>
                        <OnEvent>
                                Gymnast.OnEvent(self,event,...)
                        </OnEvent>
                </Scripts>
        </Frame>
</Ui>

Compare with Previous | Blame