SharedUIPanelTemplates.xml

SharedUIPanelTemplates.xml (9.0.2.37474; unchanged since 9.0.2.36665)
  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="SharedUIPanelTemplates.lua"/>
  4.   <Script file="PortraitFrame.lua"/>
  5.  
  6.   <Texture name="UIPanelButtonHighlightTexture" file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD" virtual="true">
  7.     <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
  8.   </Texture>
  9.  
  10.   <!-- Paper overlay texture pieces -->
  11.   <Texture name="UI-PaperOverlay-AbilityTextBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  12.     <Size x="256" y="80"/>
  13.     <TexCoords left="0.00195313" right="0.50195313" top="0.02246094" bottom="0.10058594"/>
  14.   </Texture>
  15.   <Texture name="UI-PaperOverlay-Bullet" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true">
  16.     <Size x="13" y="13"/>
  17.     <TexCoords left="0.974609375" right="1.0" top="0.7509765625" bottom="0.763671875"/>
  18.   </Texture>
  19.   <Texture name="UI-PaperOverlay-Check" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check" virtual="true">
  20.     <Size x="13" y="13"/>
  21.     <TexCoords left="0" right="0.65625" top="0" bottom="1"/>
  22.   </Texture>
  23.   <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  24.     <Size x="64" y="29"/>
  25.     <TexCoords left="0.00000000" right="1.00000000" top="0.22265625" bottom="0.27929688"/>
  26.   </Texture>
  27.   <Texture name="UI-PaperOverlay-AbilityTextBottomBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  28.     <Size x="243" y="9"/>
  29.     <TexCoords left="0.04492188" right="0.51953125" top="0.00097656" bottom="0.00976563"/>
  30.   </Texture>
  31.   <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  32.     <Size x="64" y="29"/>
  33.     <TexCoords left="0.81445313" right="0.93945313" top="0.39453125" bottom="0.42285156"/>
  34.   </Texture>
  35.   <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  36.     <Size x="64" y="29"/>
  37.     <TexCoords left="0.34570313" right="0.47070313" top="0.49316406" bottom="0.52148438"/>
  38.   </Texture>
  39.  
  40.   <!-- Tiled textures size=64,512-->
  41.   <Texture name="_SearchBarLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  42.     <Size x="64" y="49"/>
  43.     <TexCoords left="0.00000000" right="1.00000000" top="0.74804688" bottom="0.84375000"/>
  44.   </Texture>
  45.  
  46.   <!-- Vertically tiling pieces -->
  47.   <Texture name="!UI-Frame-RightTile" atlas="!UI-Frame-RightTile" virtual="true" vertTile="true" >
  48.     <Size x="10" y="256"/>
  49.   </Texture>
  50.   <Texture name="!UI-Frame-LeftTile" atlas="!UI-Frame-LeftTile" virtual="true" vertTile="true" >
  51.     <Size x="16" y="256"/>
  52.   </Texture>
  53.   <Texture name="!UI-Frame-InnerRightTile" atlas="!UI-Frame-InnerRightTile" virtual="true" vertTile="true" >
  54.     <Size x="3" y="256"/>
  55.   </Texture>
  56.   <Texture name="!UI-Frame-InnerLeftTile" atlas="!UI-Frame-InnerLeftTile" virtual="true" vertTile="true" >
  57.     <Size x="3" y="256"/>
  58.   </Texture>
  59.  
  60.   <!-- Horizontally tiling pieces -->
  61.   <Texture name="_UI-Frame-BtnBotTile" atlas="_UI-Frame-BtnBotTile" virtual="true" horizTile="true" >
  62.     <Size x="256" y="3"/>
  63.   </Texture>
  64.   <Texture name="_UI-Frame-Bot" atlas="_UI-Frame-Bot" virtual="true" horizTile="true" >
  65.     <Size x="256" y="9"/>
  66.   </Texture>
  67.   <Texture name="_UI-Frame-InnerTopTile" atlas="_UI-Frame-InnerTopTile" virtual="true" horizTile="true" >
  68.     <Size x="256" y="3"/>
  69.   </Texture>
  70.   <Texture name="_UI-Frame-InnerBotTile" atlas="_UI-Frame-InnerBotTile" virtual="true" horizTile="true" >
  71.     <Size x="256" y="3"/>
  72.   </Texture>
  73.   <Texture name="_UI-Frame-TitleTileBg" atlas="_UI-Frame-TitleTileBg" virtual="true" horizTile="true" >
  74.     <Size x="256" y="18"/> <!-- TODO: Fix asset to fit space, or bake it into all frames -->
  75.   </Texture>
  76.   <Texture name="_UI-Frame-TitleTile" atlas="_UI-Frame-TitleTile" virtual="true" horizTile="true" >
  77.     <Size x="256" y="28"/>
  78.   </Texture>
  79.   <Texture name="_UI-Frame-TopTileStreaks" atlas="_UI-Frame-TopTileStreaks" virtual="true" horizTile="true" >
  80.     <Size x="256" y="43"/>
  81.   </Texture>
  82.  
  83.   <!--
  84.   *******************************************************************************
  85.     Texture templates for frame border pieces
  86.   *******************************************************************************
  87.   -->
  88.   <Texture name="UI-Frame-Portrait" atlas="UI-Frame-Portrait" virtual="true">
  89.     <Size x="78" y="78"/>
  90.   </Texture>
  91.   <Texture name="UI-Frame-TopCornerRight" atlas="UI-Frame-TopCornerRight" virtual="true">
  92.     <Size x="33" y="33"/>
  93.   </Texture>
  94.   <Texture name="UI-Frame-BtnDivRight" atlas="UI-Frame-BtnDivRight" virtual="true">
  95.     <Size x="11" y="25"/>
  96.   </Texture>
  97.   <Texture name="UI-Frame-InnerTopRight" atlas="UI-Frame-InnerTopRight" virtual="true">
  98.     <Size x="6" y="6"/>
  99.   </Texture>
  100.   <Texture name="UI-Frame-TopLeftCorner" atlas="UI-Frame-TopLeftCornerNoPortrait" virtual="true">
  101.     <Size x="33" y="33"/>
  102.   </Texture>
  103.   <Texture name="UI-Frame-InnerTopLeft" atlas="UI-Frame-InnerTopLeft" virtual="true">
  104.     <Size x="6" y="6"/>
  105.   </Texture>
  106.   <Texture name="UI-Frame-InnerBotLeftCorner" atlas="UI-Frame-InnerBotLeftCorner" virtual="true">
  107.     <Size x="6" y="6"/>
  108.   </Texture>
  109.   <Texture name="UI-Frame-InnerBotRight" atlas="UI-Frame-InnerBotRight" virtual="true">
  110.     <Size x="6" y="6"/>
  111.   </Texture>
  112.   <Texture name="UI-Frame-BotCornerLeft" atlas="UI-Frame-BotCornerLeft" virtual="true">
  113.     <Size x="14" y="14"/>
  114.   </Texture>
  115.   <Texture name="UI-Frame-TopCornerLeft" atlas="UI-Frame-TopLeftCorner" virtual="true">
  116.     <Size x="14" y="14"/>
  117.   </Texture>
  118.   <Texture name="UI-Frame-BtnDivMiddle" atlas="UI-Frame-BtnDivMiddle" virtual="true">
  119.     <Size x="13" y="25"/>
  120.   </Texture>
  121.   <Texture name="UI-Frame-BotCornerRight" atlas="UI-Frame-BotCornerRight" virtual="true">
  122.     <Size x="11" y="11"/>
  123.   </Texture>
  124.   <Texture name="UI-Frame-TopCornerRightSimple" atlas="UI-Frame-TopCornerRightSimple" virtual="true">
  125.     <Size x="11" y="11"/>
  126.   </Texture>
  127.   <Texture name="UI-Frame-BtnDivLeft" atlas="UI-Frame-BtnDivLeft" virtual="true">
  128.     <Size x="11" y="25"/>
  129.   </Texture>
  130.   <Texture name="UI-Frame-InnerSplitLeft" atlas="UI-Frame-InnerSplitLeft" virtual="true">
  131.     <Size x="9" y="14"/>
  132.   </Texture>
  133.   <Texture name="UI-Frame-InnerSplitRight" atlas="UI-Frame-InnerSplitLeft" virtual="true">
  134.     <Size x="9" y="14"/>
  135.   </Texture>
  136.  
  137.   <Texture name="HelpPlateArrowDOWN" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  138.     <Size x="53" y="21"/>
  139.     <TexCoords left="0.78515625" right="0.99218750" top="0.54687500" bottom="0.58789063"/>
  140.   </Texture>
  141.   <Texture name="HelpPlateArrowUP" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  142.     <Size x="53" y="21"/>
  143.     <TexCoords left="0.78515625" right="0.99218750" bottom="0.54687500" top="0.58789063"/>
  144.   </Texture>
  145.   <Texture name="HelpPlateArrow-GlowDOWN" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  146.     <Size x="65" y="28"/>
  147.     <TexCoords left="0.40625000" right="0.66015625" top="0.77343750" bottom="0.82812500"/>
  148.   </Texture>
  149.   <Texture name="HelpPlateArrow-GlowUP" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  150.     <Size x="65" y="28"/>
  151.     <TexCoords left="0.40625000" right="0.66015625" bottom="0.77343750" top="0.82812500"/>
  152.   </Texture>
  153.   <Texture name="HelpPlateArrow-Shadow" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  154.     <Size x="101" y="41"/>
  155.     <TexCoords left="0.00390625" right="0.39843750" top="0.68359375" bottom="0.76367188"/>
  156.   </Texture>
  157.   <Texture name="HelpPlateBox-Glow-BottomRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  158.     <Size x="11" y="11"/>
  159.     <TexCoords left="0.94921875" right="0.99218750" top="0.32226563" bottom="0.34375000"/>
  160.   </Texture>
  161.   <Texture name="HelpPlateBox-Glow-TopLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  162.     <Size x="11" y="11"/>
  163.     <TexCoords left="0.91796875" right="0.96093750" top="0.65625000" bottom="0.67773438"/>
  164.   </Texture>
  165.   <Texture name="HelpPlateBox-Glow-TopRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  166.     <Size x="11" y="11"/>
  167.     <TexCoords left="0.12890625" right="0.17187500" top="0.96679688" bottom="0.98828125"/>
  168.   </Texture>
  169.   <Texture name="HelpPlateBox-Glow-BottomLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  170.     <Size x="11" y="11"/>
  171.     <TexCoords left="0.30859375" right="0.35156250" top="0.96679688" bottom="0.98828125"/>
  172.   </Texture>
  173.   <Texture name="!HelpPlateBox-Glow-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  174.     <Size x="11" y="32"/>
  175.     <TexCoords left="0.20703125" right="0.25000000" top="0.00000000" bottom="1.00000000"/>
  176.   </Texture>
  177.   <Texture name="!HelpPlateBox-Glow-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  178.     <Size x="11" y="32"/>
  179.     <TexCoords left="0.25781250" right="0.30078125" top="0.00000000" bottom="1.00000000"/>
  180.   </Texture>
  181.   <Texture name="_HelpPlateBox-Glow-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  182.     <Size x="32" y="11"/>
  183.     <TexCoords left="0.00000000" right="1.00000000" top="0.24609375" bottom="0.28906250"/>
  184.   </Texture>
  185.   <Texture name="_HelpPlateBox-Glow-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  186.     <Size x="32" y="11"/>
  187.     <TexCoords left="0.00000000" right="1.00000000" top="0.29687500" bottom="0.33984375"/>
  188.   </Texture>
  189.   <Texture name="HelpPlateBox-Shadow-BottomRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  190.     <Size x="25" y="25"/>
  191.     <TexCoords left="0.89062500" right="0.98828125" top="0.36523438" bottom="0.41406250"/>
  192.   </Texture>
  193.   <Texture name="HelpPlateBox-Shadow-TopLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  194.     <Size x="25" y="25"/>
  195.     <TexCoords left="0.89062500" right="0.98828125" top="0.45703125" bottom="0.50585938"/>
  196.   </Texture>
  197.   <Texture name="HelpPlateBox-Shadow-TopRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  198.     <Size x="25" y="25"/>
  199.     <TexCoords left="0.66796875" right="0.76562500" top="0.77343750" bottom="0.82226563"/>
  200.   </Texture>
  201.   <Texture name="HelpPlateBox-Shadow-BottomLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
  202.     <Size x="25" y="25"/>
  203.     <TexCoords left="0.77343750" right="0.87109375" top="0.77343750" bottom="0.82226563"/>
  204.   </Texture>
  205.   <Texture name="!HelpPlateBox-Shadow-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  206.     <Size x="25" y="32"/>
  207.     <TexCoords left="0.30859375" right="0.40625000" top="0.00000000" bottom="1.00000000"/>
  208.   </Texture>
  209.   <Texture name="!HelpPlateBox-Shadow-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  210.     <Size x="25" y="32"/>
  211.     <TexCoords left="0.41406250" right="0.51171875" top="0.00000000" bottom="1.00000000"/>
  212.   </Texture>
  213.   <Texture name="_HelpPlateBox-Shadow-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  214.     <Size x="32" y="25"/>
  215.     <TexCoords left="0.00000000" right="1.00000000" top="0.34765625" bottom="0.44531250"/>
  216.   </Texture>
  217.   <Texture name="_HelpPlateBox-Shadow-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  218.     <Size x="32" y="25"/>
  219.     <TexCoords left="0.00000000" right="1.00000000" top="0.45312500" bottom="0.55078125"/>
  220.   </Texture>
  221.   <Texture name="!HelpPlateBox-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  222.     <Size x="8" y="32"/>
  223.     <TexCoords left="0.00390625" right="0.03515625" top="0.00000000" bottom="1.00000000"/>
  224.   </Texture>
  225.   <Texture name="!HelpPlateBox-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
  226.     <Size x="8" y="32"/>
  227.     <TexCoords left="0.04296875" right="0.07421875" top="0.00000000" bottom="1.00000000"/>
  228.   </Texture>
  229.   <Texture name="_HelpPlateBox-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  230.     <Size x="32" y="8"/>
  231.     <TexCoords left="0.00000000" right="1.00000000" top="0.00390625" bottom="0.03515625"/>
  232.   </Texture>
  233.   <Texture name="_HelpPlateBox-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
  234.     <Size x="32" y="8"/>
  235.     <TexCoords left="0.00000000" right="1.00000000" top="0.04296875" bottom="0.07421875"/>
  236.   </Texture>
  237.  
  238.   <Button name="UIPanelCloseButtonNoScripts" virtual="true">
  239.     <Size x="32" y="32"/>
  240.     <DisabledTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Disabled"/>
  241.     <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
  242.     <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
  243.     <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  244.   </Button>
  245.   <Button name="UIPanelHideButtonNoScripts" virtual="true">
  246.     <Size x="32" y="32"/>
  247.     <DisabledTexture atlas="UI-Panel-HideButton-Disabled" useAtlasSize="true" />
  248.     <NormalTexture atlas="UI-Panel-HideButton-Up"  useAtlasSize="true" />
  249.     <PushedTexture atlas="UI-Panel-HideButton-Down" useAtlasSize="true" />
  250.     <HighlightTexture atlas="UI-Panel-MinimizeButton-Highlight" alphaMode="ADD" useAtlasSize="true" />
  251.   </Button>
  252.   <Button name="UIPanelCloseButton" inherits="UIPanelCloseButtonNoScripts" virtual="true">
  253.     <Scripts>
  254.       <OnClick function="UIPanelCloseButton_OnClick"/>
  255.     </Scripts>
  256.   </Button>
  257.   <Button name="UIStaticPopupSpecialCloseButton" inherits="UIPanelCloseButtonNoScripts" virtual="true">
  258.     <Scripts>
  259.       <OnClick function="UIPanelStaticPopupSpecialCloseButton_OnClick"/>
  260.     </Scripts>
  261.   </Button>
  262.   <Frame name="ShadowOverlayTemplate" virtual="true">
  263.     <Layers>
  264.       <Layer level="OVERLAY">
  265.         <Texture name="$parentTopLeft" file="Interface\Common\ShadowOverlay-Corner" parentKey="TopLeft">
  266.           <Anchors>
  267.             <Anchor point="TOPLEFT"/>
  268.           </Anchors>
  269.         </Texture>
  270.         <Texture name="$parentTopRight" file="Interface\Common\ShadowOverlay-Corner" parentKey="TopRight">
  271.           <Anchors>
  272.             <Anchor point="TOPRIGHT"/>
  273.           </Anchors>
  274.           <TexCoords>
  275.             <Rect ULx="0" ULy="1" LLx="1" LLy="1" URx="0" URy="0" LRx="1" LRy="0"/>
  276.           </TexCoords>
  277.         </Texture>
  278.         <Texture name="$parentBottomLeft" file="Interface\Common\ShadowOverlay-Corner" parentKey="BottomLeft">
  279.           <Anchors>
  280.             <Anchor point="BOTTOMLEFT"/>
  281.           </Anchors>
  282.           <TexCoords>
  283.             <Rect ULx="1" ULy="0" LLx="0" LLy="0" URx="1" URy="1" LRx="0" LRy="1"/>
  284.           </TexCoords>
  285.         </Texture>
  286.         <Texture name="$parentBottomRight" file="Interface\Common\ShadowOverlay-Corner" parentKey="BottomRight">
  287.           <Anchors>
  288.             <Anchor point="BOTTOMRIGHT"/>
  289.           </Anchors>
  290.           <TexCoords>
  291.             <Rect ULx="1" ULy="1" LLx="1" LLy="0" URx="0" URy="1" LRx="0" LRy="0"/>
  292.           </TexCoords>
  293.         </Texture>
  294.         <Texture name="$parentTop" file="Interface\Common\ShadowOverlay-Top">
  295.           <Anchors>
  296.             <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
  297.             <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="TOPLEFT"/>
  298.           </Anchors>
  299.         </Texture>
  300.         <Texture name="$parentBottom" file="Interface\Common\ShadowOverlay-Bottom">
  301.           <Anchors>
  302.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="BOTTOMRIGHT"/>
  303.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
  304.           </Anchors>
  305.         </Texture>
  306.         <Texture name="$parentLeft" file="Interface\Common\ShadowOverlay-Left">
  307.           <Anchors>
  308.             <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMLEFT"/>
  309.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPLEFT"/>
  310.           </Anchors>
  311.         </Texture>
  312.         <Texture name="$parentRight" file="Interface\Common\ShadowOverlay-Right">
  313.           <Anchors>
  314.             <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMRIGHT"/>
  315.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPRIGHT"/>
  316.           </Anchors>
  317.         </Texture>
  318.       </Layer>
  319.     </Layers>
  320.   </Frame>
  321.  
  322.   <Button name="UIPanelGoldButtonTemplate" virtual="true">
  323.     <Size x="40" y="32"/>
  324.     <Layers>
  325.       <Layer level="BACKGROUND">
  326.         <Texture parentKey="Left" file="Interface\Buttons\UI-DialogBox-goldbutton-up-left">
  327.           <Size x="64" y="32"/>
  328.           <Anchors>
  329.             <Anchor point="TOPLEFT"/>
  330.             <Anchor point="BOTTOMLEFT"/>
  331.           </Anchors>
  332.         </Texture>
  333.         <Texture parentKey="Right" file="Interface\Buttons\UI-DialogBox-goldbutton-up-right">
  334.           <Size x="32" y="32"/>
  335.           <Anchors>
  336.             <Anchor point="TOPRIGHT"/>
  337.             <Anchor point="BOTTOMRIGHT"/>
  338.           </Anchors>
  339.         </Texture>
  340.         <Texture parentKey="Middle" file="Interface\Buttons\UI-DialogBox-goldbutton-up-middle">
  341.           <Anchors>
  342.             <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
  343.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
  344.           </Anchors>
  345.         </Texture>
  346.       </Layer>
  347.     </Layers>
  348.     <Scripts>
  349.       <OnLoad>
  350.         self.Text:SetPoint("BOTTOM", 0, 12);
  351.         if ( not self:IsEnabled() ) then
  352.           self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-left");
  353.           self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-middle");
  354.           self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-right");
  355.         end
  356.       </OnLoad>
  357.       <OnMouseDown>
  358.         if ( self:IsEnabled() ) then
  359.           self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-left");
  360.           self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-middle");
  361.           self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-right");
  362.         end
  363.       </OnMouseDown>
  364.       <OnMouseUp>
  365.         if ( self:IsEnabled() ) then
  366.           self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
  367.           self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
  368.           self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
  369.         end
  370.       </OnMouseUp>
  371.       <OnShow>
  372.         if ( self:IsEnabled() ) then
  373.           -- we need to reset our textures just in case we were hidden before a mouse up fired
  374.           self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
  375.           self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
  376.           self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
  377.         end
  378.       </OnShow>
  379.       <OnDisable>
  380.         self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-left");
  381.         self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-middle");
  382.         self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-right");
  383.       </OnDisable>
  384.       <OnEnable>
  385.         self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
  386.         self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
  387.         self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
  388.       </OnEnable>
  389.       <OnEnter>
  390.         if(self.tooltipText ~= nil) then
  391.           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  392.           GameTooltip_SetTitle(GameTooltip, self.tooltipText);
  393.         end
  394.       </OnEnter>
  395.       <OnLeave>
  396.         if(self.tooltipText ~= nil) then
  397.           GameTooltip:Hide();
  398.         end
  399.       </OnLeave>
  400.     </Scripts>
  401.     <ButtonText parentKey="Text"/>
  402.     <NormalFont style="GameFontNormalOutline"/>
  403.     <HighlightFont style="GameFontHighlightOutline"/>
  404.     <DisabledFont style="GameFontDisable"/>
  405.     <HighlightTexture inherits="UIPanelButtonHighlightTexture">
  406.       <Anchors>
  407.         <Anchor point="TOPLEFT" x="12" y="6"/>
  408.         <Anchor point="BOTTOMRIGHT" x="-12" y="0"/>
  409.       </Anchors>
  410.     </HighlightTexture>
  411.   </Button>
  412.  
  413.   <Button name="UIPanelButtonTemplate" inherits="UIPanelButtonNoTooltipTemplate" virtual="true">
  414.     <Scripts>
  415.       <OnEnter>
  416.         if(self.tooltipText ~= nil) then
  417.           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  418.           GameTooltip_SetTitle(GameTooltip, self.tooltipText);
  419.         end
  420.       </OnEnter>
  421.       <OnLeave>
  422.         if(self.tooltipText ~= nil) then
  423.           GameTooltip:Hide();
  424.         end
  425.       </OnLeave>
  426.     </Scripts>
  427.   </Button>
  428.  
  429.   <!--A super simple standard button that will widen on load to fit its text if its
  430.   localized version is bigger than its current size + 40 padding.  It will never reshrink.-->
  431.   <Button name="UIPanelDynamicResizeButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true">
  432.     <Scripts>
  433.       <OnLoad function="DynamicResizeButton_Resize" inherit="append"/>
  434.     </Scripts>
  435.   </Button>
  436.  
  437.   <CheckButton name="UIRadioButtonTemplate" virtual="true">
  438.     <Size>
  439.       <AbsDimension x="16" y="16"/>
  440.     </Size>
  441.     <Layers>
  442.       <Layer level="BACKGROUND">
  443.         <FontString name="$parentText" inherits="GameFontNormalSmall" parentKey="text">
  444.           <Anchors>
  445.             <Anchor point="LEFT" relativePoint="RIGHT">
  446.               <Offset>
  447.                 <AbsDimension x="5" y="0"/>
  448.               </Offset>
  449.             </Anchor>
  450.           </Anchors>
  451.         </FontString>
  452.       </Layer>
  453.     </Layers>
  454.     <NormalTexture file="Interface\Buttons\UI-RadioButton">
  455.       <TexCoords left="0" right="0.25" top="0" bottom="1"/>
  456.     </NormalTexture>
  457.     <HighlightTexture file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
  458.       <TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
  459.     </HighlightTexture>
  460.     <CheckedTexture file="Interface\Buttons\UI-RadioButton">
  461.       <TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
  462.     </CheckedTexture>
  463.   </CheckButton>
  464.  
  465.   <CheckButton name="UICheckButtonTemplate" virtual="true">
  466.     <Size x="32" y="32"/>
  467.     <Layers>
  468.       <Layer level="ARTWORK">
  469.         <FontString name="$parentText" inherits="GameFontNormalSmall" parentKey="text">
  470.           <Anchors>
  471.             <Anchor point="LEFT" relativePoint="RIGHT" x="-2" y="0"/>
  472.           </Anchors>
  473.         </FontString>
  474.       </Layer>
  475.     </Layers>
  476.     <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
  477.     <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
  478.     <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
  479.     <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
  480.     <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
  481.   </CheckButton>
  482.  
  483.   <!--
  484. *******************************************************************************
  485.    GlowBoxArrowTemplate
  486.   This is a bright yellow arrow with a glow around it
  487. *******************************************************************************
  488. -->
  489.   <Frame name="GlowBoxArrowTemplate" virtual="true">
  490.     <Size x="53" y="21"/>
  491.  
  492.     <Layers>
  493.       <Layer level="ARTWORK">
  494.         <Texture name="$parentArrow" parentKey="Arrow" inherits="HelpPlateArrowDOWN">
  495.           <Anchors>
  496.             <Anchor point="TOPLEFT"/>
  497.           </Anchors>
  498.         </Texture>
  499.       </Layer>
  500.       <Layer level="BORDER">
  501.         <Texture name="$parentGlow" parentKey="Glow" inherits="HelpPlateArrow-GlowDOWN" alphaMode="ADD" alpha="0.5">
  502.           <Anchors>
  503.             <Anchor point="TOP"/>
  504.           </Anchors>
  505.         </Texture>
  506.       </Layer>
  507.     </Layers>
  508.   </Frame>
  509.  
  510.   <!--
  511. *******************************************************************************
  512.    GlowBoxTemplate
  513.   This is a bright yellow box with a glow around it
  514. *******************************************************************************
  515. -->
  516.   <Frame name="GlowBoxTemplate" virtual="true">
  517.     <Layers>
  518.       <!--
  519.       <Layer level="BACKGROUND" textureSubLevel="-1">
  520.         <Texture name="$parentColorBorder" setAllPoints="true">
  521.           <Color r="1" g="0.82353" b="0"/>
  522.         </Texture>
  523.       </Layer>
  524.       -->
  525.       <Layer level="BACKGROUND">
  526.         <Texture name="$parentBg" parentKey="BG">
  527.           <Anchors>
  528.             <Anchor point="TOPLEFT" x="1" y="-1"/>
  529.             <Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
  530.           </Anchors>
  531.           <Color r="1" g="1" b="1"/>
  532.           <Gradient orientation="VERTICAL">
  533.             <MinColor r="0.23" g="0.19" b="0"/>
  534.             <MaxColor r="0" g="0" b="0"/>
  535.           </Gradient>
  536.         </Texture>
  537.       </Layer>
  538.       <Layer level="BACKGROUND" textureSubLevel="-1">
  539.         <Texture name="$parentGlowTopLeft" inherits="HelpPlateBox-Glow-TopLeft" parentKey="GlowTopLeft" alphaMode="ADD">
  540.           <Anchors>
  541.             <Anchor point="TOPLEFT" x="-6" y="6"/>
  542.           </Anchors>
  543.         </Texture>
  544.         <Texture name="$parentGlowTopRight" inherits="HelpPlateBox-Glow-TopRight" parentKey="GlowTopRight" alphaMode="ADD">
  545.           <Anchors>
  546.             <Anchor point="TOPRIGHT" x="6" y="6"/>
  547.           </Anchors>
  548.         </Texture>
  549.  
  550.         <Texture name="$parentGlowBottomLeft" inherits="HelpPlateBox-Glow-BottomLeft" parentKey="GlowBottomLeft" alphaMode="ADD">
  551.           <Anchors>
  552.             <Anchor point="BOTTOMLEFT" x="-6" y="-6"/>
  553.           </Anchors>
  554.         </Texture>
  555.  
  556.         <Texture name="$parentGlowBottomRight" inherits="HelpPlateBox-Glow-BottomRight" parentKey="GlowBottomRight" alphaMode="ADD">
  557.           <Anchors>
  558.             <Anchor point="BOTTOMRIGHT" x="6" y="-6"/>
  559.           </Anchors>
  560.         </Texture>
  561.  
  562.         <Texture name="$parentGlowTop" inherits="_HelpPlateBox-Glow-Top" parentKey="GlowTop" alphaMode="ADD">
  563.           <Anchors>
  564.             <Anchor point="TOPLEFT" relativeKey="$parent.GlowTopLeft" relativePoint="TOPRIGHT"/>
  565.             <Anchor point="TOPRIGHT" relativeKey="$parent.GlowTopRight" relativePoint="TOPLEFT"/>
  566.           </Anchors>
  567.         </Texture>
  568.         <Texture name="$parentGlowBottom" inherits="_HelpPlateBox-Glow-Bottom" parentKey="GlowBottom" alphaMode="ADD">
  569.           <Anchors>
  570.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.GlowBottomLeft" relativePoint="BOTTOMRIGHT"/>
  571.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.GlowBottomRight" relativePoint="BOTTOMLEFT"/>
  572.           </Anchors>
  573.         </Texture>
  574.         <Texture name="$parentGlowLeft" inherits="!HelpPlateBox-Glow-Left" parentKey="GlowLeft" alphaMode="ADD">
  575.           <Anchors>
  576.             <Anchor point="TOPLEFT" relativeKey="$parent.GlowTopLeft" relativePoint="BOTTOMLEFT"/>
  577.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.GlowBottomLeft" relativePoint="TOPLEFT"/>
  578.           </Anchors>
  579.         </Texture>
  580.         <Texture name="$parentGlowRight" inherits="!HelpPlateBox-Glow-Right" parentKey="GlowRight" alphaMode="ADD">
  581.           <Anchors>
  582.             <Anchor point="TOPRIGHT" relativeKey="$parent.GlowTopRight" relativePoint="BOTTOMRIGHT"/>
  583.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.GlowBottomRight" relativePoint="TOPRIGHT"/>
  584.           </Anchors>
  585.         </Texture>
  586.       </Layer>
  587.       <Layer level="BACKGROUND" textureSubLevel="-2">
  588.         <Texture name="$parentShadowTopLeft" inherits="HelpPlateBox-Shadow-TopLeft" parentKey="ShadowTopLeft" >
  589.           <Anchors>
  590.             <Anchor point="TOPLEFT" x="-16" y="16"/>
  591.           </Anchors>
  592.         </Texture>
  593.         <Texture name="$parentShadowTopRight" inherits="HelpPlateBox-Shadow-TopRight" parentKey="ShadowTopRight" >
  594.           <Anchors>
  595.             <Anchor point="TOPRIGHT" x="16" y="16"/>
  596.           </Anchors>
  597.         </Texture>
  598.  
  599.         <Texture name="$parentShadowBottomLeft" inherits="HelpPlateBox-Shadow-BottomLeft" parentKey="ShadowBottomLeft" >
  600.           <Anchors>
  601.             <Anchor point="BOTTOMLEFT" x="-16" y="-16"/>
  602.           </Anchors>
  603.         </Texture>
  604.  
  605.         <Texture name="$parentShadowBottomRight" inherits="HelpPlateBox-Shadow-BottomRight" parentKey="ShadowBottomRight" >
  606.           <Anchors>
  607.             <Anchor point="BOTTOMRIGHT" x="16" y="-16"/>
  608.           </Anchors>
  609.         </Texture>
  610.  
  611.         <Texture name="$parentShadowTop" inherits="_HelpPlateBox-Shadow-Top" parentKey="ShadowTop" >
  612.           <Anchors>
  613.             <Anchor point="TOPLEFT" relativeKey="$parent.ShadowTopLeft" relativePoint="TOPRIGHT"/>
  614.             <Anchor point="TOPRIGHT" relativeKey="$parent.ShadowTopRight" relativePoint="TOPLEFT"/>
  615.           </Anchors>
  616.         </Texture>
  617.         <Texture name="$parentShadowBottom" inherits="_HelpPlateBox-Shadow-Bottom" parentKey="ShadowBottom" >
  618.           <Anchors>
  619.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.ShadowBottomLeft" relativePoint="BOTTOMRIGHT"/>
  620.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ShadowBottomRight" relativePoint="BOTTOMLEFT"/>
  621.           </Anchors>
  622.         </Texture>
  623.         <Texture name="$parentShadowLeft" inherits="!HelpPlateBox-Shadow-Left" parentKey="ShadowLeft" >
  624.           <Anchors>
  625.             <Anchor point="TOPLEFT" relativeKey="$parent.ShadowTopLeft" relativePoint="BOTTOMLEFT"/>
  626.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.ShadowBottomLeft" relativePoint="TOPLEFT"/>
  627.           </Anchors>
  628.         </Texture>
  629.         <Texture name="$parentShadowRight" inherits="!HelpPlateBox-Shadow-Right" parentKey="ShadowRight" >
  630.           <Anchors>
  631.             <Anchor point="TOPRIGHT" relativeKey="$parent.ShadowTopRight" relativePoint="BOTTOMRIGHT"/>
  632.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ShadowBottomRight" relativePoint="TOPRIGHT"/>
  633.           </Anchors>
  634.         </Texture>
  635.       </Layer>
  636.     </Layers>
  637.   </Frame>
  638.  
  639. <!--
  640. *******************************************************************************
  641.   Frame border element
  642.   Can have any arbitrary NineSlice theme applied, appears over all frame
  643.   content, but under any elements like tutorials, notifications, custom
  644.   artwork, etc...
  645. *******************************************************************************
  646. -->
  647.   <Frame name="NineSlicePanelTemplate" mixin="NineSlicePanelMixin" frameLevel="500" setAllPoints="true" virtual="true">
  648.     <Scripts>
  649.       <OnLoad method="OnLoad"/>
  650.     </Scripts>
  651.   </Frame>
  652.  
  653. <!--
  654. *******************************************************************************
  655.    InsetFrameTemplate
  656.  
  657.   This is the inner frame used for content by many panels.
  658. *******************************************************************************
  659. -->
  660.   <Frame name="InsetFrameTemplate" useParentLevel="true" virtual="true">
  661.     <KeyValues>
  662.       <KeyValue key="layoutType" value="InsetFrameTemplate" type="string"/>
  663.     </KeyValues>
  664.     <Layers>
  665.       <Layer level="BACKGROUND" textureSubLevel="-5">
  666.         <!-- TODO: Convert this to atlas -->
  667.         <Texture parentKey="Bg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true" setAllPoints="true"/>
  668.       </Layer>
  669.     </Layers>
  670.     <Frames>
  671.       <Frame parentKey="NineSlice" useParentLevel="true" inherits="NineSlicePanelTemplate"/>
  672.     </Frames>
  673.   </Frame>
  674.  
  675. <!--
  676. *******************************************************************************
  677.    Dialog Border Templates
  678.  
  679.   This family of borders are used when you want your frame to look like a
  680.   dialog.
  681. *******************************************************************************
  682. -->
  683.   <Frame name="DialogBorderNoCenterTemplate" useParentLevel="true" inherits="NineSlicePanelTemplate" virtual="true">
  684.     <KeyValues>
  685.       <KeyValue key="layoutType" value="Dialog" type="string"/>
  686.     </KeyValues>
  687.   </Frame>
  688.  
  689.   <Frame name="DialogBorderTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
  690.     <Layers>
  691.       <Layer level="BACKGROUND" textureSubLevel="-5">
  692.         <!-- TODO: Convert this to atlas -->
  693.         <Texture parentKey="Bg" file="Interface\DialogFrame\UI-DialogBox-Background" horizTile="true" vertTile="true">
  694.           <Anchors>
  695.             <Anchor point="TOPLEFT" x="7" y="-7"/>
  696.             <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
  697.           </Anchors>
  698.         </Texture>
  699.       </Layer>
  700.     </Layers>
  701.   </Frame>
  702.  
  703.   <Frame name="DialogBorderDarkTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
  704.     <Layers>
  705.       <Layer level="BACKGROUND" textureSubLevel="-5">
  706.         <!-- TODO: Convert this to atlas -->
  707.         <Texture parentKey="Bg" file="Interface\DialogFrame\UI-DialogBox-Background-Dark" horizTile="true" vertTile="true">
  708.           <Anchors>
  709.             <Anchor point="TOPLEFT" x="7" y="-7"/>
  710.             <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
  711.           </Anchors>
  712.         </Texture>
  713.       </Layer>
  714.     </Layers>
  715.   </Frame>
  716.  
  717.   <Frame name="DialogBorderTranslucentTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
  718.     <Layers>
  719.       <Layer level="BACKGROUND" textureSubLevel="-5">
  720.         <Texture parentKey="Bg">
  721.           <Anchors>
  722.             <Anchor point="TOPLEFT" x="7" y="-7"/>
  723.             <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
  724.           </Anchors>
  725.           <Color r="0" g="0" b="0" a="0.8"/>
  726.         </Texture>
  727.       </Layer>
  728.     </Layers>
  729.   </Frame>
  730.  
  731.   <Frame name="DialogBorderOpaqueTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
  732.     <Layers>
  733.       <Layer level="BACKGROUND" textureSubLevel="-5">
  734.         <Texture parentKey="Bg">
  735.           <Anchors>
  736.             <Anchor point="TOPLEFT" x="7" y="-7"/>
  737.             <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
  738.           </Anchors>
  739.           <Color r="0" g="0" b="0" a="1"/>
  740.         </Texture>
  741.       </Layer>
  742.     </Layers>
  743.   </Frame>
  744.  
  745. <!--
  746. *******************************************************************************
  747.   Dialog Header Template
  748.  
  749.   Header used for dialogs
  750. *******************************************************************************
  751. -->
  752.   <Frame name="DialogHeaderTemplate" mixin="DialogHeaderMixin" virtual="true">
  753.     <Size x="200" y="39"/>
  754.     <KeyValues>
  755.       <!-- Override this to change how much padding is on the left & right of the text. Padding is applied evenly on the left and right (headerTextPadding / 2) on each side -->
  756.       <KeyValue key="headerTextPadding" value="64" type="number"/>
  757.  
  758.       <!--Optional: Add this to inheriting frames in order to auotmatically set the text when the header loads-->
  759.       <!--<KeyValue key="textString" value="MAINMENU_BUTTON" type="global"/>-->
  760.     </KeyValues>
  761.     <Anchors>
  762.       <Anchor point="TOP" y="11" />
  763.     </Anchors>
  764.     <Layers>
  765.       <Layer level="ARTWORK">
  766.         <Texture parentKey="LeftBG" atlas="UI-Frame-DiamondMetal-Header-CornerLeft" texelSnappingBias="0.0" snapToPixelGrid="false">
  767.           <Size x="32" y="39"/>
  768.           <Anchors>
  769.             <Anchor point="LEFT"/>
  770.           </Anchors>
  771.         </Texture>
  772.         <Texture parentKey="RightBG" atlas="UI-Frame-DiamondMetal-Header-CornerRight" texelSnappingBias="0.0" snapToPixelGrid="false">
  773.           <Size x="32" y="39"/>
  774.           <Anchors>
  775.             <Anchor point="RIGHT"/>
  776.           </Anchors>
  777.         </Texture>
  778.         <Texture parentKey="CenterBG" atlas="_UI-Frame-DiamondMetal-Header-Tile" horizTile="true" texelSnappingBias="0.0" snapToPixelGrid="false">
  779.           <Anchors>
  780.             <Anchor point="TOPLEFT" relativeKey="$parent.LeftBG" relativePoint="TOPRIGHT"/>
  781.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightBG" relativePoint="BOTTOMLEFT"/>
  782.           </Anchors>
  783.         </Texture>
  784.         <FontString parentKey="Text" inherits="GameFontNormal">
  785.           <Anchors>
  786.             <Anchor point="TOP" y="-13"/>
  787.           </Anchors>
  788.         </FontString>
  789.       </Layer>
  790.     </Layers>
  791.     <Scripts>
  792.       <OnLoad method="OnLoad"/>
  793.     </Scripts>
  794.   </Frame>
  795.  
  796. <!--
  797. *******************************************************************************
  798.   Simple Panel templates
  799.   Barebones panel templates that can have space for a button bar at the bottom
  800.   and an inset for content, the inset defaults to being vertically centered
  801.   with sufficient padding for a bottom row of buttons
  802. *******************************************************************************
  803. -->
  804.   <Frame name="SimplePanelTemplate" virtual="true">
  805.     <KeyValues>
  806.       <KeyValue key="layoutType" value="SimplePanelTemplate" type="string"/>
  807.     </KeyValues>
  808.     <Size x="338" y="424"/>
  809.     <Layers>
  810.       <Layer level="BACKGROUND" textureSubLevel="-6">
  811.         <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
  812.           <Anchors>
  813.             <Anchor point="TOPLEFT" x="0" y="-6"/>
  814.             <Anchor point="BOTTOMRIGHT" x="-2" y="3"/>
  815.           </Anchors>
  816.         </Texture>
  817.       </Layer>
  818.     </Layers>
  819.     <Frames>
  820.       <Frame parentKey="Inset" inherits="InsetFrameTemplate">
  821.         <Anchors>
  822.           <Anchor point="TOPLEFT" x="4" y="-26"/>
  823.           <Anchor point="BOTTOMRIGHT" x="-6" y="26"/>
  824.         </Anchors>
  825.       </Frame>
  826.       <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
  827.     </Frames>
  828.   </Frame>
  829.  
  830. <!--
  831. *******************************************************************************
  832.    Default Panel templates
  833.   This is a standard empty frame with a title.
  834.   It makes its own nine-slice border.
  835. *******************************************************************************
  836. -->
  837.   <Frame name="DefaultPanelTemplate" virtual="true">
  838.     <KeyValues>
  839.       <KeyValue key="layoutType" value="ButtonFrameTemplateNoPortrait" type="string"/>
  840.     </KeyValues>
  841.     <Size x="338" y="424"/>
  842.     <Layers>
  843.       <Layer level="BACKGROUND" textureSubLevel="-6">
  844.         <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
  845.           <Anchors>
  846.             <Anchor point="TOPLEFT" x="2" y="-21"/>
  847.             <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  848.           </Anchors>
  849.         </Texture>
  850.         <Texture name="$parentTitleBg" parentKey="TitleBg" inherits="_UI-Frame-TitleTileBg">
  851.           <Anchors>
  852.             <Anchor point="TOPLEFT" x="2" y="-2"/>
  853.             <Anchor point="TOPRIGHT" x="-25" y="-2"/>
  854.           </Anchors>
  855.         </Texture>
  856.       </Layer>
  857.       <Layer level="BACKGROUND" textureSubLevel="-5">
  858.         <Texture name="$parentTopTileStreaks" parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
  859.           <Anchors>
  860.             <Anchor point="TOPLEFT" x="0" y="-21"/>
  861.             <Anchor point="TOPRIGHT" x="-2" y="-21"/>
  862.           </Anchors>
  863.         </Texture>
  864.       </Layer>
  865.       <Layer level="OVERLAY">
  866.         <FontString name="$parentTitleText" inherits="GameFontNormal" parentKey="TitleText" wordwrap="false">
  867.           <Anchors>
  868.             <Anchor point="TOPLEFT" x="25"/>
  869.             <Anchor point="TOPRIGHT" x="-25"/>
  870.           </Anchors>
  871.         </FontString>
  872.       </Layer>
  873.     </Layers>
  874.     <Frames>
  875.       <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
  876.     </Frames>
  877.   </Frame>
  878.  
  879. <!--
  880. *******************************************************************************
  881.    PortraitFrameTemplate
  882.   This is an empty frame with space for a portrait/icon in the top left corner.
  883. *******************************************************************************
  884. -->
  885.   <Frame name="PortraitFrameTemplateNoCloseButton" mixin="PortraitFrameMixin" virtual="true">
  886.     <KeyValues>
  887.       <KeyValue key="layoutType" value="PortraitFrameTemplate" type="string"/>
  888.     </KeyValues>
  889.     <Size x="338" y="424"/>
  890.     <Layers>
  891.       <Layer level="BACKGROUND" textureSubLevel="-6">
  892.         <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
  893.           <Anchors>
  894.             <Anchor point="TOPLEFT" x="2" y="-21"/>
  895.             <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  896.           </Anchors>
  897.         </Texture>
  898.         <Texture parentKey="TitleBg" inherits="_UI-Frame-TitleTileBg">
  899.           <Anchors>
  900.             <Anchor point="TOPLEFT" x="2" y="-3"/>
  901.             <Anchor point="TOPRIGHT" x="-25" y="-3"/>
  902.           </Anchors>
  903.         </Texture>
  904.       </Layer>
  905.       <Layer level="OVERLAY" textureSubLevel="-1">
  906.         <Texture name="$parentPortrait" parentKey="portrait">
  907.           <Size x="61" y="61"/>
  908.           <Anchors>
  909.             <Anchor point="TOPLEFT" x="-6" y="8" />
  910.           </Anchors>
  911.         </Texture>
  912.       </Layer>
  913.       <Layer level="OVERLAY">
  914.         <FontString name="$parentTitleText" inherits="GameFontNormal" text="" parentKey="TitleText" wordwrap="false">
  915.           <Anchors>
  916.             <Anchor point="TOP" x="0" y="-5"/>
  917.             <Anchor point="LEFT" x="60"/>
  918.             <Anchor point="RIGHT" x="-60"/>
  919.           </Anchors>
  920.         </FontString>
  921.       </Layer>
  922.       <Layer level="BORDER">
  923.         <Texture parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
  924.           <Anchors>
  925.             <Anchor point="TOPLEFT" x="0" y="-21"/>
  926.             <Anchor point="TOPRIGHT" x="-2" y="-21"/>
  927.           </Anchors>
  928.         </Texture>
  929.       </Layer>
  930.     </Layers>
  931.     <Frames>
  932.       <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
  933.     </Frames>
  934.   </Frame>
  935.  
  936.   <Frame name="PortraitFrameTemplate" inherits="PortraitFrameTemplateNoCloseButton" virtual="true">
  937.     <Frames>
  938.       <Button name="$parentCloseButton" parentKey="CloseButton" inherits="UIPanelCloseButton">
  939.         <Anchors>
  940.           <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="5.6" y="5"/>
  941.         </Anchors>
  942.       </Button>
  943.     </Frames>
  944.   </Frame>
  945.  
  946.   <Frame name="PortraitFrameTemplateMinimizable" inherits="PortraitFrameTemplate" virtual="true">
  947.     <KeyValues>
  948.       <KeyValue key="layoutType" value="PortraitFrameTemplateMinimizable" type="string"/>
  949.     </KeyValues>
  950.   </Frame>
  951.  
  952. <!--
  953. *******************************************************************************
  954.    ButtonFrameTemplate
  955.   This is a Portrait Frame that also has space for buttons along the bottom
  956.   edge, and includes an inset content area.
  957.  
  958.   Show/hide the Button bar using:
  959.   ButtonFrameTemplate_HideButtonBar(self)
  960.   ButtonFrameTemplate_ShowButtonBar(self)
  961. *******************************************************************************
  962. -->
  963.   <Frame name="ButtonFrameTemplate" inherits="PortraitFrameTemplate" virtual="true">
  964.     <Frames>
  965.       <Frame name="$parentInset" parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
  966.         <Anchors>
  967.           <Anchor point="TOPLEFT" x="4" y="-60" />
  968.           <Anchor point="BOTTOMRIGHT" x="-6" y="26" />
  969.         </Anchors>
  970.       </Frame>
  971.     </Frames>
  972.   </Frame>
  973. <!--
  974. *******************************************************************************
  975.    ButtonFrameTemplateMinimizable
  976.   This is a Button Frame that is minimizable
  977.  
  978.   Show/hide the Button bar using:
  979.   ButtonFrameTemplate_HideButtonBar(self)
  980.   ButtonFrameTemplate_ShowButtonBar(self)
  981. *******************************************************************************
  982. -->
  983.   <Frame name="ButtonFrameTemplateMinimizable" inherits="ButtonFrameTemplate" virtual="true">
  984.     <KeyValues>
  985.       <KeyValue key="layoutType" value="PortraitFrameTemplateMinimizable" type="string"/>
  986.     </KeyValues>
  987.   </Frame>
  988.  
  989.   <!--
  990. *******************************************************************************
  991.    MagicButtonTemplate
  992.   This is a template for buttons that can be used with ButtonFrameTemplate.
  993.   Anchor either bottom corner to a ButtonFrameTemplate, or anchor either top
  994.   corner to another MagicButton.  The buttons will automatically be positioned
  995.   correctly and will be given the correct border art.
  996.  
  997.   NOTE: If you override the OnLoad script for a Magic Button, make sure to call
  998.   "MagicButton_OnLoad" from within your script, or call inherited OnLoad script.
  999. *******************************************************************************
  1000. -->
  1001.   <Button name="MagicButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true">
  1002.     <Size x="80" y="22"/>
  1003.     <Scripts>
  1004.       <OnLoad function="MagicButton_OnLoad" />
  1005.     </Scripts>
  1006.   </Button>
  1007.  
  1008. <!--
  1009. *******************************************************************************
  1010.    Tooltip bordered frame
  1011. *******************************************************************************
  1012. -->
  1013.   <Frame name="TooltipBorderedFrameTemplate" virtual="true">
  1014.     <Layers>
  1015.       <Layer level="BACKGROUND">
  1016.         <Texture parentKey="BorderTopLeft" file="Interface\Tooltips\UI-Tooltip-TL">
  1017.           <Size x="8" y="8"/>
  1018.           <Anchors>
  1019.             <Anchor point="TOPLEFT"/>
  1020.           </Anchors>
  1021.         </Texture>
  1022.         <Texture parentKey="BorderTopRight" file="Interface\Tooltips\UI-Tooltip-TR">
  1023.           <Size x="8" y="8"/>
  1024.           <Anchors>
  1025.             <Anchor point="TOPRIGHT"/>
  1026.           </Anchors>
  1027.         </Texture>
  1028.         <Texture parentKey="BorderBottomRight" file="Interface\Tooltips\UI-Tooltip-BR">
  1029.           <Size x="8" y="8"/>
  1030.           <Anchors>
  1031.             <Anchor point="BOTTOMRIGHT"/>
  1032.           </Anchors>
  1033.         </Texture>
  1034.         <Texture parentKey="BorderBottomLeft" file="Interface\Tooltips\UI-Tooltip-BL">
  1035.           <Size x="8" y="8"/>
  1036.           <Anchors>
  1037.             <Anchor point="BOTTOMLEFT"/>
  1038.           </Anchors>
  1039.         </Texture>
  1040.         <Texture parentKey="BorderTop" file="Interface\Tooltips\UI-Tooltip-T">
  1041.           <Size x="8" y="8"/>
  1042.           <Anchors>
  1043.             <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="TOPRIGHT"/>
  1044.             <Anchor point="TOPRIGHT" relativeKey="$parent.BorderTopRight" relativePoint="TOPLEFT"/>
  1045.           </Anchors>
  1046.         </Texture>
  1047.         <Texture parentKey="BorderRight" file="Interface\Tooltips\UI-Tooltip-R">
  1048.           <Size x="8" y="8"/>
  1049.           <Anchors>
  1050.             <Anchor point="TOPRIGHT" relativeKey="$parent.BorderTopRight" relativePoint="BOTTOMRIGHT"/>
  1051.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="TOPRIGHT"/>
  1052.           </Anchors>
  1053.         </Texture>
  1054.         <Texture parentKey="BorderBottom" file="Interface\Tooltips\UI-Tooltip-B">
  1055.           <Size x="8" y="8"/>
  1056.           <Anchors>
  1057.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderBottomLeft" relativePoint="BOTTOMRIGHT"/>
  1058.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="BOTTOMLEFT"/>
  1059.           </Anchors>
  1060.         </Texture>
  1061.         <Texture parentKey="BorderLeft" file="Interface\Tooltips\UI-Tooltip-L">
  1062.           <Size x="8" y="8"/>
  1063.           <Anchors>
  1064.             <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="BOTTOMLEFT"/>
  1065.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderBottomLeft" relativePoint="TOPLEFT"/>
  1066.           </Anchors>
  1067.         </Texture>
  1068.         <Texture parentKey="Background">
  1069.           <Anchors>
  1070.             <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="BOTTOMRIGHT"/>
  1071.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="TOPLEFT"/>
  1072.           </Anchors>
  1073.           <Color r="0" g="0" b="0" a="0.8"/>
  1074.         </Texture>
  1075.       </Layer>
  1076.     </Layers>
  1077.   </Frame>
  1078.  
  1079.   <Texture name="GreenCheckMarkTemplate" file="Interface\Scenarios\ScenarioIcon-Check" virtual="true">
  1080.     <Size x="16" y="16"/>
  1081.   </Texture>
  1082.   <Texture name="UIPanelButtonUpTexture" file="Interface\Buttons\UI-Panel-Button-Up" virtual="true">
  1083.     <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
  1084.   </Texture>
  1085.   <Texture name="UIPanelButtonDownTexture" file="Interface\Buttons\UI-Panel-Button-Down" virtual="true">
  1086.     <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
  1087.   </Texture>
  1088.   <Texture name="UIPanelButtonDisabledTexture" file="Interface\Buttons\UI-Panel-Button-Disabled" virtual="true">
  1089.     <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
  1090.   </Texture>
  1091.   <Texture name="UIPanelButtonDisabledDownTexture" file="Interface\Buttons\UI-Panel-Button-Disabled-Down" virtual="true">
  1092.     <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
  1093.   </Texture>
  1094.   <Button name="UIMenuButtonStretchTemplate" mixin="UIMenuButtonStretchMixin" virtual="true">
  1095.     <Size x="40" y="26"/>
  1096.     <Layers>
  1097.       <Layer level="BACKGROUND">
  1098.         <Texture parentKey="TopLeft" name="$parentTopLeft" file="Interface\Buttons\UI-Silver-Button-Up">
  1099.           <Size x="12" y="6"/>
  1100.           <Anchors>
  1101.             <Anchor point="TOPLEFT"/>
  1102.           </Anchors>
  1103.           <TexCoords left="0" right="0.09375" top="0" bottom="0.1875"/>
  1104.         </Texture>
  1105.         <Texture parentKey="TopRight" name="$parentTopRight" file="Interface\Buttons\UI-Silver-Button-Up">
  1106.           <Size x="12" y="6"/>
  1107.           <Anchors>
  1108.             <Anchor point="TOPRIGHT"/>
  1109.           </Anchors>
  1110.           <TexCoords left="0.53125" right="0.625" top="0" bottom="0.1875"/>
  1111.         </Texture>
  1112.         <Texture parentKey="BottomLeft" name="$parentBottomLeft" file="Interface\Buttons\UI-Silver-Button-Up">
  1113.           <Size x="12" y="6"/>
  1114.           <Anchors>
  1115.             <Anchor point="BOTTOMLEFT"/>
  1116.           </Anchors>
  1117.           <TexCoords left="0" right="0.09375" top="0.625" bottom="0.8125"/>
  1118.         </Texture>
  1119.         <Texture parentKey="BottomRight" name="$parentBottomRight" file="Interface\Buttons\UI-Silver-Button-Up">
  1120.           <Size x="12" y="6"/>
  1121.           <Anchors>
  1122.             <Anchor point="BOTTOMRIGHT"/>
  1123.           </Anchors>
  1124.           <TexCoords left="0.53125" right="0.625" top="0.625" bottom="0.8125"/>
  1125.         </Texture>
  1126.         <Texture parentKey="TopMiddle" name="$parentTopMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
  1127.           <Size x="56" y="6"/>
  1128.           <Anchors>
  1129.             <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
  1130.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
  1131.           </Anchors>
  1132.           <TexCoords left="0.09375" right="0.53125" top="0" bottom="0.1875"/>
  1133.         </Texture>
  1134.         <Texture parentKey="MiddleLeft" name="$parentMiddleLeft" file="Interface\Buttons\UI-Silver-Button-Up">
  1135.           <Size x="12" y="14"/>
  1136.           <Anchors>
  1137.             <Anchor point="TOPRIGHT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMRIGHT"/>
  1138.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPLEFT"/>
  1139.           </Anchors>
  1140.           <TexCoords left="0" right="0.09375" top="0.1875" bottom="0.625"/>
  1141.         </Texture>
  1142.         <Texture parentKey="MiddleRight" name="$parentMiddleRight" file="Interface\Buttons\UI-Silver-Button-Up">
  1143.           <Size x="12" y="14"/>
  1144.           <Anchors>
  1145.             <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMRIGHT"/>
  1146.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomRight" relativePoint="TOPLEFT"/>
  1147.           </Anchors>
  1148.           <TexCoords left="0.53125" right="0.625" top="0.1875" bottom="0.625"/>
  1149.         </Texture>
  1150.         <Texture parentKey="BottomMiddle" name="$parentBottomMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
  1151.           <Size x="56" y="6"/>
  1152.           <Anchors>
  1153.             <Anchor point="TOPLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
  1154.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
  1155.           </Anchors>
  1156.           <TexCoords left="0.09375" right="0.53125" top="0.625" bottom="0.8125"/>
  1157.         </Texture>
  1158.         <Texture parentKey="MiddleMiddle" name="$parentMiddleMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
  1159.           <Size x="56" y="14"/>
  1160.           <Anchors>
  1161.             <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMRIGHT"/>
  1162.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPLEFT"/>
  1163.           </Anchors>
  1164.           <TexCoords left="0.09375" right="0.53125" top="0.1875" bottom="0.625"/>
  1165.         </Texture>
  1166.       </Layer>
  1167.     </Layers>
  1168.     <Scripts>
  1169.       <OnMouseDown method="OnMouseDown"/>
  1170.       <OnMouseUp method="OnMouseUp"/>
  1171.       <OnShow method="OnShow"/>
  1172.       <OnEnable method="OnEnable"/>
  1173.       <OnEnter method="OnEnter"/>
  1174.       <OnLeave method="OnLeave"/>
  1175.     </Scripts>
  1176.     <ButtonText parentKey="Text" name="$parentText">
  1177.       <Anchors>
  1178.         <Anchor point="CENTER" x="0" y="-1"/>
  1179.       </Anchors>
  1180.     </ButtonText>
  1181.     <NormalFont style="GameFontHighlightSmall"/>
  1182.     <HighlightFont style="GameFontHighlightSmall"/>
  1183.     <DisabledFont style="GameFontDisableSmall"/>
  1184.     <HighlightTexture file="Interface\Buttons\UI-Silver-Button-Highlight" alphaMode="ADD">
  1185.       <TexCoords left="0" right="1.0" top="0.03" bottom="0.7175"/>
  1186.     </HighlightTexture>
  1187.   </Button>
  1188.   <Button name="UIGoldBorderButtonTemplate" virtual="true">
  1189.     <Size x="105" y="22"/>
  1190.     <Anchors>
  1191.       <Anchor point="BOTTOM" relativeTo="$parentDetails" x="0" y="5"/>
  1192.     </Anchors>
  1193.     <Layers>
  1194.       <Layer level="BACKGROUND">
  1195.         <Texture file="Interface\Common\dark-goldframe-button" >
  1196.           <Anchors>
  1197.             <Anchor point="TOPLEFT" x="0" y="2"/>
  1198.             <Anchor point="BOTTOMRIGHT" x="0" y="-2"/>
  1199.           </Anchors>
  1200.         </Texture>
  1201.       </Layer>
  1202.     </Layers>
  1203.     <Scripts>
  1204.       <OnLoad function="RaiseFrameLevel"/>
  1205.     </Scripts>
  1206.     <NormalFont style="GameFontNormal"/>
  1207.     <HighlightFont style="GameFontHighlight"/>
  1208.     <DisabledFont style="GameFontDisable"/>
  1209.     <PushedTexture file="Interface\Common\dark-goldframe-button-pressed"/>
  1210.     <HighlightTexture file="Interface\Buttons\UI-Silver-Button-Highlight" alphaMode="ADD">
  1211.       <TexCoords left="0" right="1.0" top="0.03" bottom="0.7175"/>
  1212.     </HighlightTexture>
  1213.   </Button>
  1214.   <Button name="UIPanelButtonGrayTemplate" virtual="true">
  1215.     <NormalFont style="GameFontHighlight"/>
  1216.     <HighlightFont style="GameFontHighlight"/>
  1217.     <DisabledFont style="GameFontDisable"/>
  1218.     <NormalTexture inherits="UIPanelButtonDisabledTexture"/>
  1219.     <PushedTexture inherits="UIPanelButtonDisabledDownTexture"/>
  1220.     <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
  1221.     <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
  1222.   </Button>
  1223.  
  1224.   <Slider name="HorizontalSliderTemplate" orientation="HORIZONTAL" enableMouse="true" virtual="true" inherits="BackdropTemplate">
  1225.     <HitRectInsets>
  1226.       <AbsInset left="0" right="0" top="-10" bottom="-10"/>
  1227.     </HitRectInsets>
  1228.     <KeyValues>
  1229.       <KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
  1230.     </KeyValues>
  1231.     <ThumbTexture parentKey="Thumb" name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
  1232.       <Size x="32" y="32"/>
  1233.     </ThumbTexture>
  1234.   </Slider>
  1235.  
  1236.   <Slider name="UIPanelStretchableArtScrollBarTemplate" inherits="UIPanelScrollBarTemplate" virtual="true">
  1237.     <Size x="20" y="0" />
  1238.     <Anchors>
  1239.       <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="6" y="-17"/>
  1240.       <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="17"/>
  1241.     </Anchors>
  1242.     <Layers>
  1243.       <Layer level="ARTWORK">
  1244.         <Texture parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1245.           <Size x="24" y="48"/>
  1246.           <Anchors>
  1247.             <Anchor point="TOPLEFT" x="-3" y="18"/>
  1248.           </Anchors>
  1249.           <TexCoords left="0" right="0.45" top="0" bottom=".20"/>
  1250.         </Texture>
  1251.         <Texture parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1252.           <Size x="24" y="64"/>
  1253.           <Anchors>
  1254.             <Anchor point="BOTTOMLEFT" x="-3" y="-16"/>
  1255.           </Anchors>
  1256.           <TexCoords left="0.515625" right="0.97" top="0.1440625" bottom="0.4140625"/>
  1257.         </Texture>
  1258.         <Texture parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1259.           <Anchors>
  1260.             <Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT"/>
  1261.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" relativePoint="TOPRIGHT"/>
  1262.           </Anchors>
  1263.           <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
  1264.         </Texture>
  1265.       </Layer>
  1266.       <Layer level="ARTWORK" textureSubLevel="-1">
  1267.         <Texture parentKey="Background">
  1268.           <Anchors>
  1269.             <Anchor point="TOPLEFT" relativeKey="$parent.Top" x="3" />
  1270.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" x="-3"/>
  1271.           </Anchors>
  1272.           <Color r="0" g="0" b="0" a="1"/>
  1273.         </Texture>
  1274.       </Layer>
  1275.     </Layers>
  1276.   </Slider>
  1277.   <Slider name="UIPanelScrollBarTrimTemplate" virtual="true">
  1278.     <Size x="20" y="0"/>
  1279.     <Layers>
  1280.       <Layer level="BACKGROUND">
  1281.         <Texture name="$parentBG" setAllPoints="true" hidden="true">
  1282.           <Color r="0" g="0" b="0" a=".85"/>
  1283.         </Texture>
  1284.       </Layer>
  1285.       <Layer level="ARTWORK">
  1286.         <Texture name="$parentTop" parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1287.           <Size x="24" y="48"/>
  1288.           <Anchors>
  1289.             <Anchor point="TOPLEFT" x="-4" y="17"/>
  1290.           </Anchors>
  1291.           <TexCoords left="0" right="0.45" top="0" bottom=".20"/>
  1292.         </Texture>
  1293.         <Texture name="$parentBottom" parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1294.           <Size x="24" y="64"/>
  1295.           <Anchors>
  1296.             <Anchor point="BOTTOMLEFT" x="-4" y="-15"/>
  1297.           </Anchors>
  1298.           <TexCoords left="0.515625" right="0.97" top="0.1440625" bottom="0.4140625"/>
  1299.         </Texture>
  1300.         <Texture name="$parentMiddle" parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1301.           <Anchors>
  1302.             <Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
  1303.             <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
  1304.           </Anchors>
  1305.           <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
  1306.         </Texture>
  1307.       </Layer>
  1308.     </Layers>
  1309.     <Frames>
  1310.       <Button name="$parentScrollUpButton" parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
  1311.         <Anchors>
  1312.           <Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-2"/>
  1313.         </Anchors>
  1314.         <Scripts>
  1315.           <OnClick>
  1316.             local parent = self:GetParent();
  1317.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1318.             parent:SetValue(parent:GetValue() - scrollStep);
  1319.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1320.           </OnClick>
  1321.         </Scripts>
  1322.       </Button>
  1323.       <Button name="$parentScrollDownButton" parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
  1324.         <Anchors>
  1325.           <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="2"/>
  1326.         </Anchors>
  1327.         <Scripts>
  1328.           <OnClick>
  1329.             local parent = self:GetParent();
  1330.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1331.             parent:SetValue(parent:GetValue() + scrollStep);
  1332.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1333.           </OnClick>
  1334.         </Scripts>
  1335.       </Button>
  1336.     </Frames>
  1337.     <Scripts>
  1338.       <OnValueChanged>
  1339.         self:GetParent():SetVerticalScroll(value);
  1340.       </OnValueChanged>
  1341.     </Scripts>
  1342.     <ThumbTexture name="$parentThumbTexture" parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
  1343.       <Size x="18" y="24"/>
  1344.       <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
  1345.     </ThumbTexture>
  1346.   </Slider>
  1347.   <Slider name="UIPanelScrollBarTemplateLightBorder" virtual="true">
  1348.     <Size x="16" y="0"/>
  1349.     <Frames>
  1350.       <Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
  1351.         <Anchors>
  1352.           <Anchor point="BOTTOM" relativePoint="TOP"/>
  1353.         </Anchors>
  1354.         <Scripts>
  1355.           <OnClick>
  1356.             local parent = self:GetParent();
  1357.             parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
  1358.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1359.           </OnClick>
  1360.         </Scripts>
  1361.       </Button>
  1362.       <Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
  1363.         <Anchors>
  1364.           <Anchor point="TOP" relativePoint="BOTTOM"/>
  1365.         </Anchors>
  1366.         <Scripts>
  1367.           <OnClick>
  1368.             local parent = self:GetParent();
  1369.             parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
  1370.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1371.           </OnClick>
  1372.         </Scripts>
  1373.       </Button>
  1374.       <Frame name="$parentBorder" inherits="TooltipBorderBackdropTemplate">
  1375.         <Size x="24" y="0"/>
  1376.         <Anchors>
  1377.           <Anchor point="TOPLEFT" relativeTo="$parentScrollUpButton" x="-5" y="5"/>
  1378.           <Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollDownButton" x="5" y="-3"/>
  1379.         </Anchors>
  1380.         <KeyValues>
  1381.           <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
  1382.         </KeyValues>
  1383.       </Frame>
  1384.     </Frames>
  1385.     <Scripts>
  1386.       <OnValueChanged>
  1387.         self:GetParent():SetVerticalScroll(value);
  1388.       </OnValueChanged>
  1389.     </Scripts>
  1390.     <ThumbTexture name="$parentThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
  1391.       <Size x="16" y="24"/>
  1392.       <TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875"/>
  1393.     </ThumbTexture>
  1394.   </Slider>
  1395.   <Slider name="MinimalScrollBarTemplate" virtual="true">
  1396.     <Size>
  1397.       <AbsDimension x="22" y="0"/>
  1398.     </Size>
  1399.     <Layers>
  1400.       <Layer level="BACKGROUND">
  1401.         <Texture name="$parentTrack" parentKey="trackBG">
  1402.           <Anchors>
  1403.             <Anchor point="TOPLEFT" x="0" y="17"/>
  1404.             <Anchor point="BOTTOMRIGHT" x="0" y="-17"/>
  1405.           </Anchors>
  1406.           <Color r="0" g="0" b="0" a="1"/>
  1407.         </Texture>
  1408.       </Layer>
  1409.     </Layers>
  1410.     <Frames>
  1411.       <Button name="$parentScrollUpButton" parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
  1412.         <Anchors>
  1413.           <Anchor point="TOP" x="0" y="15"/>
  1414.         </Anchors>
  1415.         <Scripts>
  1416.           <OnClick>
  1417.             local parent = self:GetParent();
  1418.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1419.             parent:SetValue(parent:GetValue() - scrollStep);
  1420.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1421.           </OnClick>
  1422.         </Scripts>
  1423.       </Button>
  1424.       <Button name="$parentScrollDownButton" parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
  1425.         <Anchors>
  1426.           <Anchor point="BOTTOM" x="0" y="-15"/>
  1427.         </Anchors>
  1428.         <Scripts>
  1429.           <OnClick>
  1430.             local parent = self:GetParent();
  1431.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1432.             parent:SetValue(parent:GetValue() + scrollStep);
  1433.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1434.           </OnClick>
  1435.         </Scripts>
  1436.       </Button>
  1437.     </Frames>
  1438.     <Scripts>
  1439.       <OnValueChanged>
  1440.         self:GetParent():SetVerticalScroll(value);
  1441.       </OnValueChanged>
  1442.     </Scripts>
  1443.     <ThumbTexture name="$parentThumbTexture" parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
  1444.       <Size x="18" y="24"/>
  1445.       <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
  1446.     </ThumbTexture>
  1447.   </Slider>
  1448.   <Slider name="MinimalScrollBarWithBorderTemplate" virtual="true">
  1449.     <Size x="22" y="0"/>
  1450.     <Layers>
  1451.       <Layer level="BACKGROUND">
  1452.         <Texture parentKey="Track">
  1453.           <Anchors>
  1454.             <Anchor point="TOPLEFT" x="0" y="17"/>
  1455.             <Anchor point="BOTTOMRIGHT" x="0" y="-17"/>
  1456.           </Anchors>
  1457.           <Color r="0" g="0" b="0" a="1"/>
  1458.         </Texture>
  1459.       </Layer>
  1460.     </Layers>
  1461.     <Frames>
  1462.       <Button parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
  1463.         <Anchors>
  1464.           <Anchor point="TOP" x="0" y="15"/>
  1465.         </Anchors>
  1466.         <Scripts>
  1467.           <OnClick>
  1468.             local parent = self:GetParent();
  1469.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1470.             parent:SetValue(parent:GetValue() - scrollStep);
  1471.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1472.           </OnClick>
  1473.         </Scripts>
  1474.       </Button>
  1475.       <Button parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
  1476.         <Anchors>
  1477.           <Anchor point="BOTTOM" x="0" y="-15"/>
  1478.         </Anchors>
  1479.         <Scripts>
  1480.           <OnClick>
  1481.             local parent = self:GetParent();
  1482.             local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
  1483.             parent:SetValue(parent:GetValue() + scrollStep);
  1484.             PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  1485.           </OnClick>
  1486.         </Scripts>
  1487.       </Button>
  1488.       <Frame parentKey="ScrollUpBorder" inherits="TooltipBorderBackdropTemplate">
  1489.         <Size x="24" y="0"/>
  1490.         <Anchors>
  1491.           <Anchor point="TOPLEFT" relativeKey="$parent.ScrollUpButton" x="-5" y="5"/>
  1492.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollUpButton" x="5" y="-3"/>
  1493.         </Anchors>
  1494.         <KeyValues>
  1495.           <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
  1496.         </KeyValues>
  1497.       </Frame>
  1498.       <Frame parentKey="ScrollDownBorder" inherits="TooltipBorderBackdropTemplate">
  1499.         <Size x="24" y="0"/>
  1500.         <Anchors>
  1501.           <Anchor point="TOPLEFT" relativeKey="$parent.ScrollDownButton" x="-5" y="5"/>
  1502.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollDownButton" x="5" y="-3"/>
  1503.         </Anchors>
  1504.         <KeyValues>
  1505.           <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
  1506.         </KeyValues>
  1507.       </Frame>
  1508.       <Frame parentKey="Border" inherits="TooltipBorderBackdropTemplate">
  1509.         <Size x="24" y="0"/>
  1510.         <Anchors>
  1511.           <Anchor point="TOPLEFT" relativeKey="$parent.ScrollUpButton" x="-5" y="5"/>
  1512.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollDownButton" x="5" y="-3"/>
  1513.         </Anchors>
  1514.         <KeyValues>
  1515.           <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
  1516.         </KeyValues>
  1517.       </Frame>
  1518.     </Frames>
  1519.     <Scripts>
  1520.       <OnValueChanged>
  1521.         self:GetParent():SetVerticalScroll(value);
  1522.       </OnValueChanged>
  1523.     </Scripts>
  1524.     <ThumbTexture parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
  1525.       <Size x="18" y="24"/>
  1526.       <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
  1527.     </ThumbTexture>
  1528.   </Slider>
  1529.   <ScrollFrame name="UIPanelScrollFrameTemplate2" inherits="UIPanelScrollFrameTemplate" virtual="true">
  1530.     <Layers>
  1531.       <Layer level="ARTWORK">
  1532.         <Texture name="$parentTop" parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1533.           <Size x="31" y="256"/>
  1534.           <Anchors>
  1535.             <Anchor point="TOPLEFT" relativeTo="$parentScrollBarScrollUpButton" relativePoint="TOPLEFT" x="-8" y="5"/>
  1536.           </Anchors>
  1537.           <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
  1538.         </Texture>
  1539.         <Texture name="$parentBottom" parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1540.           <Size x="31" y="106"/>
  1541.           <Anchors>
  1542.             <Anchor point="BOTTOMLEFT" relativeTo="$parentScrollBarScrollDownButton" relativePoint="BOTTOMLEFT" x="-8" y="-2"/>
  1543.           </Anchors>
  1544.           <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
  1545.         </Texture>
  1546.         <Texture parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1547.           <Anchors>
  1548.             <Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT"/>
  1549.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" relativePoint="TOPRIGHT"/>
  1550.           </Anchors>
  1551.           <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
  1552.         </Texture>
  1553.       </Layer>
  1554.     </Layers>
  1555.   </ScrollFrame>
  1556.   <!-- This is a scrollframe with no border and a black texture for a track -->
  1557.   <ScrollFrame name="MinimalScrollFrameTemplate" inherits="UIPanelScrollFrameCodeTemplate" virtual="true">
  1558.     <Frames>
  1559.       <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
  1560.         <Anchors>
  1561.           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-17"/>
  1562.           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="17"/>
  1563.         </Anchors>
  1564.       </Slider>
  1565.     </Frames>
  1566.   </ScrollFrame>
  1567.  
  1568.   <ScrollFrame name="FauxScrollFrameTemplateLight" virtual="true">
  1569.     <Frames>
  1570.       <Slider name="$parentScrollBar" inherits="UIPanelScrollBarTemplateLightBorder">
  1571.         <Anchors>
  1572.           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="6" y="-16"/>
  1573.           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="16"/>
  1574.         </Anchors>
  1575.       </Slider>
  1576.     </Frames>
  1577.     <Scripts>
  1578.       <OnLoad>
  1579.         ScrollFrame_OnLoad(self);
  1580.       </OnLoad>
  1581.       <OnScrollRangeChanged function=""/>
  1582.       <OnVerticalScroll>
  1583.         local scrollbar = _G[self:GetName().."ScrollBar"];
  1584.         scrollbar:SetValue(offset);
  1585.  
  1586.         local min, max = scrollbar:GetMinMaxValues();
  1587.         if ( offset == 0 ) then
  1588.           _G[scrollbar:GetName().."ScrollUpButton"]:Disable();
  1589.         else
  1590.           _G[scrollbar:GetName().."ScrollUpButton"]:Enable();
  1591.         end
  1592.         if ((scrollbar:GetValue() - max) == 0) then
  1593.           _G[scrollbar:GetName().."ScrollDownButton"]:Disable();
  1594.         else
  1595.           _G[scrollbar:GetName().."ScrollDownButton"]:Enable();
  1596.         end
  1597.       </OnVerticalScroll>
  1598.       <OnMouseWheel>
  1599.         ScrollFrameTemplate_OnMouseWheel(self, delta);
  1600.       </OnMouseWheel>
  1601.     </Scripts>
  1602.     <ScrollChild>
  1603.       <Frame name="$parentScrollChildFrame">
  1604.         <Size x="300" y="334"/>
  1605.       </Frame>
  1606.     </ScrollChild>
  1607.   </ScrollFrame>
  1608.  
  1609.   <EditBox name="NumericInputSpinnerTemplate" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate" mixin="NumericInputSpinnerMixin" virtual="true">
  1610.     <Size x="31" y="20"/>
  1611.     <Layers>
  1612.       <Layer level="BACKGROUND">
  1613.         <Texture parentKey="Left" file="Interface\Common\Common-Input-Border">
  1614.           <Size x="8" y="20"/>
  1615.           <Anchors>
  1616.             <Anchor point="LEFT" x="-5" y="0"/>
  1617.           </Anchors>
  1618.           <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
  1619.         </Texture>
  1620.         <Texture parentKey="Right" file="Interface\Common\Common-Input-Border">
  1621.           <Size x="8" y="20"/>
  1622.           <Anchors>
  1623.             <Anchor point="RIGHT" x="0" y="0"/>
  1624.           </Anchors>
  1625.           <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
  1626.         </Texture>
  1627.         <Texture parentKey="Middle" file="Interface\Common\Common-Input-Border">
  1628.           <Size x="10" y="20"/>
  1629.           <Anchors>
  1630.             <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
  1631.             <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
  1632.           </Anchors>
  1633.           <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
  1634.         </Texture>
  1635.       </Layer>
  1636.     </Layers>
  1637.     <Frames>
  1638.       <Button parentKey="IncrementButton">
  1639.         <Size x="23" y="22"/>
  1640.         <Anchors>
  1641.           <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
  1642.         </Anchors>
  1643.         <Scripts>
  1644.           <OnMouseDown>
  1645.             if self:IsEnabled() then
  1646.               PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  1647.               self:GetParent():StartIncrement();
  1648.             end
  1649.           </OnMouseDown>
  1650.           <OnMouseUp>
  1651.             self:GetParent():EndIncrement();
  1652.           </OnMouseUp>
  1653.         </Scripts>
  1654.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
  1655.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
  1656.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
  1657.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  1658.       </Button>
  1659.  
  1660.       <Button parentKey="DecrementButton">
  1661.         <Size x="23" y="22"/>
  1662.         <Anchors>
  1663.           <Anchor point="RIGHT" relativePoint="LEFT" x="-6" y="0"/>
  1664.         </Anchors>
  1665.         <Scripts>
  1666.           <OnMouseDown>
  1667.             if self:IsEnabled() then
  1668.               PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  1669.               self:GetParent():StartDecrement();
  1670.             end
  1671.           </OnMouseDown>
  1672.           <OnMouseUp>
  1673.             self:GetParent():EndDecrement();
  1674.           </OnMouseUp>
  1675.         </Scripts>
  1676.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
  1677.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
  1678.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
  1679.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  1680.       </Button>
  1681.  
  1682.       <Frame parentKey="MouseWheelCatcher" enableMouse="true" useParentLevel="true">
  1683.         <Anchors>
  1684.           <Anchor point="TOPLEFT" relativeKey="$parent.DecrementButton" />
  1685.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.IncrementButton" />
  1686.         </Anchors>
  1687.         <Scripts>
  1688.           <OnMouseWheel>
  1689.             if self:GetParent():IsEnabled() then
  1690.               local amount = IsShiftKeyDown() and 10 or 1;
  1691.               if delta > 0 then
  1692.                 self:GetParent():Increment(amount);
  1693.               else
  1694.                 self:GetParent():Decrement(amount);
  1695.               end
  1696.               self:GetParent():ClearFocus();
  1697.             end
  1698.           </OnMouseWheel>
  1699.         </Scripts>
  1700.       </Frame>
  1701.     </Frames>
  1702.     <Scripts>
  1703.       <OnEscapePressed function="EditBox_ClearFocus"/>
  1704.       <OnEditFocusLost function="EditBox_ClearHighlight"/>
  1705.       <OnEditFocusGained function="EditBox_HighlightText"/>
  1706.       <OnTextChanged method="OnTextChanged" />
  1707.     </Scripts>
  1708.     <FontString inherits="ChatFontNormal"/>
  1709.   </EditBox>
  1710.   <EditBox name="InputBoxInstructionsTemplate" inherits="InputBoxTemplate" virtual="true">
  1711.     <!--KeyValues>
  1712.       Optional
  1713.       <KeyValue key="disabledColor" value="GRAY_FONT_COLOR" type="global"/>
  1714.       <KeyValue key="enabledColor" value="HIGHLIGHT_FONT_COLOR" type="global"/>
  1715.     </KeyValues-->
  1716.     <Layers>
  1717.       <Layer level="ARTWORK">
  1718.         <FontString parentKey="Instructions" justifyH="LEFT" justifyV="MIDDLE" inherits="GameFontDisableSmall" setAllPoints="true">
  1719.           <Color r="0.35" g="0.35" b="0.35"/>
  1720.         </FontString>
  1721.       </Layer>
  1722.     </Layers>
  1723.     <Scripts>
  1724.       <OnTextChanged function="InputBoxInstructions_OnTextChanged"/>
  1725.       <OnDisable function="InputBoxInstructions_OnDisable"/>
  1726.       <OnEnable function="InputBoxInstructions_OnEnable"/>
  1727.     </Scripts>
  1728.     <FontString inherits="GameFontHighlightSmall"/>
  1729.   </EditBox>
  1730.  
  1731.   <EditBox name="SearchBoxTemplate" inherits="InputBoxInstructionsTemplate" autoFocus="false" virtual="true">
  1732.     <Layers>
  1733.       <Layer level="OVERLAY">
  1734.         <Texture name="$parentSearchIcon" atlas="common-search-magnifyingglass" useAtlasSize="false" parentKey="searchIcon">
  1735.           <Size x="10" y="10"/>
  1736.           <Anchors>
  1737.             <Anchor point="LEFT" x="1" y="-1"/>
  1738.           </Anchors>
  1739.         </Texture>
  1740.       </Layer>
  1741.     </Layers>
  1742.     <Frames>
  1743.       <Button name="$parentClearButton" parentKey="clearButton" hidden="true">
  1744.         <Size x="17" y="17"/>
  1745.         <Anchors>
  1746.           <Anchor point="RIGHT" x="-3" y="0"/>
  1747.         </Anchors>
  1748.         <Layers>
  1749.           <Layer level="ARTWORK">
  1750.             <Texture atlas="common-search-clearbutton" useAtlasSize="false" alpha="0.5" parentKey="texture">
  1751.               <Size>
  1752.                 <AbsDimension x="10" y="10"/>
  1753.               </Size>
  1754.               <Anchors>
  1755.                 <Anchor point="TOPLEFT" x="3" y="-3"/>
  1756.               </Anchors>
  1757.             </Texture>
  1758.           </Layer>
  1759.         </Layers>
  1760.         <Scripts>
  1761.           <OnEnter>
  1762.             self.texture:SetAlpha(1.0);
  1763.           </OnEnter>
  1764.           <OnLeave>
  1765.             self.texture:SetAlpha(0.5);
  1766.           </OnLeave>
  1767.           <OnMouseDown>
  1768.             if self:IsEnabled() then
  1769.               self.texture:SetPoint("TOPLEFT", self, "TOPLEFT", 4, -4);
  1770.             end
  1771.           </OnMouseDown>
  1772.           <OnMouseUp>
  1773.             self.texture:SetPoint("TOPLEFT", self, "TOPLEFT", 3, -3);
  1774.           </OnMouseUp>
  1775.           <OnClick function="SearchBoxTemplateClearButton_OnClick"/>
  1776.         </Scripts>
  1777.       </Button>
  1778.     </Frames>
  1779.     <Scripts>
  1780.       <OnLoad function="SearchBoxTemplate_OnLoad"/>
  1781.       <OnEscapePressed function="EditBox_ClearFocus"/>
  1782.       <OnEnterPressed function="EditBox_ClearFocus"/>
  1783.       <OnEditFocusLost function="SearchBoxTemplate_OnEditFocusLost"/>
  1784.       <OnEditFocusGained function="SearchBoxTemplate_OnEditFocusGained"/>
  1785.       <OnTextChanged function="SearchBoxTemplate_OnTextChanged"/>
  1786.     </Scripts>
  1787.   </EditBox>
  1788.  
  1789.   <Button name="TabButtonTemplate" virtual="true">
  1790.     <Size>
  1791.             <AbsDimension x="115" y="32"/>
  1792.         </Size>
  1793.         <Layers>
  1794.           <Layer level="BACKGROUND">
  1795.             <Texture name="$parentLeftDisabled" parentKey="LeftDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
  1796.               <Size>
  1797.                 <AbsDimension x="16" y="32"/>
  1798.               </Size>
  1799.               <Anchors>
  1800.                 <Anchor point="BOTTOMLEFT">
  1801.                   <Offset>
  1802.                     <AbsDimension x="0" y="-3"/>
  1803.                   </Offset>
  1804.                 </Anchor>
  1805.               </Anchors>
  1806.           <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
  1807.             </Texture>
  1808.         <Texture name="$parentMiddleDisabled" parentKey="MiddleDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
  1809.               <Size>
  1810.                 <AbsDimension x="32" y="32"/>
  1811.               </Size>
  1812.               <Anchors>
  1813.                 <Anchor point="LEFT" relativeKey="$parent.LeftDisabled" relativePoint="RIGHT"/>
  1814.               </Anchors>
  1815.           <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
  1816.             </Texture>
  1817.         <Texture name="$parentRightDisabled" parentKey="RightDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
  1818.               <Size>
  1819.                 <AbsDimension x="16" y="32"/>
  1820.               </Size>
  1821.               <Anchors>
  1822.                 <Anchor point="LEFT" relativeKey="$parent.MiddleDisabled" relativePoint="RIGHT"/>
  1823.               </Anchors>
  1824.           <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
  1825.             </Texture>
  1826.         <Texture name="$parentLeft" parentKey="Left" file="Interface\HelpFrame\HelpFrameTab-Inactive">
  1827.               <Size>
  1828.                 <AbsDimension x="16" y="32"/>
  1829.               </Size>
  1830.               <Anchors>
  1831.                 <Anchor point="BOTTOMLEFT"/>
  1832.               </Anchors>
  1833.           <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
  1834.             </Texture>
  1835.         <Texture name="$parentMiddle" parentKey="Middle" file="Interface\HelpFrame\HelpFrameTab-Inactive">
  1836.               <Size>
  1837.                 <AbsDimension x="32" y="32"/>
  1838.               </Size>
  1839.               <Anchors>
  1840.                 <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
  1841.               </Anchors>
  1842.           <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
  1843.             </Texture>
  1844.         <Texture name="$parentRight" parentKey="Right" file="Interface\HelpFrame\HelpFrameTab-Inactive">
  1845.               <Size>
  1846.                 <AbsDimension x="16" y="32"/>
  1847.               </Size>
  1848.               <Anchors>
  1849.                 <Anchor point="LEFT" relativeKey="$parent.Middle" relativePoint="RIGHT"/>
  1850.               </Anchors>
  1851.           <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
  1852.             </Texture>
  1853.           </Layer>
  1854.         </Layers>
  1855.     <Scripts>
  1856.       <OnLoad>
  1857.         PanelTemplates_TabResize(self, 0, nil, self.minWidth);
  1858.       </OnLoad>
  1859.     </Scripts>
  1860.     <ButtonText name="$parentText" parentKey="Text">
  1861.       <Size>
  1862.         <AbsDimension x="0" y="13"/>
  1863.       </Size>
  1864.       <Anchors>
  1865.         <Anchor point="BOTTOM">
  1866.           <Offset>
  1867.             <AbsDimension x="0" y="5"/>
  1868.           </Offset>
  1869.         </Anchor>
  1870.       </Anchors>
  1871.     </ButtonText>
  1872.     <NormalFont style="GameFontNormalSmall"/>
  1873.     <HighlightFont style="GameFontHighlightSmall"/>
  1874.     <DisabledFont style="GameFontDisableSmall"/>
  1875.     <HighlightTexture name="$parentHighlightTexture" parentKey="HighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
  1876.       <Size>
  1877.         <AbsDimension x="5" y="32"/>
  1878.       </Size>
  1879.       <Anchors>
  1880.         <Anchor point="BOTTOM">
  1881.           <Offset>
  1882.             <AbsDimension x="2" y="-8"/>
  1883.           </Offset>
  1884.         </Anchor>
  1885.       </Anchors>
  1886.     </HighlightTexture>
  1887.     </Button>
  1888.  
  1889.     <Frame name="LoadingSpinnerTemplate" virtual="true">
  1890.     <Size x="48" y="48"/>
  1891.     <Frames>
  1892.       <Frame parentKey="BackgroundFrame" setAllPoints="true">
  1893.         <Layers>
  1894.           <Layer level="BACKGROUND">
  1895.             <Texture parentKey="Background" file="Interface\COMMON\StreamBackground" setAllPoints="true">
  1896.               <Color r="1" g="0.82" b="0"/>
  1897.             </Texture>
  1898.           </Layer>
  1899.           <Layer level="ARTWORK">
  1900.             <Texture parentKey="Framing" file="Interface\COMMON\StreamFrame" setAllPoints="true"/>
  1901.           </Layer>
  1902.         </Layers>
  1903.       </Frame>
  1904.       <Frame parentKey="AnimFrame" setAllPoints="true">
  1905.         <Layers>
  1906.           <Layer level="BACKGROUND">
  1907.             <Texture parentKey="Circle" file="Interface\COMMON\StreamCircle" setAllPoints="true">
  1908.               <Color r="1" g="0.82" b="0"/>
  1909.             </Texture>
  1910.           </Layer>
  1911.           <Layer level="OVERLAY">
  1912.             <Texture parentKey="Spark" file="Interface\COMMON\StreamSpark" setAllPoints="true"/>
  1913.           </Layer>
  1914.         </Layers>
  1915.       </Frame>
  1916.     </Frames>
  1917.     <Animations>
  1918.       <AnimationGroup parentKey="Anim" looping="REPEAT">
  1919.         <Rotation childKey="AnimFrame" order="1" duration="1" degrees="-360"/>
  1920.       </AnimationGroup>
  1921.     </Animations>
  1922.   </Frame>
  1923.  
  1924.   <Frame name="MaximizeMinimizeButtonFrameTemplate" parentKey="MaxMinButtonFrame" mixin="MaximizeMinimizeButtonFrameMixin" virtual="true">
  1925.     <Size x="32" y="32"/>
  1926.     <Frames>
  1927.       <Button parentKey="MaximizeButton" setAllPoints="true" hidden="true">
  1928.         <HitRectInsets left="5" right="5" top="5" bottom="5"/>
  1929.         <Scripts>
  1930.           <OnClick>
  1931.             self:GetParent():Maximize();
  1932.             PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  1933.           </OnClick>
  1934.         </Scripts>
  1935.         <NormalTexture file="Interface\Buttons\UI-Panel-BiggerButton-Up"/>
  1936.         <PushedTexture file="Interface\Buttons\UI-Panel-BiggerButton-Down"/>
  1937.         <DisabledTexture file="Interface\Buttons\UI-Panel-BiggerButton-Disabled"/>
  1938.         <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  1939.       </Button>
  1940.       <Button parentKey="MinimizeButton" setAllPoints="true">
  1941.         <HitRectInsets left="5" right="5" top="5" bottom="5"/>
  1942.         <Scripts>
  1943.           <OnClick>
  1944.             self:GetParent():Minimize();
  1945.             PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  1946.           </OnClick>
  1947.         </Scripts>
  1948.         <NormalTexture file="Interface\Buttons\UI-Panel-SmallerButton-Up"/>
  1949.         <PushedTexture file="Interface\Buttons\UI-Panel-SmallerButton-Down"/>
  1950.         <DisabledTexture file="Interface\Buttons\UI-Panel-SmallerButton-Disabled"/>
  1951.         <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  1952.       </Button>
  1953.     </Frames>
  1954.     <Scripts>
  1955.       <OnShow method="OnShow"/>
  1956.     </Scripts>
  1957.   </Frame>
  1958.  
  1959. <!--
  1960. *******************************************************************************
  1961.   TruncatedButtonTemplate
  1962.   This button template will truncate any text that goes out of the button. If text is truncated,
  1963.   the button will have a tooltip with the full text.
  1964. *******************************************************************************
  1965. -->
  1966.   <Button name="TruncatedButtonTemplate" motionScriptsWhileDisabled="true" virtual="true">
  1967.     <ButtonText name="$parentText" parentKey="Text"/>
  1968.     <Scripts>
  1969.       <OnSizeChanged function="TruncatedButton_OnSizeChanged"/>
  1970.       <OnEnter function="TruncatedButton_OnEnter"/>
  1971.       <OnLeave function="TruncatedButton_OnLeave"/>
  1972.     </Scripts>
  1973.   </Button>
  1974.  
  1975.   <Frame name="TruncatedTooltipScriptTemplate" virtual="true">
  1976.     <Scripts>
  1977.       <OnEnter function="TruncatedTooltipScript_OnEnter"/>
  1978.       <OnLeave function="TruncatedTooltipScript_OnLeave"/>
  1979.     </Scripts>
  1980.   </Frame>
  1981.  
  1982. <!--
  1983. *******************************************************************************
  1984.   TruncatedTooltipFontStringWrapperTemplate
  1985.   This frame template will automatically add a tooltip to the frame if the contained FontString is truncated
  1986.   Note that you MUST have a child FontString with ParentKey "Text"
  1987. *******************************************************************************
  1988. -->
  1989.   <Frame name="TruncatedTooltipFontStringWrapperTemplate" inherits="ResizeLayoutFrame" virtual="true" mixin="TruncatedTooltipFontStringWrapperMixin">
  1990.     <Scripts>
  1991.       <OnEnter method="OnEnter"/>
  1992.       <OnLeave method="OnLeave"/>
  1993.     </Scripts>
  1994.   </Frame>
  1995.  
  1996.   <!--
  1997. *******************************************************************************
  1998.   ColumnDisplayTemplate
  1999.   This template will handle the column headers for a list. Currently, any
  2000.   adjoining scroll frame or list needs to be spaced manually to line up with
  2001.   the columns. It might be cool to support an API for displaying data with
  2002.   default behavior. That would lose us some flexibility though, and is
  2003.   outside the current scope (when this comment was written).
  2004. *******************************************************************************
  2005. -->
  2006.  
  2007.   <Frame name="ColumnDisplayTemplate" mixin="ColumnDisplayMixin" virtual="true">
  2008.     <Size x="0" y="60"/>
  2009.     <Layers>
  2010.       <Layer level="BACKGROUND">
  2011.         <Texture parentKey="Background" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true"/>
  2012.       </Layer>
  2013.       <Layer level="ARTWORK">
  2014.         <Texture parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
  2015.           <Anchors>
  2016.             <Anchor point="TOPLEFT" x="0" y="0"/>
  2017.             <Anchor point="TOPRIGHT" x="0" y="0"/>
  2018.           </Anchors>
  2019.         </Texture>
  2020.       </Layer>
  2021.     </Layers>
  2022.     <Scripts>
  2023.       <OnLoad method="OnLoad"/>
  2024.     </Scripts>
  2025.   </Frame>
  2026.  
  2027.   <Button name="ColumnDisplayButtonShortTemplate" virtual="true">
  2028.     <Size x="10" y="19"/>
  2029.     <Layers>
  2030.       <Layer level="BACKGROUND">
  2031.         <Texture parentKey="Left" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2032.           <Size x="5" y="19"/>
  2033.           <Anchors>
  2034.             <Anchor point="TOPLEFT"/>
  2035.           </Anchors>
  2036.           <TexCoords left="0" right="0.078125" top="0" bottom="0.59375"/>
  2037.         </Texture>
  2038.         <Texture parentKey="Right" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2039.           <Size x="4" y="19"/>
  2040.           <Anchors>
  2041.             <Anchor point="BOTTOMRIGHT"/>
  2042.           </Anchors>
  2043.           <TexCoords left="0.90625" right="0.96875" top="0" bottom="0.59375"/>
  2044.         </Texture>
  2045.         <Texture parentKey="Middle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2046.           <Size x="0" y="19"/>
  2047.           <Anchors>
  2048.             <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
  2049.             <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
  2050.           </Anchors>
  2051.           <TexCoords left="0.078125" right="0.90625" top="0" bottom="0.59375"/>
  2052.         </Texture>
  2053.       </Layer>
  2054.     </Layers>
  2055.     <ButtonText parentKey="Text">
  2056.       <Anchors>
  2057.         <Anchor point="LEFT" x="8" y="0"/>
  2058.       </Anchors>
  2059.     </ButtonText>
  2060.     <NormalFont style="GameFontHighlightSmall"/>
  2061.     <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
  2062.       <Anchors>
  2063.         <Anchor point="TOPLEFT" x="0" y="0"/>
  2064.         <Anchor point="BOTTOMRIGHT" x="4" y="-2"/>
  2065.       </Anchors>
  2066.     </HighlightTexture>
  2067.   </Button>
  2068.  
  2069.   <Button name="ColumnDisplayButtonNoScriptsTemplate" virtual="true">
  2070.     <Size x="10" y="24"/>
  2071.     <Layers>
  2072.       <Layer level="BACKGROUND">
  2073.         <Texture parentKey="Left" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2074.           <Size x="5" y="24"/>
  2075.           <Anchors>
  2076.             <Anchor point="TOPLEFT"/>
  2077.           </Anchors>
  2078.           <TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
  2079.         </Texture>
  2080.         <Texture parentKey="Right" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2081.           <Size x="4" y="24"/>
  2082.           <Anchors>
  2083.             <Anchor point="BOTTOMRIGHT"/>
  2084.           </Anchors>
  2085.           <TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
  2086.         </Texture>
  2087.         <Texture parentKey="Middle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  2088.           <Size x="0" y="24"/>
  2089.           <Anchors>
  2090.             <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
  2091.             <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
  2092.           </Anchors>
  2093.           <TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
  2094.         </Texture>
  2095.       </Layer>
  2096.     </Layers>
  2097.     <ButtonText>
  2098.       <Anchors>
  2099.         <Anchor point="LEFT" x="8" y="0"/>
  2100.       </Anchors>
  2101.     </ButtonText>
  2102.     <NormalFont style="GameFontHighlightSmall"/>
  2103.     <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
  2104.       <Anchors>
  2105.         <Anchor point="TOPLEFT" relativeKey="$parent.Left" x="0" y="5"/>
  2106.         <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" x="0" y="-7"/>
  2107.       </Anchors>
  2108.     </HighlightTexture>
  2109.   </Button>
  2110.  
  2111.   <Button name="ColumnDisplayButtonTemplate" inherits="ColumnDisplayButtonNoScriptsTemplate" virtual="true">
  2112.     <Scripts>
  2113.       <OnClick function="ColumnDisplayButton_OnClick"/>
  2114.     </Scripts>
  2115.   </Button>
  2116.  
  2117.   <Button name="SquareIconButtonTemplate" mixin="SquareIconButtonMixin" virtual="true">
  2118.     <Size x="32" y="32"/>
  2119.     <!--
  2120.     icon: texture file to be displayed on the button.
  2121.     iconAtlas: atlas to be displayed on the button.
  2122.     tooltipText: displayed on the right of the button by default.
  2123.     onClickHandler: forwards the standard OnClick arguments.
  2124.     <KeyValues>
  2125.       <KeyValue key="icon" value="Interface\Buttons\UI-RefreshButton" type="string"/>
  2126.       <KeyValue key="iconAtlas" value="UI-RefreshButton" type="string"/>
  2127.       <KeyValue key="tooltipText" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
  2128.       <KeyValue key="onClickHandler" value="RefreshButton_OnClick" type="global"/>
  2129.     </KeyValues>
  2130.     -->
  2131.     <Layers>
  2132.       <Layer level="OVERLAY">
  2133.         <Texture parentKey="Icon">
  2134.           <Size x="16" y="16"/>
  2135.           <Anchors>
  2136.             <Anchor point="CENTER" x="-1" y="0"/>
  2137.           </Anchors>
  2138.         </Texture>
  2139.       </Layer>
  2140.     </Layers>
  2141.     <Scripts>
  2142.       <OnLoad method="OnLoad"/>
  2143.       <OnMouseDown method="OnMouseDown"/>
  2144.       <OnMouseUp method="OnMouseUp"/>
  2145.       <OnEnter method="OnEnter"/>
  2146.       <OnLeave method="OnLeave"/>
  2147.       <OnClick method="OnClick"/>
  2148.     </Scripts>
  2149.     <NormalTexture file="Interface\Buttons\UI-SquareButton-Up"/>
  2150.     <PushedTexture file="Interface\Buttons\UI-SquareButton-Down"/>
  2151.     <DisabledTexture file="Interface\Buttons\UI-SquareButton-Disabled"/>
  2152.     <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  2153.   </Button>
  2154.  
  2155.   <Button name="RefreshButtonTemplate" inherits="SquareIconButtonTemplate" virtual="true">
  2156.     <KeyValues>
  2157.       <KeyValue key="iconAtlas" value="UI-RefreshButton" type="string"/>
  2158.     </KeyValues>
  2159.   </Button>
  2160.  
  2161.   <Button name="ThreeSliceButtonTemplate" mixin="ThreeSliceButtonMixin" motionScriptsWhileDisabled="true" virtual="true">
  2162.     <!--
  2163.     atlasName: The art kit to use for the 3 sections of the button.
  2164.             * The left textures will be "atlasName-Left", "atlasName-Left-Disabled" and "atlasName-Left-Pressed"
  2165.             * The right textures will be "atlasName-Right", "atlasName-Right-Disabled" and "atlasName-Right-Pressed"
  2166.             * The center textures will be "_atlasName-Center", "_atlasName-Disabled" and "_atlasName-Pressed"
  2167.             * The highlight texture will be "atlasName-Highlight"
  2168.     tooltip: This can be either a string or a function which returns a string
  2169.  
  2170.     <KeyValues>
  2171.       <KeyValue key="atlasName" value="128-RedButton" type="string"/>
  2172.       <KeyValue key="tooltip" value="MyTooltipFunction" type="global"/>
  2173.         or
  2174.       <KeyValue key="tooltip" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
  2175.     </KeyValues>
  2176.     -->
  2177.     <Size x="20" y="20"/>
  2178.     <Layers>
  2179.       <Layer level="BACKGROUND">
  2180.         <Texture parentKey="Left">
  2181.           <Anchors>
  2182.             <Anchor point="TOPLEFT"/>
  2183.           </Anchors>
  2184.         </Texture>
  2185.         <Texture parentKey="Right">
  2186.           <Anchors>
  2187.             <Anchor point="TOPRIGHT"/>
  2188.           </Anchors>
  2189.         </Texture>
  2190.         <Texture parentKey="Center" horizTile="true">
  2191.           <Anchors>
  2192.             <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
  2193.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
  2194.           </Anchors>
  2195.         </Texture>
  2196.       </Layer>
  2197.     </Layers>
  2198.     <Frames>
  2199.       <Frame parentKey="Controller" mixin="ButtonControllerMixin">
  2200.         <Scripts>
  2201.           <OnLoad method="OnLoad"/>
  2202.           <OnShow method="OnShow"/>
  2203.         </Scripts>
  2204.       </Frame>
  2205.     </Frames>
  2206.     <Scripts>
  2207.       <OnMouseDown method="OnMouseDown"/>
  2208.       <OnMouseUp method="OnMouseUp"/>
  2209.       <OnShow method="UpdateButton"/>
  2210.       <OnDisable method="UpdateButton"/>
  2211.       <OnEnable method="UpdateButton"/>
  2212.       <OnEnter method="OnEnter"/>
  2213.       <OnLeave method="OnLeave"/>
  2214.       <OnSizeChanged method="UpdateScale"/>
  2215.     </Scripts>
  2216.   </Button>
  2217.  
  2218.   <Button name="BigRedThreeSliceButtonTemplate" inherits="ThreeSliceButtonTemplate" virtual="true">
  2219.     <Size x="441" y="128"/>
  2220.     <KeyValues>
  2221.       <KeyValue key="atlasName" value="128-RedButton" type="string"/>
  2222.     </KeyValues>
  2223.     <PushedTextOffset x="-2" y="-1"/>
  2224.   </Button>
  2225.  
  2226.   <Button name="SharedButtonTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
  2227.     <Size x="200" y="30"/>
  2228.     <NormalFont style="GameFontNormal"/>
  2229.     <HighlightFont style="GameFontHighlight"/>
  2230.     <DisabledFont style="GameFontDisable"/>
  2231.   </Button>
  2232.  
  2233.   <Button name="SharedButtonLargeTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
  2234.     <Size x="200" y="30"/>
  2235.     <NormalFont style="GameFontNormalMed3"/>
  2236.     <HighlightFont style="GameFontHighlightMedium"/>
  2237.     <DisabledFont style="GameFontDisableMed3"/>
  2238.   </Button>
  2239.  
  2240.   <Button name="SharedButtonSmallTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
  2241.     <Size x="138" y="28"/>
  2242.     <NormalFont style="GameFontNormal"/>
  2243.     <HighlightFont style="GameFontHighlight"/>
  2244.     <DisabledFont style="GameFontDisable"/>
  2245.   </Button>
  2246.  
  2247.   <Button name="BigGoldRedThreeSliceButtonTemplate" inherits="ThreeSliceButtonTemplate" virtual="true">
  2248.     <Size x="441" y="128"/>
  2249.     <KeyValues>
  2250.       <KeyValue key="atlasName" value="128-GoldRedButton" type="string"/>
  2251.     </KeyValues>
  2252.     <PushedTextOffset x="-2" y="-1"/>
  2253.   </Button>
  2254.  
  2255.   <Button name="SharedGoldRedButtonTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
  2256.     <Size x="200" y="30"/>
  2257.     <NormalFont style="GameFontNormal"/>
  2258.     <HighlightFont style="GameFontHighlight"/>
  2259.     <DisabledFont style="GameFontDisable"/>
  2260.   </Button>
  2261.  
  2262.   <Button name="SharedGoldRedButtonLargeTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
  2263.     <Size x="200" y="30"/>
  2264.     <NormalFont style="GameFontNormalMed3"/>
  2265.     <HighlightFont style="GameFontHighlightMedium"/>
  2266.     <DisabledFont style="GameFontDisableMed3"/>
  2267.   </Button>
  2268.  
  2269.   <Button name="SharedGoldRedButtonSmallTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
  2270.     <Size x="138" y="28"/>
  2271.     <NormalFont style="GameFontNormal"/>
  2272.     <HighlightFont style="GameFontHighlight"/>
  2273.     <DisabledFont style="GameFontDisable"/>
  2274.   </Button>
  2275.  
  2276.   <Button name="UIButtonTemplate" mixin="UIButtonMixin" virtual="true">
  2277.     <Size x="20" y="20"/>
  2278.     <!--
  2279.     atlasName: The art kit to use for the  button.
  2280.             * The normal texture will be "atlasName"
  2281.             * The pressed texture will be "atlasName-Pressed"
  2282.             * The disabled texture will be "atlasName-Disabled"
  2283.             * The highlight texture will be "atlasName-Highlight"
  2284.     tooltip: This can be either a string or a function which returns a string
  2285.    
  2286.     <KeyValues>
  2287.       <KeyValue key="atlasName" value="128-RedButton" type="string"/>
  2288.       <KeyValue key="tooltip" value="MyTooltipFunction" type="global"/>
  2289.         or
  2290.       <KeyValue key="tooltip" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
  2291.     </KeyValues>
  2292.     -->
  2293.     <Frames>
  2294.       <Frame parentKey="Controller" mixin="ButtonControllerMixin">
  2295.         <Scripts>
  2296.           <OnLoad method="OnLoad"/>
  2297.           <OnShow method="OnShow"/>
  2298.         </Scripts>
  2299.       </Frame>
  2300.     </Frames>
  2301.   </Button>
  2302.  
  2303.   <Button name="BigRedRefreshButtonTemplate" inherits="UIButtonTemplate" virtual="true">
  2304.     <Size x="128" y="128"/>
  2305.     <KeyValues>
  2306.       <KeyValue key="atlasName" value="128-RedButton-Refresh" type="string"/>
  2307.     </KeyValues>
  2308.   </Button>
  2309.  
  2310.   <Frame name="ResizeCheckButtonTemplate" inherits="ResizeLayoutFrame" mixin="ResizeCheckButtonMixin" virtual="true">
  2311.     <!--
  2312.     labelText: The text to use on the label
  2313.    
  2314.     <KeyValues>
  2315.       <KeyValue key="labelText" value="CHARACTER_TYPE_FRAME_TRIAL_BOOST_CHARACTER" type="global"/>
  2316.     </KeyValues>
  2317.     -->
  2318.     <Frames>
  2319.       <CheckButton parentKey="Button">
  2320.         <Size x="28" y="28"/>
  2321.         <Anchors>
  2322.           <Anchor point="TOPLEFT"/>
  2323.         </Anchors>
  2324.         <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
  2325.         <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
  2326.         <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
  2327.         <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
  2328.         <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
  2329.         <Scripts>
  2330.           <OnClick>
  2331.             self:GetParent():OnCheckButtonClick();
  2332.           </OnClick>
  2333.         </Scripts>
  2334.       </CheckButton>
  2335.     </Frames>
  2336.     <Layers>
  2337.       <Layer level="ARTWORK">
  2338.         <FontString parentKey="Label" inherits="GameFontHighlightLarge">
  2339.           <Anchors>
  2340.             <Anchor point="LEFT" relativeKey="$parent.Button" relativePoint="RIGHT" x="2" y="0"/>
  2341.           </Anchors>
  2342.         </FontString>
  2343.       </Layer>
  2344.     </Layers>
  2345.     <Scripts>
  2346.       <OnLoad method="OnLoad"/>
  2347.       <OnShow method="OnShow"/>
  2348.     </Scripts>
  2349.   </Frame>
  2350.  
  2351.   <EditBox name="SharedEditBoxTemplate" mixin="SharedEditBoxMixin" virtual="true">
  2352.     <Size x="258" y="54"/>
  2353.     <Layers>
  2354.       <Layer level="BACKGROUND">
  2355.         <Texture parentKey="Left" atlas="common-input-left" useAtlasSize="true">
  2356.           <Anchors>
  2357.             <Anchor point="TOPRIGHT" relativePoint="TOPLEFT"/>
  2358.             <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT"/>
  2359.           </Anchors>
  2360.         </Texture>
  2361.         <Texture parentKey="Right" atlas="common-input-left" useAtlasSize="true">
  2362.           <TexCoords left="1" right="0" top="0" bottom="1"/>
  2363.           <Anchors>
  2364.             <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"/>
  2365.             <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
  2366.           </Anchors>
  2367.         </Texture>
  2368.         <Texture parentKey="Middle" atlas="common-input-middle" setAllPoints="true" />
  2369.       </Layer>
  2370.     </Layers>
  2371.     <FontString inherits="NumberFont_Shadow_Large"/>
  2372.     <Scripts>
  2373.       <OnLoad method="OnLoad"/>
  2374.     </Scripts>
  2375.   </EditBox>
  2376.  
  2377.   <Slider name="SharedHorizontalSliderTemplate" orientation="HORIZONTAL" obeyStepOnDrag="true" virtual="true">
  2378.     <Size x="300" y="20"/>
  2379.     <Layers>
  2380.       <Layer level="BACKGROUND">
  2381.         <Texture parentKey="Track" atlas="common-slider-track" useAtlasSize="true">
  2382.           <Anchors>
  2383.             <Anchor point="CENTER"/>
  2384.           </Anchors>
  2385.         </Texture>
  2386.       </Layer>
  2387.     </Layers>
  2388.     <ThumbTexture parentKey="Thumb" atlas="common-slider-thumb" useAtlasSize="true"/>
  2389.   </Slider>
  2390.  
  2391.   <Frame name="SliderWithButtonsAndLabelTemplate" inherits="ResizeLayoutFrame" mixin="SliderWithButtonsAndLabelMixin" virtual="true">
  2392.     <Size x="1" y="1"/>
  2393.     <Layers>
  2394.       <Layer level="ARTWORK">
  2395.         <FontString parentKey="Label" font="GameFontHighlightMedium">
  2396.           <KeyValues>
  2397.             <KeyValue key="ignoreInLayout" value="true" type="boolean"/>
  2398.           </KeyValues>
  2399.           <Anchors>
  2400.             <Anchor point="RIGHT" relativeKey="$parent.DecrementButton" relativePoint="LEFT" x="-50"/>
  2401.           </Anchors>
  2402.         </FontString>
  2403.       </Layer>
  2404.     </Layers>
  2405.     <Frames>
  2406.       <Slider parentKey="Slider" inherits="SharedHorizontalSliderTemplate" scale="0.7">
  2407.         <Anchors>
  2408.           <Anchor point="CENTER"/>
  2409.         </Anchors>
  2410.         <Scripts>
  2411.           <OnEnter>
  2412.             self:GetParent():OnEnter();
  2413.           </OnEnter>
  2414.           <OnLeave>
  2415.             self:GetParent():OnLeave();
  2416.           </OnLeave>
  2417.           <OnValueChanged>
  2418.             self:GetParent():OnSliderValueChanged(value, userInput);
  2419.           </OnValueChanged>
  2420.         </Scripts>
  2421.       </Slider>
  2422.       <Button parentKey="IncrementButton" motionScriptsWhileDisabled="true">
  2423.         <Size x="32" y="32"/>
  2424.         <Anchors>
  2425.           <Anchor point="LEFT" relativeKey="$parent.Slider" relativePoint="RIGHT"/>
  2426.         </Anchors>
  2427.         <Scripts>
  2428.           <OnClick>
  2429.             self:GetParent():Increment();
  2430.           </OnClick>
  2431.         </Scripts>
  2432.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
  2433.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
  2434.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
  2435.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  2436.       </Button>
  2437.       <Button parentKey="DecrementButton" motionScriptsWhileDisabled="true">
  2438.         <Size x="32" y="32"/>
  2439.         <Anchors>
  2440.           <Anchor point="RIGHT" relativeKey="$parent.Slider" relativePoint="LEFT"/>
  2441.         </Anchors>
  2442.         <Scripts>
  2443.           <OnClick>
  2444.             self:GetParent():Decrement();
  2445.           </OnClick>
  2446.         </Scripts>
  2447.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
  2448.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
  2449.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
  2450.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  2451.       </Button>
  2452.     </Frames>
  2453.   </Frame>
  2454.  
  2455.   <Frame name="SelectionPopoutDetails" mixin="SelectionPopoutDetailsMixin" virtual="true">
  2456.     <Layers>
  2457.       <Layer level="ARTWORK" textureSubLevel="1">
  2458.         <FontString parentKey="SelectionNumber" font="GameFontNormal" justifyH="LEFT">
  2459.           <Size x="25" y="20"/>
  2460.           <Anchors>
  2461.             <Anchor point="LEFT"/>
  2462.           </Anchors>
  2463.         </FontString>
  2464.         <FontString parentKey="SelectionName" font="GameFontNormal" justifyH="LEFT"  maxLines="1" hidden="true">
  2465.           <Size x="25" y="20"/>
  2466.           <Anchors>
  2467.             <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT"/>
  2468.           </Anchors>
  2469.         </FontString>
  2470.         <Texture parentKey="ColorSwatch1" atlas="charactercreate-customize-palette" useAtlasSize="true" hidden="true">
  2471.           <Anchors>
  2472.             <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT"/>
  2473.           </Anchors>
  2474.         </Texture>
  2475.         <Texture parentKey="ColorSwatch2" atlas="charactercreate-customize-palette" useAtlasSize="false" hidden="true">
  2476.           <Size x="36" y="8"/>
  2477.           <Anchors>
  2478.             <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT" x="18" y="-2"/>
  2479.           </Anchors>
  2480.         </Texture>
  2481.       </Layer>
  2482.       <Layer level="ARTWORK" textureSubLevel="2">
  2483.         <Texture parentKey="ColorSwatch1Glow" atlas="charactercreate-customize-palette-glow" useAtlasSize="true" alphaMode="ADD" hidden="true">
  2484.           <Anchors>
  2485.             <Anchor point="CENTER" relativeKey="$parent.ColorSwatch1" relativePoint="CENTER"/>
  2486.           </Anchors>
  2487.         </Texture>
  2488.         <Texture parentKey="ColorSwatch2Glow" atlas="charactercreate-customize-palette-glow" useAtlasSize="false" alphaMode="ADD" hidden="true">
  2489.           <Size x="36" y="8"/>
  2490.           <Anchors>
  2491.             <Anchor point="CENTER" relativeKey="$parent.ColorSwatch2" relativePoint="CENTER"/>
  2492.           </Anchors>
  2493.         </Texture>
  2494.       </Layer>
  2495.       <Layer level="ARTWORK" textureSubLevel="3">
  2496.         <Texture parentKey="ColorSelected" atlas="charactercreate-customize-palette-selected" useAtlasSize="true" hidden="true">
  2497.           <Anchors>
  2498.             <Anchor point="LEFT" relativeKey="$parent.ColorSwatch1" relativePoint="LEFT" x="-4"/>
  2499.           </Anchors>
  2500.         </Texture>
  2501.       </Layer>
  2502.     </Layers>
  2503.   </Frame>
  2504.  
  2505.   <Button name="SelectionPopoutEntryTemplate" inherits="ResizeLayoutFrame" mixin="SelectionPopoutEntryMixin" virtual="true">
  2506.     <Size x="1" y="1"/>
  2507.     <ButtonText parentKey="ButtonText" setAllPoints="true"/>
  2508.     <KeyValues>
  2509.       <KeyValue key="widthPadding" value="14" type="number"/>
  2510.     </KeyValues>
  2511.     <Frames>
  2512.       <Frame parentKey="SelectionDetails" inherits="SelectionPopoutDetails">
  2513.         <Size x="144" y="20"/>
  2514.       </Frame>
  2515.       <Frame parentKey="HighlightBGTex" alpha="0" setAllPoints="true">
  2516.         <KeyValues>
  2517.           <KeyValue key="ignoreInLayout" value="true" type="boolean"/>
  2518.         </KeyValues>
  2519.         <Layers>
  2520.           <Layer level="BACKGROUND">
  2521.             <Texture parentKey="Left" atlas="charactercreate-customize-dropdown-linemouseover-side" useAtlasSize="true">
  2522.               <Anchors>
  2523.                 <Anchor point="TOPLEFT"/>
  2524.               </Anchors>
  2525.             </Texture>
  2526.             <Texture parentKey="Right" atlas="charactercreate-customize-dropdown-linemouseover-side" useAtlasSize="true">
  2527.               <TexCoords left="1" right="0" top="0" bottom="1"/>
  2528.               <Anchors>
  2529.                 <Anchor point="BOTTOMRIGHT"/>
  2530.               </Anchors>
  2531.             </Texture>
  2532.             <Texture parentKey="Middle" atlas="charactercreate-customize-dropdown-linemouseover-middle" useAtlasSize="true">
  2533.               <Anchors>
  2534.                 <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
  2535.                 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
  2536.               </Anchors>
  2537.             </Texture>
  2538.           </Layer>
  2539.         </Layers>
  2540.       </Frame>
  2541.     </Frames>
  2542.     <Scripts>
  2543.       <OnLoad method="OnLoad"/>
  2544.       <OnClick method="OnClick"/>
  2545.       <OnEnter method="OnEnter"/>
  2546.       <OnLeave method="OnLeave"/>
  2547.     </Scripts>
  2548.   </Button>
  2549.  
  2550.   <Frame name="SelectionPopoutTemplate" inherits="ResizeLayoutFrame" mixin="SelectionPopoutMixin" virtual="true">
  2551.     <Size x="1" y="1"/>
  2552.     <KeyValues>
  2553.       <KeyValue key="widthPadding" value="6" type="number"/>
  2554.       <KeyValue key="heightPadding" value="32" type="number"/>
  2555.     </KeyValues>
  2556.  
  2557.     <Frames>
  2558.       <Frame parentKey="Border" useParentLevel="true" inherits="NineSlicePanelTemplate">
  2559.         <KeyValues>
  2560.           <KeyValue key="layoutType" value="CharacterCreateDropdown" type="string"/>
  2561.         </KeyValues>
  2562.       </Frame>
  2563.     </Frames>
  2564.  
  2565.     <Scripts>
  2566.       <OnShow method="OnShow"/>
  2567.       <OnMouseWheel function="nop"/>
  2568.     </Scripts>
  2569.   </Frame>
  2570.  
  2571.   <Button name="SelectionPopoutButtonTemplate" mixin="SelectionPopoutButtonMixin" virtual="true">
  2572.     <Size x="150" y="38"/>
  2573.     <NormalTexture parentKey="NormalTexture" atlas="charactercreate-customize-dropdownbox"/>
  2574.     <HighlightTexture parentKey="HighlightTexture" atlas="charactercreate-customize-dropdownbox-open" alphaMode="ADD" alpha="0"/>
  2575.     <PushedTextOffset x="2" y="-2"/>
  2576.     <ButtonText parentKey="ButtonText">
  2577.       <Anchors>
  2578.         <Anchor point="TOPLEFT" x="10" y="-10"/>
  2579.         <Anchor point="BOTTOMRIGHT" x="-10" y="10"/>
  2580.       </Anchors>
  2581.     </ButtonText>
  2582.     <Frames>
  2583.       <Frame parentKey="SelectionDetails" inherits="SelectionPopoutDetails, ResizeLayoutFrame" useParentLevel="true">
  2584.         <Size x="1" y="1"/>
  2585.       </Frame>
  2586.       <Frame parentKey="Popout" inherits="SelectionPopoutTemplate" hidden="true">
  2587.         <Anchors>
  2588.           <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="3" y="11"/>
  2589.         </Anchors>
  2590.       </Frame>
  2591.     </Frames>
  2592.     <Scripts>
  2593.       <OnLoad method="OnLoad"/>
  2594.       <OnHide method="OnHide"/>
  2595.       <OnClick method="OnClick"/>
  2596.       <OnMouseWheel method="OnMouseWheel"/>
  2597.       <OnEnter method="OnEnter"/>
  2598.       <OnLeave method="OnLeave"/>
  2599.     </Scripts>
  2600.   </Button>
  2601.  
  2602.   <Frame name="SelectionPopoutWithButtonsAndLabelTemplate" mixin="SelectionPopoutWithButtonsAndLabelMixin" virtual="true">
  2603.     <Size x="223" y="38"/>
  2604.     <Layers>
  2605.       <Layer level="ARTWORK">
  2606.         <FontString parentKey="Label" font="GameFontHighlightMed2">
  2607.           <Anchors>
  2608.             <Anchor point="RIGHT" relativeKey="$parent.DecrementButton" relativePoint="LEFT" x="-34"/>
  2609.           </Anchors>
  2610.         </FontString>
  2611.       </Layer>
  2612.     </Layers>
  2613.     <Frames>
  2614.       <Button parentKey="SelectionPopoutButton" inherits="SelectionPopoutButtonTemplate">
  2615.         <Size x="150" y="38"/>
  2616.         <Anchors>
  2617.           <Anchor point="CENTER"/>
  2618.         </Anchors>
  2619.       </Button>
  2620.       <Button parentKey="IncrementButton" motionScriptsWhileDisabled="true">
  2621.         <Size x="32" y="32"/>
  2622.         <Anchors>
  2623.           <Anchor point="LEFT" relativeKey="$parent.SelectionPopoutButton" relativePoint="RIGHT" x="4"/>
  2624.         </Anchors>
  2625.         <Scripts>
  2626.           <OnClick>
  2627.             self:GetParent():Increment();
  2628.           </OnClick>
  2629.         </Scripts>
  2630.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
  2631.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
  2632.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
  2633.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  2634.       </Button>
  2635.       <Button parentKey="DecrementButton" motionScriptsWhileDisabled="true">
  2636.         <Size x="32" y="32"/>
  2637.         <Anchors>
  2638.           <Anchor point="RIGHT" relativeKey="$parent.SelectionPopoutButton" relativePoint="LEFT" x="-5"/>
  2639.         </Anchors>
  2640.         <Scripts>
  2641.           <OnClick>
  2642.             self:GetParent():Decrement();
  2643.           </OnClick>
  2644.         </Scripts>
  2645.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
  2646.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
  2647.         <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
  2648.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  2649.       </Button>
  2650.     </Frames>
  2651.   </Frame>
  2652.  
  2653.   <!--The DefaultScaleFrame template is used to allow a frame to appear to be "unscaled"
  2654.     That means that all the textures/fonts used should appear as the same size they do in Photoshop when authored.
  2655.     It is most useful in Glues, where we ALWAYS apply a UIScale, with no way to turn it off.
  2656.     But it can also be used in game in order to attain a consistent look on a panel.
  2657.     If you choose to use it in-game, remember that when you use it, the player will no longer be able to scale that panel up for accessibility reasons.-->
  2658.    
  2659.   <!--IMPORTANT:
  2660.     If you are inheriting from more than 1 frame, inherit this frame LAST (the right-most in the list).
  2661.     If you have your own mixin, use inherit="prepend" for OnLoad & OnEvent if you define them-->
  2662.   <Frame name="DefaultScaleFrame" mixin="DefaultScaleFrameMixin" virtual="true">
  2663.     <Scripts>
  2664.       <OnLoad method="OnDefaultScaleFrameLoad" inherit="prepend"/>
  2665.       <OnEvent method="OnDefaultScaleFrameEvent" inherit="prepend"/>
  2666.     </Scripts>
  2667.   </Frame>
  2668. </Ui>