LootHistory.xml

LootHistory.xml (8.3.7.35662; unchanged since 6.1.0.19702)
  1. <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/
  2. ..\FrameXML\UI.xsd">
  3.   <Script file="LootHistory.lua"/>
  4.   <Button name="LootHistoryItemTemplate" virtual="true">
  5.     <Size x="177" y="36"/>
  6.     <HitRectInsets>
  7.       <AbsInset left="20" right="0" top="0" bottom="0"/>
  8.     </HitRectInsets>
  9.     <Layers>
  10.       <Layer level="BACKGROUND" textureSubLevel="1">
  11.         <!--RollWindow-ItemDivider-->
  12.         <Texture parentKey="Divider" file="Interface\LootFrame\LootToast">
  13.           <Size x="181" y="38"/>
  14.           <Anchors>
  15.             <Anchor point="TOP" x="0" y="1"/>
  16.           </Anchors>
  17.           <TexCoords left="0.00097656" right="0.17773438" top="0.74218750" bottom="0.89062500"/>
  18.         </Texture>
  19.       </Layer>
  20.       <Layer level="BACKGROUND" textureSubLevel="3">
  21.         <Texture parentKey="Icon">
  22.           <Size x="28" y="28"/>
  23.           <Anchors>
  24.             <Anchor point="LEFT" x="23" y="-2"/>
  25.           </Anchors>
  26.         </Texture>
  27.         <!--SmallItemNameBorder-Left-->
  28.         <Texture parentKey="NameBorderLeft" file="Interface\LootFrame\LootToast">
  29.           <Size x="16" y="32"/>
  30.           <Anchors>
  31.             <Anchor point="LEFT" relativeKey="$parent.Icon" relativePoint="RIGHT" x="3" y="0"/>
  32.           </Anchors>
  33.           <TexCoords left="0.79101563" right="0.80664063" top="0.57421875" bottom="0.69921875"/> 
  34.         </Texture>
  35.         <Texture parentKey="NameBorderRight" file="Interface\LootFrame\LootToast">
  36.           <Size x="16" y="32"/>
  37.           <Anchors>
  38.             <Anchor point="RIGHT" x="0" y="-2"/>
  39.           </Anchors>
  40.           <TexCoords left="0.73242188" right="0.74804688" top="0.80859375" bottom="0.93359375"/> 
  41.         </Texture>
  42.         <Texture parentKey="NameBorderMid" file="Interface\LootFrame\LootToast">
  43.           <Size x="16" y="32"/>
  44.           <Anchors>
  45.             <Anchor point="TOPLEFT" relativeKey="$parent.NameBorderLeft" relativePoint="TOPRIGHT"/>
  46.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.NameBorderRight" relativePoint="BOTTOMLEFT"/>
  47.           </Anchors>
  48.           <TexCoords left="0.75" right="0.764648438" top="0.80859375" bottom="0.93359375"/>
  49.         </Texture>
  50.       </Layer>
  51.       <Layer level="ARTWORK">
  52.         <!--SmallItemIcon-Border-->
  53.         <Texture parentKey="IconBorder" file="Interface\LootFrame\LootToast">
  54.           <Size x="30" y="30"/>
  55.           <Anchors>
  56.             <Anchor point="CENTER" relativeKey="$parent.Icon" relativePoint="CENTER" x="0" y="0"/>
  57.           </Anchors>
  58.           <TexCoords left="0.62792969" right="0.65722656" top="0.87500000" bottom="0.99218750"/> 
  59.         </Texture>
  60.         <FontString parentKey="ItemName" inherits="GameFontNormalSmall" justifyH="LEFT" justifyV="MIDDLE">
  61.           <Anchors>
  62.             <Anchor point="TOPLEFT" relativeKey="$parent.NameBorderLeft" relativePoint="TOPLEFT" x="2" y="-2"/>
  63.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.NameBorderRight" relativePoint="BOTTOMRIGHT" x="-2" y="2"/>
  64.           </Anchors>
  65.         </FontString>
  66.         <FontString parentKey="WinnerRoll" inherits="GameFontNormalSmall" justifyH="RIGHT">
  67.           <Size x="24" y="16"/>
  68.           <Anchors>
  69.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.NameBorderRight" relativePoint="BOTTOMRIGHT" x="-2" y="2"/>
  70.           </Anchors>
  71.         </FontString>
  72.         <Texture parentKey="WinnerRollType">
  73.           <Size x="16" y="16"/>
  74.           <Anchors>
  75.             <Anchor point="RIGHT" relativeKey="$parent.WinnerRoll" relativePoint="LEFT" x="2" y="-1"/>
  76.           </Anchors>
  77.         </Texture>
  78.         <FontString parentKey="WinnerName" inherits="GameFontNormalSmall" justifyH="LEFT">
  79.           <Anchors>
  80.             <Anchor point="TOPLEFT" relativeKey="$parent.NameBorderLeft" relativePoint="LEFT" x="2" y="0"/>
  81.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.WinnerRollType" relativePoint="BOTTOMLEFT" x="-2" y="0"/>
  82.           </Anchors>
  83.         </FontString>
  84.       </Layer>
  85.       <Layer level="BACKGROUND" textureSubLevel="2">
  86.         <Texture parentKey="ActiveHighlight" file="Interface\LootFrame\LootHistory-NewItemGlow" alpha="0.7">
  87.           <Size x="128" y="32"/>
  88.           <Anchors>
  89.             <Anchor point="BOTTOM" relativeKey="$parent.NameBorderMid" relativePoint="BOTTOM" x="2" y="-12"/>
  90.           </Anchors>
  91.         </Texture>
  92.       </Layer>
  93.     </Layers>
  94.     <Frames>
  95.       <Button parentKey="ToggleButton">
  96.         <Size>
  97.           <AbsDimension x="14" y="14"/>
  98.         </Size>
  99.         <Anchors>
  100.           <Anchor point="LEFT">
  101.             <Offset>
  102.               <AbsDimension x="5" y="0"/>
  103.             </Offset>
  104.           </Anchor>
  105.         </Anchors>
  106.         <Scripts>
  107.           <OnClick>
  108.             LootHistoryFrame_ToggleRollExpanded(LootHistoryFrame, self:GetParent().rollID);
  109.           </OnClick>
  110.         </Scripts>
  111.         <NormalTexture file="Interface\Buttons\UI-MinusButton-UP"/>
  112.         <PushedTexture file="Interface\Buttons\UI-MinusButton-Down"/>
  113.         <DisabledTexture file="Interface\Buttons\UI-MinusButton-Disabled"/>
  114.         <HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"/>
  115.       </Button>
  116.     </Frames>
  117.     <Scripts>
  118.       <OnEnter>
  119.         if ( self.itemLink ) then
  120.           GameTooltip:SetOwner(self, "ANCHOR_LEFT");
  121.           GameTooltip:SetHyperlink(self.itemLink);
  122.           GameTooltip:Show();
  123.         end
  124.       </OnEnter>
  125.       <OnLeave function="GameTooltip_Hide"/>
  126.       <OnClick>
  127.         if ( self.itemLink and IsModifiedClick("CHATLINK") ) then
  128.           HandleModifiedItemClick(self.itemLink);
  129.         end
  130.       </OnClick>
  131.     </Scripts>
  132.   </Button>
  133.   <Button name="LootHistoryPlayerTemplate" virtual="true">
  134.     <Size x="177" y="16"/>
  135.     <Layers>
  136.       <Layer level="BACKGROUND">
  137.         <Texture parentKey="AlternatingBG">
  138.           <Anchors>
  139.             <Anchor point="TOPLEFT"/>
  140.             <Anchor point="BOTTOMRIGHT" x="10" y="0"/>
  141.           </Anchors>
  142.           <Color r="1" g="1" b="1" a="0.08"/>
  143.         </Texture>
  144.       </Layer>
  145.       <Layer level="ARTWORK">
  146.         <FontString parentKey="RollText" inherits="GameFontNormalSmall" justifyH="RIGHT" text="94">
  147.           <Size x="24" y="16"/>
  148.           <Anchors>
  149.             <Anchor point="RIGHT" x="-2" y="0"/>
  150.           </Anchors>
  151.         </FontString>
  152.         <FontString parentKey="PlayerName" inherits="GameFontNormalSmall" justifyH="LEFT" text="PLAYERNAME">
  153.           <Anchors>
  154.             <Anchor point="LEFT" x="25" y="0"/>
  155.             <!--Anchored in OnLoad because the RollIcon frame isn't loaded yet.
  156.             <Anchor point="RIGHT" relativeKey="$parent.RollIcon" relativePoint="LEFT" x="-2" y="0"/>-->
  157.           </Anchors>
  158.         </FontString>
  159.         <Texture parentKey="WinMark" file="Interface\Buttons\UI-CheckBox-Check">
  160.           <Size x="16" y="16"/>
  161.           <Anchors>
  162.             <Anchor point="RIGHT" relativeKey="$parent.PlayerName" relativePoint="LEFT" x="-1" y="0"/>
  163.           </Anchors>
  164.         </Texture>
  165.       </Layer>
  166.     </Layers>
  167.     <Frames>
  168.       <Frame parentKey="RollIcon">
  169.         <Size x="16" y="16"/>
  170.         <Anchors>
  171.           <Anchor point="RIGHT" relativeKey="$parent.RollText" relativePoint="LEFT" x="2" y="-1"/>
  172.         </Anchors>
  173.         <Layers>
  174.           <Layer level="ARTWORK">
  175.             <Texture parentKey="Texture" setAllPoints="true"/>
  176.           </Layer>
  177.         </Layers>
  178.         <Scripts>
  179.           <OnEnter>
  180.             if ( self.tooltip ) then
  181.               GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  182.               GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, true);
  183.               GameTooltip:Show();
  184.             end
  185.           </OnEnter>
  186.           <OnLeave function="GameTooltip_Hide"/>
  187.         </Scripts>
  188.       </Frame>
  189.     </Frames>
  190.     <Scripts>
  191.       <OnLoad>
  192.         self.PlayerName:SetPoint("RIGHT", self.RollIcon, "LEFT", -2, 0);
  193.         self:RegisterForClicks("RightButtonUp");
  194.       </OnLoad>
  195.       <OnClick function="LootHistoryPlayerFrame_OnClick"/>
  196.     </Scripts>
  197.   </Button>
  198.   <Frame name="LootHistoryFrame" movable="true" resizable="true" clampedToScreen="true" parent="UIParent" inherits="TooltipBorderedFrameTemplate" hidden="true">
  199.     <Size x="210" y="175"/>
  200.     <Anchors>
  201.       <Anchor point="BOTTOM" x="280" y="180"/>
  202.     </Anchors>
  203.     <ResizeBounds>
  204.       <minResize>
  205.         <AbsDimension x="210" y="103"/>
  206.       </minResize>
  207.     </ResizeBounds>
  208.     <Layers>
  209.       <Layer level="ARTWORK">
  210.         <Texture parentKey="LootIcon" file="Interface\Minimap\Tracking\Banker">
  211.           <Size x="18" y="18"/>
  212.           <Anchors>
  213.             <Anchor point="TOPLEFT" x="5" y="-5"/>
  214.           </Anchors>
  215.         </Texture>
  216.         <FontString parentKey="Label" inherits="GameFontNormal" text="LOOT_ROLLS">
  217.           <Anchors>
  218.             <Anchor point="LEFT" relativeKey="$parent.LootIcon" relativePoint="RIGHT" x="3" y="1"/>
  219.           </Anchors>
  220.         </FontString>
  221.         <Texture parentKey="Divider" file="Interface\Common\UI-TooltipDivider">
  222.           <Size x="0" y="8"/>
  223.           <Anchors>
  224.             <Anchor point="TOPLEFT" x="4" y="-20"/>
  225.             <Anchor point="TOPRIGHT" x="-4" y="-20"/>
  226.           </Anchors>
  227.         </Texture>
  228.       </Layer>
  229.     </Layers>
  230.     <Frames>
  231.       <Button parentKey="CloseButton">
  232.         <Size x="32" y="32"/>
  233.         <Anchors>
  234.           <Anchor point="TOPRIGHT" x="2" y="2"/>
  235.         </Anchors>
  236.         <Scripts>
  237.           <OnClick>
  238.             self:GetParent():Hide();
  239.           </OnClick>
  240.         </Scripts>
  241.         <DisabledTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Disabled"/>
  242.         <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
  243.         <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
  244.         <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  245.       </Button>
  246.       <Button parentKey="DragButton">
  247.         <Anchors>
  248.           <Anchor point="TOPLEFT"/>
  249.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.CloseButton" relativePoint="BOTTOMLEFT"/>
  250.         </Anchors>
  251.         <Scripts>
  252.           <OnLoad>
  253.             self:RegisterForDrag("LeftButton");
  254.           </OnLoad>
  255.           <OnDragStart>
  256.             self:GetParent():StartMoving();
  257.           </OnDragStart>
  258.           <OnDragStop>
  259.             self:GetParent():StopMovingOrSizing();
  260.           </OnDragStop>
  261.         </Scripts>
  262.       </Button>
  263.       <Button parentKey="ResizeButton">
  264.         <Size x="32" y="16"/>
  265.         <Anchors>
  266.           <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="7"/>
  267.         </Anchors>
  268.         <Scripts>
  269.           <OnMouseDown>
  270.             self:GetParent():StartSizing("BOTTOM");
  271.           </OnMouseDown>
  272.           <OnMouseUp>
  273.             self:GetParent():StopMovingOrSizing();
  274.           </OnMouseUp>
  275.         </Scripts>
  276.         <NormalTexture file="Interface\RaidFrame\Raid-Move-Down"/>
  277.       </Button>
  278.       <ScrollFrame name="$parentScrollFrame" parentKey="ScrollFrame" inherits="UIPanelScrollFrameTemplate">
  279.         <Anchors>
  280.           <Anchor point="TOPLEFT" relativeKey="$parent.Divider" relativePoint="BOTTOMLEFT" x="0" y="1"/>
  281.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOMRIGHT" x="-28" y="7"/>
  282.         </Anchors>
  283.         <ScrollChild>
  284.           <Frame parentKey="ScrollChild">
  285.             <Size x="1" y="1"/>
  286.           </Frame>
  287.         </ScrollChild>
  288.         <Layers>
  289.           <Layer level="BACKGROUND">
  290.             <Texture parentKey="ScrollBarBackground">
  291.               <Anchors>
  292.                 <Anchor point="TOPLEFT" relativeKey="$parent.ScrollBar.ScrollUpButton" relativePoint="TOPLEFT" x="-2" y="2"/>
  293.                 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollBar.ScrollDownButton" relativePoint="BOTTOMRIGHT" x="0" y="-2"/>
  294.               </Anchors>
  295.               <Color r="0" g="0" b="0"/>
  296.             </Texture>
  297.           </Layer>
  298.         </Layers>
  299.       </ScrollFrame>
  300.     </Frames>
  301.     <Scripts>
  302.       <OnLoad function="LootHistoryFrame_OnLoad"/>
  303.       <OnEvent function="LootHistoryFrame_OnEvent"/>
  304.       <OnHide function="LootHistoryFrame_OnHide"/>
  305.     </Scripts>
  306.   </Frame>
  307.   <Frame name="LootHistoryDropDown" inherits="UIDropDownMenuTemplate" hidden="true">
  308.     <Anchors>
  309.       <Anchor point="TOPLEFT"/>
  310.     </Anchors>
  311.     <Scripts>
  312.       <OnLoad function="LootHistoryDropDown_OnLoad"/>
  313.     </Scripts>
  314.   </Frame> 
  315. </Ui>