Files
moonwell-client/reference/FrameXML/LFGFrame.xml
T

219 lines
6.4 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/
..\FrameXML\UI.xsd">
<Script file="LFGFrame.lua"/>
<Button name="LFGRoleButtonTemplate" virtual="true" motionScriptsWhileDisabled="true">
<Size>
<AbsDimension x="48" y="48"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="cover" alpha="0.5" hidden="true">
<TexCoords left="0" right="0.2617" top="0.5234" bottom="0.7851"/>
</Texture>
</Layer>
</Layers>
<Frames>
<CheckButton parentKey="checkButton">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="-5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOn");
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
if ( self.onClick ) then
self.onClick(self, button);
end
</OnClick>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
</CheckButton>
</Frames>
<Scripts>
<OnEnter>
<!--Warning: The Leader button overrides this.-->
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(_G["ROLE_DESCRIPTION"..self:GetID()], nil, nil, nil, nil, 1);
if ( self.permDisabled ) then
GameTooltip:AddLine(YOUR_CLASS_MAY_NOT_PERFORM_ROLE, 1, 0, 0, 1);
end
GameTooltip:Show();
LFDFrameRoleCheckButton_OnEnter(self);
</OnEnter>
<OnClick>
if ( self.checkButton:IsEnabled() == 1 ) then
self.checkButton:Click();
end
</OnClick>
<OnLeave>
GameTooltip:Hide();
self.checkButton:UnlockHighlight();
</OnLeave>
</Scripts>
<NormalTexture file="Interface\LFGFrame\UI-LFG-ICON-ROLES"/>
</Button>
<Button name="LFGRoleButtonWithBackgroundTemplate" inherits="LFGRoleButtonTemplate" virtual="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\LFGFrame\UI-LFG-ICONS-ROLEBACKGROUNDS" alpha="0.3" parentKey="background">
<Size>
<AbsDimension x="80" y="80"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Button>
<Frame name="LFGSpecificChoiceTemplate" virtual="true">
<Size>
<AbsDimension x="295" y="16"/>
</Size>
<HitRectInsets>
<AbsInset left="25" right="58" top="0" bottom="0"/>
</HitRectInsets>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentHeroicIcon" file="Interface/LFGFrame/UI-LFG-ICON-HEROIC" parentKey="heroicIcon">
<Size>
<AbsDimension x="16" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="40" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.0" right="0.5" top="0" bottom="0.625"/>
</Texture>
<FontString name="$parentInstanceLevel" inherits="GameFontNormal" justifyH="LEFT" parentKey="level">
<Size>
<AbsDimension x="60" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentInstanceName" inherits="GameFontNormal" justifyH="LEFT" parentKey="instanceName">
<Size>
<AbsDimension x="0" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="40" y="0"/>
</Offset>
</Anchor>
<Anchor point="RIGHT" relativeTo="$parentInstanceLevel" relativePoint="LEFT">
<Offset>
<AbsDimension x="-10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="$parentLockedIndicator" file="Interface/LFGFrame/UI-LFG-ICON-LOCK" parentKey="lockedIndicator">
<Size>
<AbsDimension x="12" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="25" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.71875" top="0" bottom="0.875"/>
</Texture>
</Layer>
</Layers>
<Frames>
<CheckButton name="$parentEnableButton" parentKey="enableButton">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentLockedIndicator" relativePoint="CENTER"/>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
</CheckButton>
<Button name="$parentExpandOrCollapseButton" parentKey="expandOrCollapseButton">
<Size>
<AbsDimension x="13" y="13"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="1" right="-4" top="-2" bottom="-2"/>
</HitRectInsets>
<NormalTexture file="Interface\Buttons\UI-MinusButton-UP">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</NormalTexture>
<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</HighlightTexture>
</Button>
</Frames>
<Scripts>
<OnLeave>
if ( GameTooltip:GetOwner() == self ) then
GameTooltip:Hide();
end
</OnLeave>
</Scripts>
</Frame>
<Frame name="LFGEventFrame">
<Scripts>
<OnLoad function="LFGEventFrame_OnLoad"/>
<OnEvent function="LFGEventFrame_OnEvent"/>
</Scripts>
</Frame>
</Ui>