Files
GMGenie/Spy.xml
2014-07-02 11:06:24 +02:00

573 lines
24 KiB
XML

<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">
<EditBox name="GMGenie_Spy_Uneditable" inherits="GMGenie_Input_Text" virtual="true" autoFocus="false">
<Scripts>
<OnChar>
GMGenie.Spy.resetBoxes();
</OnChar>
</Scripts>
</EditBox>
<Button name="GMGenie_Spy_InfoWindow" inherits="GMGenie_Window">
<Size>
<AbsDimension x="230" y="235"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GMGenie_Tickets_View" relativePoint="TOPRIGHT"/>
</Anchors>
<Scripts>
<OnDoubleClick>
self:ClearAllPoints();
self:SetPoint("LEFT", GMGenie_Tickets_View, "RIGHT");
</OnDoubleClick>
<OnClick>
if (button == "RightButton") then
GMGenie.Spy.copyPin();
end
</OnClick>
<OnLoad>
GMGenie.loadWindow(self, 'Loading...', true, function()
GMGenie.Spy.spy(GMGenie.Spy.currentRequest["name"]); end);
</OnLoad>
</Scripts>
<Frames>
<Frame name="$parent_Info">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-19"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="220" y="23"/>
</Size>
<Layers>
<Layer>
<FontString name="$parent_CharInfo" inherits="GenieFontNormalSmall" text="" justifyH="CENTER">
<Anchors>
<Anchor point="TOP"/>
</Anchors>
</FontString>
<FontString name="$parent_Guild" inherits="GenieFontNormalSmall" text="" justifyH="CENTER">
<Anchors>
<Anchor point="TOP" relativeTo="$parent_CharInfo" relativePoint="BOTTOM"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="$parent_Character">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parent_Info" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Character:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Name" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="90" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
<EditBox name="$parent_Id" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="70" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="150" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_Account">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_Character" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Account:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Name" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="90" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
<EditBox name="$parent_Id" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="70" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="150" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_Email">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_Account" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="E-mail:" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Email" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="160" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_IpLat">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_Email" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Ip/Latency:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Ip" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="105" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
<EditBox name="$parent_Latency" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="55" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="165" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_LastLogin">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_IpLat" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Last login:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_LastLogin" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="160" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_PlayedGM">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_LastLogin" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Played/GM:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_PlayedTime" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="105" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
<EditBox name="$parent_GM" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="55" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="165" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_MoneyPhase">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_PlayedGM" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Gold/Phase:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Money" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="105" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
<EditBox name="$parent_Phase" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="55" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="165" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Frame name="$parent_Location">
<Size>
<AbsDimension x="220" y="19"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="GMGenie_Spy_InfoWindow_MoneyPhase" relativePoint="BOTTOM"/>
</Anchors>
<Layers>
<Layer>
<FontString name="$parent_Title" inherits="GenieFontNormalSmall" text="Location:"
justifyH="LEFT">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="$parent_Location" inherits="GMGenie_Spy_Uneditable">
<Size>
<AbsDimension x="160" y="18"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="1"/>
</Offset>
</Anchor>
</Anchors>
</EditBox>
</Frames>
</Frame>
<Button name="$parent_Whisper" inherits="GMGenie_Button" text="Whisper">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="5" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
</OnLoad>
<OnClick>
GMGenie.Spy.whisper();
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13,
CONTAINER_OFFSET_Y);
GameTooltip:AddLine("Whisper");
GameTooltip:AddLine("Left click to send a whisper to ".. GMGenie.Spy.currentRequest["name"]
..".");
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parent_Macros" inherits="GMGenie_Dropdown" text="Macros">
<Size>
<AbsDimension x="110" y="18"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="5" y="24"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(1, nil, GMGenie_Spy_InfoWindow_DropdownbuttonsOne,
GMGenie_Spy_InfoWindow_Macros, 0, 0);
</OnClick>
</Scripts>
</Button>
<Frame name="$parent_DropdownbuttonsOne" inherits="UIDropDownMenuTemplate" id="50"/>
<Button name="$parent_Advanced" inherits="GMGenie_Dropdown" text="Advanced tools">
<Size>
<AbsDimension x="110" y="18"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-5" y="24"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(1, nil, GMGenie_Spy_InfoWindow_DropdownbuttonsTwo,
GMGenie_Spy_InfoWindow_Advanced, 0, 0);
</OnClick>
</Scripts>
</Button>
<Frame name="$parent_DropdownbuttonsTwo" inherits="UIDropDownMenuTemplate" id="50"/>
<Button name="$parent_Revive" inherits="GMGenie_Button" text='Revive'>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="60" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
GMGenie.Spy.revive();
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13,
CONTAINER_OFFSET_Y);
GameTooltip:AddLine("Revive");
GameTooltip:AddLine("Revive player ".. GMGenie.Spy.currentRequest["name"] ..".");
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parent_Freeze" inherits="GMGenie_Button" text='(Un)freeze'>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="115" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if (button == "RightButton") then
GMGenie.Spy.unfreeze();
else
GMGenie.Spy.freeze();
end
</OnClick>
<OnLoad>
self:RegisterForClicks("LeftButtonUp","RightButtonUp");
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13,
CONTAINER_OFFSET_Y);
GameTooltip:AddLine("Freeze / Unfreeze");
GameTooltip:AddLine("Left click to freeze.");
GameTooltip:AddLine("Right click to unfreeze.");
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parent_Appear" inherits="GMGenie_Button" text='App/Sum'>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="170" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonUp","RightButtonUp");
</OnLoad>
<OnClick>
if (button == "RightButton") then
GMGenie.Spy.summon();
else
GMGenie.Spy.appear();
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13,
CONTAINER_OFFSET_Y);
GameTooltip:AddLine("Appear/Summon");
GameTooltip:AddLine("Left click to appear.");
GameTooltip:AddLine("Right click to summon.");
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
</Button>
</Ui>