SharedUIPanelTemplates.xml

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