Files

554 lines
16 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="LootFrame.lua"/>
<Button name="LootButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentNameFrame" file="Interface\QuestFrame\UI-QuestItemNameFrame">
<Size>
<AbsDimension x="130" y="62"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
<Size>
<AbsDimension x="93" y="38"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="8" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
self.hasItem = 1;
</OnLoad>
<OnEnter>
LootItem_OnEnter(self, motion);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnUpdate>
if ( GameTooltip:IsOwned(self) ) then
LootItem_OnEnter(self);
end
CursorOnUpdate(self);
</OnUpdate>
<OnClick>
if ( IsModifiedClick() ) then
HandleModifiedItemClick(GetLootSlotLink(self.slot));
else
LootButton_OnClick(self, button);
end
</OnClick>
</Scripts>
</Button>
<Button name="LootRollButtonTemplate" motionScriptsWhileDisabled="true" virtual="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Scripts>
<OnClick>
RollOnLoot(self:GetParent().rollID, self:GetID());
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip_AddNewbieTip(self, self.tooltipText, 1.0, 1.0, 1.0, self.newbieText);
if ( self:IsEnabled() ~= 1 ) then
GameTooltip:AddLine(self.reason, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, true);
GameTooltip:Show();
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="LootFrame" frameStrata="HIGH" toplevel="true" movable="true" enableMouse="true" clampedToScreen="true" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-104"/>
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true"/>
<HitRectInsets>
<AbsInset left="0" right="70" top="0" bottom="0"/>
</HitRectInsets>
<Layers>
<Layer level="BORDER">
<Texture name="LootFramePortraitOverlay" file="Interface\TargetingFrame\TargetDead">
<Size>
<AbsDimension x="58" y="58"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture file="Interface\LootFrame\UI-LootPanel"/>
<FontString inherits="GameFontNormal" text="ITEMS">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-12" y="102"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="LootFramePrev" inherits="GameFontNormal" text="PREV">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="57" y="27"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="LootFrameNext" inherits="GameFontNormal" text="NEXT">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="LootFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="142" y="27"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="LootCloseButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-81" y="-26"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
HideUIPanel(LootFrame);
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
</Button>
<Button name="LootButton1" inherits="LootButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="24" y="-80"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="LootButton2" inherits="LootButtonTemplate" id="2">
<Anchors>
<Anchor point="TOP" relativeTo="LootButton1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-4"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="LootButton3" inherits="LootButtonTemplate" id="3">
<Anchors>
<Anchor point="TOP" relativeTo="LootButton2" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-4"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="LootButton4" inherits="LootButtonTemplate" id="4">
<Anchors>
<Anchor point="TOP" relativeTo="LootButton3" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-4"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="LootFrameUpButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="LootFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="25" y="16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick function="LootFrame_PageUp"/>
</Scripts>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Up"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Down"/>
<DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<Button name="LootFrameDownButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="LootFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="143" y="16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick function="LootFrame_PageDown"/>
</Scripts>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"/>
<DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
</Frames>
<Scripts>
<OnLoad function="LootFrame_OnLoad"/>
<OnEvent function="LootFrame_OnEvent"/>
<OnShow function="LootFrame_OnShow"/>
<OnHide function="LootFrame_OnHide"/>
</Scripts>
</Frame>
<Frame name="GroupLootDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Scripts>
<OnLoad function="GroupLootDropDown_OnLoad"/>
</Scripts>
</Frame>
<Frame name="GroupLootFrameTemplate" parent="UIParent" toplevel="true" frameStrata="DIALOG" hidden="true" virtual="true">
<Size>
<AbsDimension x="253" y="84"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentSlotTexture" file="Interface\Buttons\UI-EmptySlot">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="3" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentNameFrame" file="Interface\MerchantFrame\UI-Merchant-LabelSlots">
<Size>
<AbsDimension x="128" y="64"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSlotTexture" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-9" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentName" inherits="GameFontNormalSmall" text="Item Name" justifyH="LEFT">
<Size>
<AbsDimension x="90" y="30"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSlotTexture" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-5" y="5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentDecoration" file="Interface\DialogFrame\UI-DialogBox-Gold-Dragon" hidden="true">
<Size>
<AbsDimension x="120" y="120"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-30" y="15"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentCorner" file="Interface\DialogFrame\UI-DialogBox-Corner">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-6" y="-7"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentIconFrame" enableMouse="true">
<Size>
<AbsDimension x="34" y="34"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSlotTexture">
<Offset>
<AbsDimension x="15" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentIcon">
<Size>
<AbsDimension x="34" y="34"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-5" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self.hasItem = 1;
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetLootRollItem(self:GetParent().rollID);
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnUpdate>
if ( GameTooltip:IsOwned(self) ) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetLootRollItem(self:GetParent().rollID);
end
CursorOnUpdate(self);
</OnUpdate>
<OnClick>
HandleModifiedItemClick(GetLootRollItemLink(self:GetParent().rollID));
</OnClick>
</Scripts>
</Button>
<Button name="$parentPassButton" inherits="UIPanelCloseButton" parentKey="passButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentCorner" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="5" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
RollOnLoot(self:GetParent().rollID, 0);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(PASS);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parentRollButton" inherits="LootRollButtonTemplate" parentKey="needButton" id="1">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-48" y="-14"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText=NEED;
self.newbieText=NEED_NEWBIE;
</OnLoad>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-GroupLoot-Dice-Up"/>
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-Dice-Highlight" alphaMode="ADD"/>
<PushedTexture file="Interface\Buttons\UI-GroupLoot-Dice-Down"/>
</Button>
<Button name="$parentGreedButton" inherits="LootRollButtonTemplate" parentKey="greedButton" id="2">
<Anchors>
<Anchor point="TOP" relativeTo="$parentRollButton" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="-2" y="2"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText=GREED;
self.newbieText=GREED_NEWBIE;
</OnLoad>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-GroupLoot-Coin-Up"/>
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-Coin-Highlight" alphaMode="ADD"/>
<PushedTexture file="Interface\Buttons\UI-GroupLoot-Coin-Down"/>
</Button>
<Button name="$parentDisenchantButton" inherits="LootRollButtonTemplate" parentKey="disenchantButton" id="3">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentGreedButton" relativePoint="RIGHT">
<Offset>
<AbsDimension x="3" y="3"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText=ROLL_DISENCHANT;
self.newbieText=ROLL_DISENCHANT_NEWBIE;
</OnLoad>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-GroupLoot-DE-Up"/>
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-DE-Highlight" alphaMode="ADD"/>
<PushedTexture file="Interface\Buttons\UI-GroupLoot-DE-Down"/>
</Button>
<StatusBar name="$parentTimer" drawLayer="BACKGROUND" minValue="0" maxValue="60000" defaultValue="0">
<Size>
<AbsDimension x="152" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSlotTexture" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="13" y="10"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\PaperDollInfoFrame\UI-Character-Skills-BarBorder">
<Size>
<AbsDimension x="156" y="20"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnUpdate>
GroupLootFrame_OnUpdate(self, elapsed);
</OnUpdate>
</Scripts>
<BarTexture name="$parentBar" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" />
<BarColor r="1.0" g="1.0" b="0" />
</StatusBar>
</Frames>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Scripts>
<OnLoad>
self:RegisterEvent("CANCEL_LOOT_ROLL");
</OnLoad>
<OnShow function="GroupLootFrame_OnShow"/>
<OnEvent function="GroupLootFrame_OnEvent"/>
<OnHide>
GroupLootFrame_OnHide(self);
</OnHide>
</Scripts>
</Frame>
<Frame name="GroupLootFrame1" inherits="GroupLootFrameTemplate" id="1">
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="60"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="GroupLootFrame2" inherits="GroupLootFrameTemplate" id="2">
<Anchors>
<Anchor point="BOTTOM" relativeTo="GroupLootFrame1" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="15"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="GroupLootFrame3" inherits="GroupLootFrameTemplate" id="3">
<Anchors>
<Anchor point="BOTTOM" relativeTo="GroupLootFrame2" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="15"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="GroupLootFrame4" inherits="GroupLootFrameTemplate" id="4">
<Anchors>
<Anchor point="BOTTOM" relativeTo="GroupLootFrame3" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="15"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Ui>