SharedUIPanelTemplates.xml
SharedUIPanelTemplates.xml (9.0.2.37474; unchanged since 9.0.2.36665)
- <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
- ..\FrameXML\UI.xsd">
- <Script file="SharedUIPanelTemplates.lua"/>
- <Script file="PortraitFrame.lua"/>
- <Texture name="UIPanelButtonHighlightTexture" file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD" virtual="true">
- <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
- </Texture>
- <!-- Paper overlay texture pieces -->
- <Texture name="UI-PaperOverlay-AbilityTextBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
- <Size x="256" y="80"/>
- <TexCoords left="0.00195313" right="0.50195313" top="0.02246094" bottom="0.10058594"/>
- </Texture>
- <Texture name="UI-PaperOverlay-Bullet" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true">
- <Size x="13" y="13"/>
- <TexCoords left="0.974609375" right="1.0" top="0.7509765625" bottom="0.763671875"/>
- </Texture>
- <Texture name="UI-PaperOverlay-Check" file="Interface\AchievementFrame\UI-Achievement-Criteria-Check" virtual="true">
- <Size x="13" y="13"/>
- <TexCoords left="0" right="0.65625" top="0" bottom="1"/>
- </Texture>
- <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
- <Size x="64" y="29"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.22265625" bottom="0.27929688"/>
- </Texture>
- <Texture name="UI-PaperOverlay-AbilityTextBottomBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
- <Size x="243" y="9"/>
- <TexCoords left="0.04492188" right="0.51953125" top="0.00097656" bottom="0.00976563"/>
- </Texture>
- <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
- <Size x="64" y="29"/>
- <TexCoords left="0.81445313" right="0.93945313" top="0.39453125" bottom="0.42285156"/>
- </Texture>
- <Texture name="UI-PaperOverlay-PaperHeader-SelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
- <Size x="64" y="29"/>
- <TexCoords left="0.34570313" right="0.47070313" top="0.49316406" bottom="0.52148438"/>
- </Texture>
- <!-- Tiled textures size=64,512-->
- <Texture name="_SearchBarLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
- <Size x="64" y="49"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.74804688" bottom="0.84375000"/>
- </Texture>
- <!-- Vertically tiling pieces -->
- <Texture name="!UI-Frame-RightTile" atlas="!UI-Frame-RightTile" virtual="true" vertTile="true" >
- <Size x="10" y="256"/>
- </Texture>
- <Texture name="!UI-Frame-LeftTile" atlas="!UI-Frame-LeftTile" virtual="true" vertTile="true" >
- <Size x="16" y="256"/>
- </Texture>
- <Texture name="!UI-Frame-InnerRightTile" atlas="!UI-Frame-InnerRightTile" virtual="true" vertTile="true" >
- <Size x="3" y="256"/>
- </Texture>
- <Texture name="!UI-Frame-InnerLeftTile" atlas="!UI-Frame-InnerLeftTile" virtual="true" vertTile="true" >
- <Size x="3" y="256"/>
- </Texture>
- <!-- Horizontally tiling pieces -->
- <Texture name="_UI-Frame-BtnBotTile" atlas="_UI-Frame-BtnBotTile" virtual="true" horizTile="true" >
- <Size x="256" y="3"/>
- </Texture>
- <Texture name="_UI-Frame-Bot" atlas="_UI-Frame-Bot" virtual="true" horizTile="true" >
- <Size x="256" y="9"/>
- </Texture>
- <Texture name="_UI-Frame-InnerTopTile" atlas="_UI-Frame-InnerTopTile" virtual="true" horizTile="true" >
- <Size x="256" y="3"/>
- </Texture>
- <Texture name="_UI-Frame-InnerBotTile" atlas="_UI-Frame-InnerBotTile" virtual="true" horizTile="true" >
- <Size x="256" y="3"/>
- </Texture>
- <Texture name="_UI-Frame-TitleTileBg" atlas="_UI-Frame-TitleTileBg" virtual="true" horizTile="true" >
- <Size x="256" y="18"/> <!-- TODO: Fix asset to fit space, or bake it into all frames -->
- </Texture>
- <Texture name="_UI-Frame-TitleTile" atlas="_UI-Frame-TitleTile" virtual="true" horizTile="true" >
- <Size x="256" y="28"/>
- </Texture>
- <Texture name="_UI-Frame-TopTileStreaks" atlas="_UI-Frame-TopTileStreaks" virtual="true" horizTile="true" >
- <Size x="256" y="43"/>
- </Texture>
- <!--
- *******************************************************************************
- Texture templates for frame border pieces
- *******************************************************************************
- -->
- <Texture name="UI-Frame-Portrait" atlas="UI-Frame-Portrait" virtual="true">
- <Size x="78" y="78"/>
- </Texture>
- <Texture name="UI-Frame-TopCornerRight" atlas="UI-Frame-TopCornerRight" virtual="true">
- <Size x="33" y="33"/>
- </Texture>
- <Texture name="UI-Frame-BtnDivRight" atlas="UI-Frame-BtnDivRight" virtual="true">
- <Size x="11" y="25"/>
- </Texture>
- <Texture name="UI-Frame-InnerTopRight" atlas="UI-Frame-InnerTopRight" virtual="true">
- <Size x="6" y="6"/>
- </Texture>
- <Texture name="UI-Frame-TopLeftCorner" atlas="UI-Frame-TopLeftCornerNoPortrait" virtual="true">
- <Size x="33" y="33"/>
- </Texture>
- <Texture name="UI-Frame-InnerTopLeft" atlas="UI-Frame-InnerTopLeft" virtual="true">
- <Size x="6" y="6"/>
- </Texture>
- <Texture name="UI-Frame-InnerBotLeftCorner" atlas="UI-Frame-InnerBotLeftCorner" virtual="true">
- <Size x="6" y="6"/>
- </Texture>
- <Texture name="UI-Frame-InnerBotRight" atlas="UI-Frame-InnerBotRight" virtual="true">
- <Size x="6" y="6"/>
- </Texture>
- <Texture name="UI-Frame-BotCornerLeft" atlas="UI-Frame-BotCornerLeft" virtual="true">
- <Size x="14" y="14"/>
- </Texture>
- <Texture name="UI-Frame-TopCornerLeft" atlas="UI-Frame-TopLeftCorner" virtual="true">
- <Size x="14" y="14"/>
- </Texture>
- <Texture name="UI-Frame-BtnDivMiddle" atlas="UI-Frame-BtnDivMiddle" virtual="true">
- <Size x="13" y="25"/>
- </Texture>
- <Texture name="UI-Frame-BotCornerRight" atlas="UI-Frame-BotCornerRight" virtual="true">
- <Size x="11" y="11"/>
- </Texture>
- <Texture name="UI-Frame-TopCornerRightSimple" atlas="UI-Frame-TopCornerRightSimple" virtual="true">
- <Size x="11" y="11"/>
- </Texture>
- <Texture name="UI-Frame-BtnDivLeft" atlas="UI-Frame-BtnDivLeft" virtual="true">
- <Size x="11" y="25"/>
- </Texture>
- <Texture name="UI-Frame-InnerSplitLeft" atlas="UI-Frame-InnerSplitLeft" virtual="true">
- <Size x="9" y="14"/>
- </Texture>
- <Texture name="UI-Frame-InnerSplitRight" atlas="UI-Frame-InnerSplitLeft" virtual="true">
- <Size x="9" y="14"/>
- </Texture>
- <Texture name="HelpPlateArrowDOWN" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="53" y="21"/>
- <TexCoords left="0.78515625" right="0.99218750" top="0.54687500" bottom="0.58789063"/>
- </Texture>
- <Texture name="HelpPlateArrowUP" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="53" y="21"/>
- <TexCoords left="0.78515625" right="0.99218750" bottom="0.54687500" top="0.58789063"/>
- </Texture>
- <Texture name="HelpPlateArrow-GlowDOWN" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="65" y="28"/>
- <TexCoords left="0.40625000" right="0.66015625" top="0.77343750" bottom="0.82812500"/>
- </Texture>
- <Texture name="HelpPlateArrow-GlowUP" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="65" y="28"/>
- <TexCoords left="0.40625000" right="0.66015625" bottom="0.77343750" top="0.82812500"/>
- </Texture>
- <Texture name="HelpPlateArrow-Shadow" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="101" y="41"/>
- <TexCoords left="0.00390625" right="0.39843750" top="0.68359375" bottom="0.76367188"/>
- </Texture>
- <Texture name="HelpPlateBox-Glow-BottomRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="11" y="11"/>
- <TexCoords left="0.94921875" right="0.99218750" top="0.32226563" bottom="0.34375000"/>
- </Texture>
- <Texture name="HelpPlateBox-Glow-TopLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="11" y="11"/>
- <TexCoords left="0.91796875" right="0.96093750" top="0.65625000" bottom="0.67773438"/>
- </Texture>
- <Texture name="HelpPlateBox-Glow-TopRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="11" y="11"/>
- <TexCoords left="0.12890625" right="0.17187500" top="0.96679688" bottom="0.98828125"/>
- </Texture>
- <Texture name="HelpPlateBox-Glow-BottomLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="11" y="11"/>
- <TexCoords left="0.30859375" right="0.35156250" top="0.96679688" bottom="0.98828125"/>
- </Texture>
- <Texture name="!HelpPlateBox-Glow-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="11" y="32"/>
- <TexCoords left="0.20703125" right="0.25000000" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="!HelpPlateBox-Glow-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="11" y="32"/>
- <TexCoords left="0.25781250" right="0.30078125" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="_HelpPlateBox-Glow-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="11"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.24609375" bottom="0.28906250"/>
- </Texture>
- <Texture name="_HelpPlateBox-Glow-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="11"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.29687500" bottom="0.33984375"/>
- </Texture>
- <Texture name="HelpPlateBox-Shadow-BottomRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="25" y="25"/>
- <TexCoords left="0.89062500" right="0.98828125" top="0.36523438" bottom="0.41406250"/>
- </Texture>
- <Texture name="HelpPlateBox-Shadow-TopLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="25" y="25"/>
- <TexCoords left="0.89062500" right="0.98828125" top="0.45703125" bottom="0.50585938"/>
- </Texture>
- <Texture name="HelpPlateBox-Shadow-TopRight" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="25" y="25"/>
- <TexCoords left="0.66796875" right="0.76562500" top="0.77343750" bottom="0.82226563"/>
- </Texture>
- <Texture name="HelpPlateBox-Shadow-BottomLeft" file="Interface\TalentFrame\TalentFrame-Parts" virtual="true" >
- <Size x="25" y="25"/>
- <TexCoords left="0.77343750" right="0.87109375" top="0.77343750" bottom="0.82226563"/>
- </Texture>
- <Texture name="!HelpPlateBox-Shadow-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="25" y="32"/>
- <TexCoords left="0.30859375" right="0.40625000" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="!HelpPlateBox-Shadow-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="25" y="32"/>
- <TexCoords left="0.41406250" right="0.51171875" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="_HelpPlateBox-Shadow-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="25"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.34765625" bottom="0.44531250"/>
- </Texture>
- <Texture name="_HelpPlateBox-Shadow-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="25"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.45312500" bottom="0.55078125"/>
- </Texture>
- <Texture name="!HelpPlateBox-Right" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="8" y="32"/>
- <TexCoords left="0.00390625" right="0.03515625" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="!HelpPlateBox-Left" file="Interface\TalentFrame\TalentFrame-Vertical2" virtual="true" vertTile="true" >
- <Size x="8" y="32"/>
- <TexCoords left="0.04296875" right="0.07421875" top="0.00000000" bottom="1.00000000"/>
- </Texture>
- <Texture name="_HelpPlateBox-Top" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="8"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.00390625" bottom="0.03515625"/>
- </Texture>
- <Texture name="_HelpPlateBox-Bottom" file="Interface\TalentFrame\TalentFrame-Horizontal2" virtual="true" horizTile="true" >
- <Size x="32" y="8"/>
- <TexCoords left="0.00000000" right="1.00000000" top="0.04296875" bottom="0.07421875"/>
- </Texture>
- <Button name="UIPanelCloseButtonNoScripts" virtual="true">
- <Size x="32" y="32"/>
- <DisabledTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Disabled"/>
- <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
- <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
- <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
- </Button>
- <Button name="UIPanelHideButtonNoScripts" virtual="true">
- <Size x="32" y="32"/>
- <DisabledTexture atlas="UI-Panel-HideButton-Disabled" useAtlasSize="true" />
- <NormalTexture atlas="UI-Panel-HideButton-Up" useAtlasSize="true" />
- <PushedTexture atlas="UI-Panel-HideButton-Down" useAtlasSize="true" />
- <HighlightTexture atlas="UI-Panel-MinimizeButton-Highlight" alphaMode="ADD" useAtlasSize="true" />
- </Button>
- <Button name="UIPanelCloseButton" inherits="UIPanelCloseButtonNoScripts" virtual="true">
- <Scripts>
- <OnClick function="UIPanelCloseButton_OnClick"/>
- </Scripts>
- </Button>
- <Button name="UIStaticPopupSpecialCloseButton" inherits="UIPanelCloseButtonNoScripts" virtual="true">
- <Scripts>
- <OnClick function="UIPanelStaticPopupSpecialCloseButton_OnClick"/>
- </Scripts>
- </Button>
- <Frame name="ShadowOverlayTemplate" virtual="true">
- <Layers>
- <Layer level="OVERLAY">
- <Texture name="$parentTopLeft" file="Interface\Common\ShadowOverlay-Corner" parentKey="TopLeft">
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentTopRight" file="Interface\Common\ShadowOverlay-Corner" parentKey="TopRight">
- <Anchors>
- <Anchor point="TOPRIGHT"/>
- </Anchors>
- <TexCoords>
- <Rect ULx="0" ULy="1" LLx="1" LLy="1" URx="0" URy="0" LRx="1" LRy="0"/>
- </TexCoords>
- </Texture>
- <Texture name="$parentBottomLeft" file="Interface\Common\ShadowOverlay-Corner" parentKey="BottomLeft">
- <Anchors>
- <Anchor point="BOTTOMLEFT"/>
- </Anchors>
- <TexCoords>
- <Rect ULx="1" ULy="0" LLx="0" LLy="0" URx="1" URy="1" LRx="0" LRy="1"/>
- </TexCoords>
- </Texture>
- <Texture name="$parentBottomRight" file="Interface\Common\ShadowOverlay-Corner" parentKey="BottomRight">
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- <TexCoords>
- <Rect ULx="1" ULy="1" LLx="1" LLy="0" URx="0" URy="1" LRx="0" LRy="0"/>
- </TexCoords>
- </Texture>
- <Texture name="$parentTop" file="Interface\Common\ShadowOverlay-Top">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentBottom" file="Interface\Common\ShadowOverlay-Bottom">
- <Anchors>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentLeft" file="Interface\Common\ShadowOverlay-Left">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentRight" file="Interface\Common\ShadowOverlay-Right">
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPRIGHT"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Button name="UIPanelGoldButtonTemplate" virtual="true">
- <Size x="40" y="32"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" file="Interface\Buttons\UI-DialogBox-goldbutton-up-left">
- <Size x="64" y="32"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- <Anchor point="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Right" file="Interface\Buttons\UI-DialogBox-goldbutton-up-right">
- <Size x="32" y="32"/>
- <Anchors>
- <Anchor point="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Middle" file="Interface\Buttons\UI-DialogBox-goldbutton-up-middle">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad>
- self.Text:SetPoint("BOTTOM", 0, 12);
- if ( not self:IsEnabled() ) then
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-right");
- end
- </OnLoad>
- <OnMouseDown>
- if ( self:IsEnabled() ) then
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-down-right");
- end
- </OnMouseDown>
- <OnMouseUp>
- if ( self:IsEnabled() ) then
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
- end
- </OnMouseUp>
- <OnShow>
- if ( self:IsEnabled() ) then
- -- we need to reset our textures just in case we were hidden before a mouse up fired
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
- end
- </OnShow>
- <OnDisable>
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-disabled-right");
- </OnDisable>
- <OnEnable>
- self.Left:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-left");
- self.Middle:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-middle");
- self.Right:SetTexture("Interface\\Buttons\\UI-DialogBox-goldbutton-up-right");
- </OnEnable>
- <OnEnter>
- if(self.tooltipText ~= nil) then
- GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
- GameTooltip_SetTitle(GameTooltip, self.tooltipText);
- end
- </OnEnter>
- <OnLeave>
- if(self.tooltipText ~= nil) then
- GameTooltip:Hide();
- end
- </OnLeave>
- </Scripts>
- <ButtonText parentKey="Text"/>
- <NormalFont style="GameFontNormalOutline"/>
- <HighlightFont style="GameFontHighlightOutline"/>
- <DisabledFont style="GameFontDisable"/>
- <HighlightTexture inherits="UIPanelButtonHighlightTexture">
- <Anchors>
- <Anchor point="TOPLEFT" x="12" y="6"/>
- <Anchor point="BOTTOMRIGHT" x="-12" y="0"/>
- </Anchors>
- </HighlightTexture>
- </Button>
- <Button name="UIPanelButtonTemplate" inherits="UIPanelButtonNoTooltipTemplate" virtual="true">
- <Scripts>
- <OnEnter>
- if(self.tooltipText ~= nil) then
- GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
- GameTooltip_SetTitle(GameTooltip, self.tooltipText);
- end
- </OnEnter>
- <OnLeave>
- if(self.tooltipText ~= nil) then
- GameTooltip:Hide();
- end
- </OnLeave>
- </Scripts>
- </Button>
- <!--A super simple standard button that will widen on load to fit its text if its
- localized version is bigger than its current size + 40 padding. It will never reshrink.-->
- <Button name="UIPanelDynamicResizeButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true">
- <Scripts>
- <OnLoad function="DynamicResizeButton_Resize" inherit="append"/>
- </Scripts>
- </Button>
- <CheckButton name="UIRadioButtonTemplate" virtual="true">
- <Size>
- <AbsDimension x="16" y="16"/>
- </Size>
- <Layers>
- <Layer level="BACKGROUND">
- <FontString name="$parentText" inherits="GameFontNormalSmall" parentKey="text">
- <Anchors>
- <Anchor point="LEFT" relativePoint="RIGHT">
- <Offset>
- <AbsDimension x="5" y="0"/>
- </Offset>
- </Anchor>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <NormalTexture file="Interface\Buttons\UI-RadioButton">
- <TexCoords left="0" right="0.25" top="0" bottom="1"/>
- </NormalTexture>
- <HighlightTexture file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
- <TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
- </HighlightTexture>
- <CheckedTexture file="Interface\Buttons\UI-RadioButton">
- <TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
- </CheckedTexture>
- </CheckButton>
- <CheckButton name="UICheckButtonTemplate" virtual="true">
- <Size x="32" y="32"/>
- <Layers>
- <Layer level="ARTWORK">
- <FontString name="$parentText" inherits="GameFontNormalSmall" parentKey="text">
- <Anchors>
- <Anchor point="LEFT" relativePoint="RIGHT" x="-2" y="0"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
- <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
- <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
- <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
- <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
- </CheckButton>
- <!--
- *******************************************************************************
- GlowBoxArrowTemplate
- This is a bright yellow arrow with a glow around it
- *******************************************************************************
- -->
- <Frame name="GlowBoxArrowTemplate" virtual="true">
- <Size x="53" y="21"/>
- <Layers>
- <Layer level="ARTWORK">
- <Texture name="$parentArrow" parentKey="Arrow" inherits="HelpPlateArrowDOWN">
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="BORDER">
- <Texture name="$parentGlow" parentKey="Glow" inherits="HelpPlateArrow-GlowDOWN" alphaMode="ADD" alpha="0.5">
- <Anchors>
- <Anchor point="TOP"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <!--
- *******************************************************************************
- GlowBoxTemplate
- This is a bright yellow box with a glow around it
- *******************************************************************************
- -->
- <Frame name="GlowBoxTemplate" virtual="true">
- <Layers>
- <!--
- <Layer level="BACKGROUND" textureSubLevel="-1">
- <Texture name="$parentColorBorder" setAllPoints="true">
- <Color r="1" g="0.82353" b="0"/>
- </Texture>
- </Layer>
- -->
- <Layer level="BACKGROUND">
- <Texture name="$parentBg" parentKey="BG">
- <Anchors>
- <Anchor point="TOPLEFT" x="1" y="-1"/>
- <Anchor point="BOTTOMRIGHT" x="-1" y="1"/>
- </Anchors>
- <Color r="1" g="1" b="1"/>
- <Gradient orientation="VERTICAL">
- <MinColor r="0.23" g="0.19" b="0"/>
- <MaxColor r="0" g="0" b="0"/>
- </Gradient>
- </Texture>
- </Layer>
- <Layer level="BACKGROUND" textureSubLevel="-1">
- <Texture name="$parentGlowTopLeft" inherits="HelpPlateBox-Glow-TopLeft" parentKey="GlowTopLeft" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPLEFT" x="-6" y="6"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowTopRight" inherits="HelpPlateBox-Glow-TopRight" parentKey="GlowTopRight" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPRIGHT" x="6" y="6"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowBottomLeft" inherits="HelpPlateBox-Glow-BottomLeft" parentKey="GlowBottomLeft" alphaMode="ADD">
- <Anchors>
- <Anchor point="BOTTOMLEFT" x="-6" y="-6"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowBottomRight" inherits="HelpPlateBox-Glow-BottomRight" parentKey="GlowBottomRight" alphaMode="ADD">
- <Anchors>
- <Anchor point="BOTTOMRIGHT" x="6" y="-6"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowTop" inherits="_HelpPlateBox-Glow-Top" parentKey="GlowTop" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.GlowTopLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="TOPRIGHT" relativeKey="$parent.GlowTopRight" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowBottom" inherits="_HelpPlateBox-Glow-Bottom" parentKey="GlowBottom" alphaMode="ADD">
- <Anchors>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.GlowBottomLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.GlowBottomRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowLeft" inherits="!HelpPlateBox-Glow-Left" parentKey="GlowLeft" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.GlowTopLeft" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.GlowBottomLeft" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentGlowRight" inherits="!HelpPlateBox-Glow-Right" parentKey="GlowRight" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.GlowTopRight" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.GlowBottomRight" relativePoint="TOPRIGHT"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="BACKGROUND" textureSubLevel="-2">
- <Texture name="$parentShadowTopLeft" inherits="HelpPlateBox-Shadow-TopLeft" parentKey="ShadowTopLeft" >
- <Anchors>
- <Anchor point="TOPLEFT" x="-16" y="16"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowTopRight" inherits="HelpPlateBox-Shadow-TopRight" parentKey="ShadowTopRight" >
- <Anchors>
- <Anchor point="TOPRIGHT" x="16" y="16"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowBottomLeft" inherits="HelpPlateBox-Shadow-BottomLeft" parentKey="ShadowBottomLeft" >
- <Anchors>
- <Anchor point="BOTTOMLEFT" x="-16" y="-16"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowBottomRight" inherits="HelpPlateBox-Shadow-BottomRight" parentKey="ShadowBottomRight" >
- <Anchors>
- <Anchor point="BOTTOMRIGHT" x="16" y="-16"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowTop" inherits="_HelpPlateBox-Shadow-Top" parentKey="ShadowTop" >
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.ShadowTopLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="TOPRIGHT" relativeKey="$parent.ShadowTopRight" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowBottom" inherits="_HelpPlateBox-Shadow-Bottom" parentKey="ShadowBottom" >
- <Anchors>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.ShadowBottomLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ShadowBottomRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowLeft" inherits="!HelpPlateBox-Shadow-Left" parentKey="ShadowLeft" >
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.ShadowTopLeft" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.ShadowBottomLeft" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture name="$parentShadowRight" inherits="!HelpPlateBox-Shadow-Right" parentKey="ShadowRight" >
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.ShadowTopRight" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ShadowBottomRight" relativePoint="TOPRIGHT"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <!--
- *******************************************************************************
- Frame border element
- Can have any arbitrary NineSlice theme applied, appears over all frame
- content, but under any elements like tutorials, notifications, custom
- artwork, etc...
- *******************************************************************************
- -->
- <Frame name="NineSlicePanelTemplate" mixin="NineSlicePanelMixin" frameLevel="500" setAllPoints="true" virtual="true">
- <Scripts>
- <OnLoad method="OnLoad"/>
- </Scripts>
- </Frame>
- <!--
- *******************************************************************************
- InsetFrameTemplate
- This is the inner frame used for content by many panels.
- *******************************************************************************
- -->
- <Frame name="InsetFrameTemplate" useParentLevel="true" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="InsetFrameTemplate" type="string"/>
- </KeyValues>
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <!-- TODO: Convert this to atlas -->
- <Texture parentKey="Bg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true" setAllPoints="true"/>
- </Layer>
- </Layers>
- <Frames>
- <Frame parentKey="NineSlice" useParentLevel="true" inherits="NineSlicePanelTemplate"/>
- </Frames>
- </Frame>
- <!--
- *******************************************************************************
- Dialog Border Templates
- This family of borders are used when you want your frame to look like a
- dialog.
- *******************************************************************************
- -->
- <Frame name="DialogBorderNoCenterTemplate" useParentLevel="true" inherits="NineSlicePanelTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="Dialog" type="string"/>
- </KeyValues>
- </Frame>
- <Frame name="DialogBorderTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <!-- TODO: Convert this to atlas -->
- <Texture parentKey="Bg" file="Interface\DialogFrame\UI-DialogBox-Background" horizTile="true" vertTile="true">
- <Anchors>
- <Anchor point="TOPLEFT" x="7" y="-7"/>
- <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Frame name="DialogBorderDarkTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <!-- TODO: Convert this to atlas -->
- <Texture parentKey="Bg" file="Interface\DialogFrame\UI-DialogBox-Background-Dark" horizTile="true" vertTile="true">
- <Anchors>
- <Anchor point="TOPLEFT" x="7" y="-7"/>
- <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Frame name="DialogBorderTranslucentTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <Texture parentKey="Bg">
- <Anchors>
- <Anchor point="TOPLEFT" x="7" y="-7"/>
- <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="0.8"/>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Frame name="DialogBorderOpaqueTemplate" inherits="DialogBorderNoCenterTemplate" virtual="true">
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <Texture parentKey="Bg">
- <Anchors>
- <Anchor point="TOPLEFT" x="7" y="-7"/>
- <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="1"/>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <!--
- *******************************************************************************
- Dialog Header Template
- Header used for dialogs
- *******************************************************************************
- -->
- <Frame name="DialogHeaderTemplate" mixin="DialogHeaderMixin" virtual="true">
- <Size x="200" y="39"/>
- <KeyValues>
- <!-- 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 -->
- <KeyValue key="headerTextPadding" value="64" type="number"/>
- <!--Optional: Add this to inheriting frames in order to auotmatically set the text when the header loads-->
- <!--<KeyValue key="textString" value="MAINMENU_BUTTON" type="global"/>-->
- </KeyValues>
- <Anchors>
- <Anchor point="TOP" y="11" />
- </Anchors>
- <Layers>
- <Layer level="ARTWORK">
- <Texture parentKey="LeftBG" atlas="UI-Frame-DiamondMetal-Header-CornerLeft" texelSnappingBias="0.0" snapToPixelGrid="false">
- <Size x="32" y="39"/>
- <Anchors>
- <Anchor point="LEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="RightBG" atlas="UI-Frame-DiamondMetal-Header-CornerRight" texelSnappingBias="0.0" snapToPixelGrid="false">
- <Size x="32" y="39"/>
- <Anchors>
- <Anchor point="RIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="CenterBG" atlas="_UI-Frame-DiamondMetal-Header-Tile" horizTile="true" texelSnappingBias="0.0" snapToPixelGrid="false">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.LeftBG" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightBG" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <FontString parentKey="Text" inherits="GameFontNormal">
- <Anchors>
- <Anchor point="TOP" y="-13"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad method="OnLoad"/>
- </Scripts>
- </Frame>
- <!--
- *******************************************************************************
- Simple Panel templates
- Barebones panel templates that can have space for a button bar at the bottom
- and an inset for content, the inset defaults to being vertically centered
- with sufficient padding for a bottom row of buttons
- *******************************************************************************
- -->
- <Frame name="SimplePanelTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="SimplePanelTemplate" type="string"/>
- </KeyValues>
- <Size x="338" y="424"/>
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-6">
- <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="-6"/>
- <Anchor point="BOTTOMRIGHT" x="-2" y="3"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Frame parentKey="Inset" inherits="InsetFrameTemplate">
- <Anchors>
- <Anchor point="TOPLEFT" x="4" y="-26"/>
- <Anchor point="BOTTOMRIGHT" x="-6" y="26"/>
- </Anchors>
- </Frame>
- <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
- </Frames>
- </Frame>
- <!--
- *******************************************************************************
- Default Panel templates
- This is a standard empty frame with a title.
- It makes its own nine-slice border.
- *******************************************************************************
- -->
- <Frame name="DefaultPanelTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="ButtonFrameTemplateNoPortrait" type="string"/>
- </KeyValues>
- <Size x="338" y="424"/>
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-6">
- <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
- <Anchors>
- <Anchor point="TOPLEFT" x="2" y="-21"/>
- <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
- </Anchors>
- </Texture>
- <Texture name="$parentTitleBg" parentKey="TitleBg" inherits="_UI-Frame-TitleTileBg">
- <Anchors>
- <Anchor point="TOPLEFT" x="2" y="-2"/>
- <Anchor point="TOPRIGHT" x="-25" y="-2"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="BACKGROUND" textureSubLevel="-5">
- <Texture name="$parentTopTileStreaks" parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="-21"/>
- <Anchor point="TOPRIGHT" x="-2" y="-21"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="OVERLAY">
- <FontString name="$parentTitleText" inherits="GameFontNormal" parentKey="TitleText" wordwrap="false">
- <Anchors>
- <Anchor point="TOPLEFT" x="25"/>
- <Anchor point="TOPRIGHT" x="-25"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Frames>
- <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
- </Frames>
- </Frame>
- <!--
- *******************************************************************************
- PortraitFrameTemplate
- This is an empty frame with space for a portrait/icon in the top left corner.
- *******************************************************************************
- -->
- <Frame name="PortraitFrameTemplateNoCloseButton" mixin="PortraitFrameMixin" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="PortraitFrameTemplate" type="string"/>
- </KeyValues>
- <Size x="338" y="424"/>
- <Layers>
- <Layer level="BACKGROUND" textureSubLevel="-6">
- <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true" parentKey="Bg">
- <Anchors>
- <Anchor point="TOPLEFT" x="2" y="-21"/>
- <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
- </Anchors>
- </Texture>
- <Texture parentKey="TitleBg" inherits="_UI-Frame-TitleTileBg">
- <Anchors>
- <Anchor point="TOPLEFT" x="2" y="-3"/>
- <Anchor point="TOPRIGHT" x="-25" y="-3"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="OVERLAY" textureSubLevel="-1">
- <Texture name="$parentPortrait" parentKey="portrait">
- <Size x="61" y="61"/>
- <Anchors>
- <Anchor point="TOPLEFT" x="-6" y="8" />
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="OVERLAY">
- <FontString name="$parentTitleText" inherits="GameFontNormal" text="" parentKey="TitleText" wordwrap="false">
- <Anchors>
- <Anchor point="TOP" x="0" y="-5"/>
- <Anchor point="LEFT" x="60"/>
- <Anchor point="RIGHT" x="-60"/>
- </Anchors>
- </FontString>
- </Layer>
- <Layer level="BORDER">
- <Texture parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="-21"/>
- <Anchor point="TOPRIGHT" x="-2" y="-21"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Frame parentKey="NineSlice" inherits="NineSlicePanelTemplate"/>
- </Frames>
- </Frame>
- <Frame name="PortraitFrameTemplate" inherits="PortraitFrameTemplateNoCloseButton" virtual="true">
- <Frames>
- <Button name="$parentCloseButton" parentKey="CloseButton" inherits="UIPanelCloseButton">
- <Anchors>
- <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="5.6" y="5"/>
- </Anchors>
- </Button>
- </Frames>
- </Frame>
- <Frame name="PortraitFrameTemplateMinimizable" inherits="PortraitFrameTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="PortraitFrameTemplateMinimizable" type="string"/>
- </KeyValues>
- </Frame>
- <!--
- *******************************************************************************
- ButtonFrameTemplate
- This is a Portrait Frame that also has space for buttons along the bottom
- edge, and includes an inset content area.
- Show/hide the Button bar using:
- ButtonFrameTemplate_HideButtonBar(self)
- ButtonFrameTemplate_ShowButtonBar(self)
- *******************************************************************************
- -->
- <Frame name="ButtonFrameTemplate" inherits="PortraitFrameTemplate" virtual="true">
- <Frames>
- <Frame name="$parentInset" parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
- <Anchors>
- <Anchor point="TOPLEFT" x="4" y="-60" />
- <Anchor point="BOTTOMRIGHT" x="-6" y="26" />
- </Anchors>
- </Frame>
- </Frames>
- </Frame>
- <!--
- *******************************************************************************
- ButtonFrameTemplateMinimizable
- This is a Button Frame that is minimizable
- Show/hide the Button bar using:
- ButtonFrameTemplate_HideButtonBar(self)
- ButtonFrameTemplate_ShowButtonBar(self)
- *******************************************************************************
- -->
- <Frame name="ButtonFrameTemplateMinimizable" inherits="ButtonFrameTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="layoutType" value="PortraitFrameTemplateMinimizable" type="string"/>
- </KeyValues>
- </Frame>
- <!--
- *******************************************************************************
- MagicButtonTemplate
- This is a template for buttons that can be used with ButtonFrameTemplate.
- Anchor either bottom corner to a ButtonFrameTemplate, or anchor either top
- corner to another MagicButton. The buttons will automatically be positioned
- correctly and will be given the correct border art.
- NOTE: If you override the OnLoad script for a Magic Button, make sure to call
- "MagicButton_OnLoad" from within your script, or call inherited OnLoad script.
- *******************************************************************************
- -->
- <Button name="MagicButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true">
- <Size x="80" y="22"/>
- <Scripts>
- <OnLoad function="MagicButton_OnLoad" />
- </Scripts>
- </Button>
- <!--
- *******************************************************************************
- Tooltip bordered frame
- *******************************************************************************
- -->
- <Frame name="TooltipBorderedFrameTemplate" virtual="true">
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="BorderTopLeft" file="Interface\Tooltips\UI-Tooltip-TL">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderTopRight" file="Interface\Tooltips\UI-Tooltip-TR">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="TOPRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderBottomRight" file="Interface\Tooltips\UI-Tooltip-BR">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderBottomLeft" file="Interface\Tooltips\UI-Tooltip-BL">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderTop" file="Interface\Tooltips\UI-Tooltip-T">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="TOPRIGHT" relativeKey="$parent.BorderTopRight" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderRight" file="Interface\Tooltips\UI-Tooltip-R">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.BorderTopRight" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="TOPRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderBottom" file="Interface\Tooltips\UI-Tooltip-B">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderBottomLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="BorderLeft" file="Interface\Tooltips\UI-Tooltip-L">
- <Size x="8" y="8"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BorderBottomLeft" relativePoint="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Background">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.BorderTopLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BorderBottomRight" relativePoint="TOPLEFT"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="0.8"/>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Texture name="GreenCheckMarkTemplate" file="Interface\Scenarios\ScenarioIcon-Check" virtual="true">
- <Size x="16" y="16"/>
- </Texture>
- <Texture name="UIPanelButtonUpTexture" file="Interface\Buttons\UI-Panel-Button-Up" virtual="true">
- <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
- </Texture>
- <Texture name="UIPanelButtonDownTexture" file="Interface\Buttons\UI-Panel-Button-Down" virtual="true">
- <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
- </Texture>
- <Texture name="UIPanelButtonDisabledTexture" file="Interface\Buttons\UI-Panel-Button-Disabled" virtual="true">
- <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
- </Texture>
- <Texture name="UIPanelButtonDisabledDownTexture" file="Interface\Buttons\UI-Panel-Button-Disabled-Down" virtual="true">
- <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
- </Texture>
- <Button name="UIMenuButtonStretchTemplate" mixin="UIMenuButtonStretchMixin" virtual="true">
- <Size x="40" y="26"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="TopLeft" name="$parentTopLeft" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="6"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.09375" top="0" bottom="0.1875"/>
- </Texture>
- <Texture parentKey="TopRight" name="$parentTopRight" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="6"/>
- <Anchors>
- <Anchor point="TOPRIGHT"/>
- </Anchors>
- <TexCoords left="0.53125" right="0.625" top="0" bottom="0.1875"/>
- </Texture>
- <Texture parentKey="BottomLeft" name="$parentBottomLeft" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="6"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.09375" top="0.625" bottom="0.8125"/>
- </Texture>
- <Texture parentKey="BottomRight" name="$parentBottomRight" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="6"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- <TexCoords left="0.53125" right="0.625" top="0.625" bottom="0.8125"/>
- </Texture>
- <Texture parentKey="TopMiddle" name="$parentTopMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="56" y="6"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- <TexCoords left="0.09375" right="0.53125" top="0" bottom="0.1875"/>
- </Texture>
- <Texture parentKey="MiddleLeft" name="$parentMiddleLeft" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="14"/>
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.09375" top="0.1875" bottom="0.625"/>
- </Texture>
- <Texture parentKey="MiddleRight" name="$parentMiddleRight" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="12" y="14"/>
- <Anchors>
- <Anchor point="TOPRIGHT" relativeKey="$parent.TopRight" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomRight" relativePoint="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0.53125" right="0.625" top="0.1875" bottom="0.625"/>
- </Texture>
- <Texture parentKey="BottomMiddle" name="$parentBottomMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="56" y="6"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.BottomLeft" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- <TexCoords left="0.09375" right="0.53125" top="0.625" bottom="0.8125"/>
- </Texture>
- <Texture parentKey="MiddleMiddle" name="$parentMiddleMiddle" file="Interface\Buttons\UI-Silver-Button-Up">
- <Size x="56" y="14"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.TopLeft" relativePoint="BOTTOMRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRight" relativePoint="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0.09375" right="0.53125" top="0.1875" bottom="0.625"/>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnMouseDown method="OnMouseDown"/>
- <OnMouseUp method="OnMouseUp"/>
- <OnShow method="OnShow"/>
- <OnEnable method="OnEnable"/>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- </Scripts>
- <ButtonText parentKey="Text" name="$parentText">
- <Anchors>
- <Anchor point="CENTER" x="0" y="-1"/>
- </Anchors>
- </ButtonText>
- <NormalFont style="GameFontHighlightSmall"/>
- <HighlightFont style="GameFontHighlightSmall"/>
- <DisabledFont style="GameFontDisableSmall"/>
- <HighlightTexture file="Interface\Buttons\UI-Silver-Button-Highlight" alphaMode="ADD">
- <TexCoords left="0" right="1.0" top="0.03" bottom="0.7175"/>
- </HighlightTexture>
- </Button>
- <Button name="UIGoldBorderButtonTemplate" virtual="true">
- <Size x="105" y="22"/>
- <Anchors>
- <Anchor point="BOTTOM" relativeTo="$parentDetails" x="0" y="5"/>
- </Anchors>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture file="Interface\Common\dark-goldframe-button" >
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="2"/>
- <Anchor point="BOTTOMRIGHT" x="0" y="-2"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad function="RaiseFrameLevel"/>
- </Scripts>
- <NormalFont style="GameFontNormal"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- <PushedTexture file="Interface\Common\dark-goldframe-button-pressed"/>
- <HighlightTexture file="Interface\Buttons\UI-Silver-Button-Highlight" alphaMode="ADD">
- <TexCoords left="0" right="1.0" top="0.03" bottom="0.7175"/>
- </HighlightTexture>
- </Button>
- <Button name="UIPanelButtonGrayTemplate" virtual="true">
- <NormalFont style="GameFontHighlight"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- <NormalTexture inherits="UIPanelButtonDisabledTexture"/>
- <PushedTexture inherits="UIPanelButtonDisabledDownTexture"/>
- <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
- <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
- </Button>
- <Slider name="HorizontalSliderTemplate" orientation="HORIZONTAL" enableMouse="true" virtual="true" inherits="BackdropTemplate">
- <HitRectInsets>
- <AbsInset left="0" right="0" top="-10" bottom="-10"/>
- </HitRectInsets>
- <KeyValues>
- <KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
- </KeyValues>
- <ThumbTexture parentKey="Thumb" name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
- <Size x="32" y="32"/>
- </ThumbTexture>
- </Slider>
- <Slider name="UIPanelStretchableArtScrollBarTemplate" inherits="UIPanelScrollBarTemplate" virtual="true">
- <Size x="20" y="0" />
- <Anchors>
- <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="6" y="-17"/>
- <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="17"/>
- </Anchors>
- <Layers>
- <Layer level="ARTWORK">
- <Texture parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="24" y="48"/>
- <Anchors>
- <Anchor point="TOPLEFT" x="-3" y="18"/>
- </Anchors>
- <TexCoords left="0" right="0.45" top="0" bottom=".20"/>
- </Texture>
- <Texture parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="24" y="64"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT" x="-3" y="-16"/>
- </Anchors>
- <TexCoords left="0.515625" right="0.97" top="0.1440625" bottom="0.4140625"/>
- </Texture>
- <Texture parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" relativePoint="TOPRIGHT"/>
- </Anchors>
- <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
- </Texture>
- </Layer>
- <Layer level="ARTWORK" textureSubLevel="-1">
- <Texture parentKey="Background">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Top" x="3" />
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" x="-3"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="1"/>
- </Texture>
- </Layer>
- </Layers>
- </Slider>
- <Slider name="UIPanelScrollBarTrimTemplate" virtual="true">
- <Size x="20" y="0"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture name="$parentBG" setAllPoints="true" hidden="true">
- <Color r="0" g="0" b="0" a=".85"/>
- </Texture>
- </Layer>
- <Layer level="ARTWORK">
- <Texture name="$parentTop" parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="24" y="48"/>
- <Anchors>
- <Anchor point="TOPLEFT" x="-4" y="17"/>
- </Anchors>
- <TexCoords left="0" right="0.45" top="0" bottom=".20"/>
- </Texture>
- <Texture name="$parentBottom" parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="24" y="64"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT" x="-4" y="-15"/>
- </Anchors>
- <TexCoords left="0.515625" right="0.97" top="0.1440625" bottom="0.4140625"/>
- </Texture>
- <Texture name="$parentMiddle" parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Anchors>
- <Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
- </Anchors>
- <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Button name="$parentScrollUpButton" parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
- <Anchors>
- <Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-2"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() - scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Button name="$parentScrollDownButton" parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
- <Anchors>
- <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="2"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() + scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- </Frames>
- <Scripts>
- <OnValueChanged>
- self:GetParent():SetVerticalScroll(value);
- </OnValueChanged>
- </Scripts>
- <ThumbTexture name="$parentThumbTexture" parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
- <Size x="18" y="24"/>
- <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
- </ThumbTexture>
- </Slider>
- <Slider name="UIPanelScrollBarTemplateLightBorder" virtual="true">
- <Size x="16" y="0"/>
- <Frames>
- <Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
- <Anchors>
- <Anchor point="BOTTOM" relativePoint="TOP"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- parent:SetValue(parent:GetValue() - (parent:GetHeight() / 2));
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
- <Anchors>
- <Anchor point="TOP" relativePoint="BOTTOM"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- parent:SetValue(parent:GetValue() + (parent:GetHeight() / 2));
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Frame name="$parentBorder" inherits="TooltipBorderBackdropTemplate">
- <Size x="24" y="0"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeTo="$parentScrollUpButton" x="-5" y="5"/>
- <Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollDownButton" x="5" y="-3"/>
- </Anchors>
- <KeyValues>
- <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
- </KeyValues>
- </Frame>
- </Frames>
- <Scripts>
- <OnValueChanged>
- self:GetParent():SetVerticalScroll(value);
- </OnValueChanged>
- </Scripts>
- <ThumbTexture name="$parentThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
- <Size x="16" y="24"/>
- <TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875"/>
- </ThumbTexture>
- </Slider>
- <Slider name="MinimalScrollBarTemplate" virtual="true">
- <Size>
- <AbsDimension x="22" y="0"/>
- </Size>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture name="$parentTrack" parentKey="trackBG">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="17"/>
- <Anchor point="BOTTOMRIGHT" x="0" y="-17"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="1"/>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Button name="$parentScrollUpButton" parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
- <Anchors>
- <Anchor point="TOP" x="0" y="15"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() - scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Button name="$parentScrollDownButton" parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
- <Anchors>
- <Anchor point="BOTTOM" x="0" y="-15"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() + scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- </Frames>
- <Scripts>
- <OnValueChanged>
- self:GetParent():SetVerticalScroll(value);
- </OnValueChanged>
- </Scripts>
- <ThumbTexture name="$parentThumbTexture" parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
- <Size x="18" y="24"/>
- <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
- </ThumbTexture>
- </Slider>
- <Slider name="MinimalScrollBarWithBorderTemplate" virtual="true">
- <Size x="22" y="0"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Track">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="17"/>
- <Anchor point="BOTTOMRIGHT" x="0" y="-17"/>
- </Anchors>
- <Color r="0" g="0" b="0" a="1"/>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Button parentKey="ScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
- <Anchors>
- <Anchor point="TOP" x="0" y="15"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() - scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Button parentKey="ScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
- <Anchors>
- <Anchor point="BOTTOM" x="0" y="-15"/>
- </Anchors>
- <Scripts>
- <OnClick>
- local parent = self:GetParent();
- local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
- parent:SetValue(parent:GetValue() + scrollStep);
- PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
- </OnClick>
- </Scripts>
- </Button>
- <Frame parentKey="ScrollUpBorder" inherits="TooltipBorderBackdropTemplate">
- <Size x="24" y="0"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.ScrollUpButton" x="-5" y="5"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollUpButton" x="5" y="-3"/>
- </Anchors>
- <KeyValues>
- <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
- </KeyValues>
- </Frame>
- <Frame parentKey="ScrollDownBorder" inherits="TooltipBorderBackdropTemplate">
- <Size x="24" y="0"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.ScrollDownButton" x="-5" y="5"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollDownButton" x="5" y="-3"/>
- </Anchors>
- <KeyValues>
- <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
- </KeyValues>
- </Frame>
- <Frame parentKey="Border" inherits="TooltipBorderBackdropTemplate">
- <Size x="24" y="0"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.ScrollUpButton" x="-5" y="5"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollDownButton" x="5" y="-3"/>
- </Anchors>
- <KeyValues>
- <KeyValue key="backdropBorderColorAlpha" value="0.5" type="number"/>
- </KeyValues>
- </Frame>
- </Frames>
- <Scripts>
- <OnValueChanged>
- self:GetParent():SetVerticalScroll(value);
- </OnValueChanged>
- </Scripts>
- <ThumbTexture parentKey="ThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
- <Size x="18" y="24"/>
- <TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
- </ThumbTexture>
- </Slider>
- <ScrollFrame name="UIPanelScrollFrameTemplate2" inherits="UIPanelScrollFrameTemplate" virtual="true">
- <Layers>
- <Layer level="ARTWORK">
- <Texture name="$parentTop" parentKey="Top" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="31" y="256"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativeTo="$parentScrollBarScrollUpButton" relativePoint="TOPLEFT" x="-8" y="5"/>
- </Anchors>
- <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentBottom" parentKey="Bottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Size x="31" y="106"/>
- <Anchors>
- <Anchor point="BOTTOMLEFT" relativeTo="$parentScrollBarScrollDownButton" relativePoint="BOTTOMLEFT" x="-8" y="-2"/>
- </Anchors>
- <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
- </Texture>
- <Texture parentKey="Middle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Bottom" relativePoint="TOPRIGHT"/>
- </Anchors>
- <TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
- </Texture>
- </Layer>
- </Layers>
- </ScrollFrame>
- <!-- This is a scrollframe with no border and a black texture for a track -->
- <ScrollFrame name="MinimalScrollFrameTemplate" inherits="UIPanelScrollFrameCodeTemplate" virtual="true">
- <Frames>
- <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
- <Anchors>
- <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-17"/>
- <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="17"/>
- </Anchors>
- </Slider>
- </Frames>
- </ScrollFrame>
- <ScrollFrame name="FauxScrollFrameTemplateLight" virtual="true">
- <Frames>
- <Slider name="$parentScrollBar" inherits="UIPanelScrollBarTemplateLightBorder">
- <Anchors>
- <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="6" y="-16"/>
- <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="16"/>
- </Anchors>
- </Slider>
- </Frames>
- <Scripts>
- <OnLoad>
- ScrollFrame_OnLoad(self);
- </OnLoad>
- <OnScrollRangeChanged function=""/>
- <OnVerticalScroll>
- local scrollbar = _G[self:GetName().."ScrollBar"];
- scrollbar:SetValue(offset);
- local min, max = scrollbar:GetMinMaxValues();
- if ( offset == 0 ) then
- _G[scrollbar:GetName().."ScrollUpButton"]:Disable();
- else
- _G[scrollbar:GetName().."ScrollUpButton"]:Enable();
- end
- if ((scrollbar:GetValue() - max) == 0) then
- _G[scrollbar:GetName().."ScrollDownButton"]:Disable();
- else
- _G[scrollbar:GetName().."ScrollDownButton"]:Enable();
- end
- </OnVerticalScroll>
- <OnMouseWheel>
- ScrollFrameTemplate_OnMouseWheel(self, delta);
- </OnMouseWheel>
- </Scripts>
- <ScrollChild>
- <Frame name="$parentScrollChildFrame">
- <Size x="300" y="334"/>
- </Frame>
- </ScrollChild>
- </ScrollFrame>
- <EditBox name="NumericInputSpinnerTemplate" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate" mixin="NumericInputSpinnerMixin" virtual="true">
- <Size x="31" y="20"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" file="Interface\Common\Common-Input-Border">
- <Size x="8" y="20"/>
- <Anchors>
- <Anchor point="LEFT" x="-5" y="0"/>
- </Anchors>
- <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
- </Texture>
- <Texture parentKey="Right" file="Interface\Common\Common-Input-Border">
- <Size x="8" y="20"/>
- <Anchors>
- <Anchor point="RIGHT" x="0" y="0"/>
- </Anchors>
- <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
- </Texture>
- <Texture parentKey="Middle" file="Interface\Common\Common-Input-Border">
- <Size x="10" y="20"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
- <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
- </Anchors>
- <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Button parentKey="IncrementButton">
- <Size x="23" y="22"/>
- <Anchors>
- <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
- </Anchors>
- <Scripts>
- <OnMouseDown>
- if self:IsEnabled() then
- PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
- self:GetParent():StartIncrement();
- end
- </OnMouseDown>
- <OnMouseUp>
- self:GetParent():EndIncrement();
- </OnMouseUp>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- <Button parentKey="DecrementButton">
- <Size x="23" y="22"/>
- <Anchors>
- <Anchor point="RIGHT" relativePoint="LEFT" x="-6" y="0"/>
- </Anchors>
- <Scripts>
- <OnMouseDown>
- if self:IsEnabled() then
- PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
- self:GetParent():StartDecrement();
- end
- </OnMouseDown>
- <OnMouseUp>
- self:GetParent():EndDecrement();
- </OnMouseUp>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- <Frame parentKey="MouseWheelCatcher" enableMouse="true" useParentLevel="true">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.DecrementButton" />
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.IncrementButton" />
- </Anchors>
- <Scripts>
- <OnMouseWheel>
- if self:GetParent():IsEnabled() then
- local amount = IsShiftKeyDown() and 10 or 1;
- if delta > 0 then
- self:GetParent():Increment(amount);
- else
- self:GetParent():Decrement(amount);
- end
- self:GetParent():ClearFocus();
- end
- </OnMouseWheel>
- </Scripts>
- </Frame>
- </Frames>
- <Scripts>
- <OnEscapePressed function="EditBox_ClearFocus"/>
- <OnEditFocusLost function="EditBox_ClearHighlight"/>
- <OnEditFocusGained function="EditBox_HighlightText"/>
- <OnTextChanged method="OnTextChanged" />
- </Scripts>
- <FontString inherits="ChatFontNormal"/>
- </EditBox>
- <EditBox name="InputBoxInstructionsTemplate" inherits="InputBoxTemplate" virtual="true">
- <!--KeyValues>
- Optional
- <KeyValue key="disabledColor" value="GRAY_FONT_COLOR" type="global"/>
- <KeyValue key="enabledColor" value="HIGHLIGHT_FONT_COLOR" type="global"/>
- </KeyValues-->
- <Layers>
- <Layer level="ARTWORK">
- <FontString parentKey="Instructions" justifyH="LEFT" justifyV="MIDDLE" inherits="GameFontDisableSmall" setAllPoints="true">
- <Color r="0.35" g="0.35" b="0.35"/>
- </FontString>
- </Layer>
- </Layers>
- <Scripts>
- <OnTextChanged function="InputBoxInstructions_OnTextChanged"/>
- <OnDisable function="InputBoxInstructions_OnDisable"/>
- <OnEnable function="InputBoxInstructions_OnEnable"/>
- </Scripts>
- <FontString inherits="GameFontHighlightSmall"/>
- </EditBox>
- <EditBox name="SearchBoxTemplate" inherits="InputBoxInstructionsTemplate" autoFocus="false" virtual="true">
- <Layers>
- <Layer level="OVERLAY">
- <Texture name="$parentSearchIcon" atlas="common-search-magnifyingglass" useAtlasSize="false" parentKey="searchIcon">
- <Size x="10" y="10"/>
- <Anchors>
- <Anchor point="LEFT" x="1" y="-1"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Button name="$parentClearButton" parentKey="clearButton" hidden="true">
- <Size x="17" y="17"/>
- <Anchors>
- <Anchor point="RIGHT" x="-3" y="0"/>
- </Anchors>
- <Layers>
- <Layer level="ARTWORK">
- <Texture atlas="common-search-clearbutton" useAtlasSize="false" alpha="0.5" parentKey="texture">
- <Size>
- <AbsDimension x="10" y="10"/>
- </Size>
- <Anchors>
- <Anchor point="TOPLEFT" x="3" y="-3"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnEnter>
- self.texture:SetAlpha(1.0);
- </OnEnter>
- <OnLeave>
- self.texture:SetAlpha(0.5);
- </OnLeave>
- <OnMouseDown>
- if self:IsEnabled() then
- self.texture:SetPoint("TOPLEFT", self, "TOPLEFT", 4, -4);
- end
- </OnMouseDown>
- <OnMouseUp>
- self.texture:SetPoint("TOPLEFT", self, "TOPLEFT", 3, -3);
- </OnMouseUp>
- <OnClick function="SearchBoxTemplateClearButton_OnClick"/>
- </Scripts>
- </Button>
- </Frames>
- <Scripts>
- <OnLoad function="SearchBoxTemplate_OnLoad"/>
- <OnEscapePressed function="EditBox_ClearFocus"/>
- <OnEnterPressed function="EditBox_ClearFocus"/>
- <OnEditFocusLost function="SearchBoxTemplate_OnEditFocusLost"/>
- <OnEditFocusGained function="SearchBoxTemplate_OnEditFocusGained"/>
- <OnTextChanged function="SearchBoxTemplate_OnTextChanged"/>
- </Scripts>
- </EditBox>
- <Button name="TabButtonTemplate" virtual="true">
- <Size>
- <AbsDimension x="115" y="32"/>
- </Size>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture name="$parentLeftDisabled" parentKey="LeftDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
- <Size>
- <AbsDimension x="16" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="BOTTOMLEFT">
- <Offset>
- <AbsDimension x="0" y="-3"/>
- </Offset>
- </Anchor>
- </Anchors>
- <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentMiddleDisabled" parentKey="MiddleDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
- <Size>
- <AbsDimension x="32" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.LeftDisabled" relativePoint="RIGHT"/>
- </Anchors>
- <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentRightDisabled" parentKey="RightDisabled" file="Interface\HelpFrame\HelpFrameTab-Active">
- <Size>
- <AbsDimension x="16" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.MiddleDisabled" relativePoint="RIGHT"/>
- </Anchors>
- <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentLeft" parentKey="Left" file="Interface\HelpFrame\HelpFrameTab-Inactive">
- <Size>
- <AbsDimension x="16" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="BOTTOMLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.25" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentMiddle" parentKey="Middle" file="Interface\HelpFrame\HelpFrameTab-Inactive">
- <Size>
- <AbsDimension x="32" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
- </Anchors>
- <TexCoords left="0.25" right="0.75" top="0" bottom="1.0"/>
- </Texture>
- <Texture name="$parentRight" parentKey="Right" file="Interface\HelpFrame\HelpFrameTab-Inactive">
- <Size>
- <AbsDimension x="16" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Middle" relativePoint="RIGHT"/>
- </Anchors>
- <TexCoords left="0.75" right="1.0" top="0" bottom="1.0"/>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad>
- PanelTemplates_TabResize(self, 0, nil, self.minWidth);
- </OnLoad>
- </Scripts>
- <ButtonText name="$parentText" parentKey="Text">
- <Size>
- <AbsDimension x="0" y="13"/>
- </Size>
- <Anchors>
- <Anchor point="BOTTOM">
- <Offset>
- <AbsDimension x="0" y="5"/>
- </Offset>
- </Anchor>
- </Anchors>
- </ButtonText>
- <NormalFont style="GameFontNormalSmall"/>
- <HighlightFont style="GameFontHighlightSmall"/>
- <DisabledFont style="GameFontDisableSmall"/>
- <HighlightTexture name="$parentHighlightTexture" parentKey="HighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
- <Size>
- <AbsDimension x="5" y="32"/>
- </Size>
- <Anchors>
- <Anchor point="BOTTOM">
- <Offset>
- <AbsDimension x="2" y="-8"/>
- </Offset>
- </Anchor>
- </Anchors>
- </HighlightTexture>
- </Button>
- <Frame name="LoadingSpinnerTemplate" virtual="true">
- <Size x="48" y="48"/>
- <Frames>
- <Frame parentKey="BackgroundFrame" setAllPoints="true">
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Background" file="Interface\COMMON\StreamBackground" setAllPoints="true">
- <Color r="1" g="0.82" b="0"/>
- </Texture>
- </Layer>
- <Layer level="ARTWORK">
- <Texture parentKey="Framing" file="Interface\COMMON\StreamFrame" setAllPoints="true"/>
- </Layer>
- </Layers>
- </Frame>
- <Frame parentKey="AnimFrame" setAllPoints="true">
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Circle" file="Interface\COMMON\StreamCircle" setAllPoints="true">
- <Color r="1" g="0.82" b="0"/>
- </Texture>
- </Layer>
- <Layer level="OVERLAY">
- <Texture parentKey="Spark" file="Interface\COMMON\StreamSpark" setAllPoints="true"/>
- </Layer>
- </Layers>
- </Frame>
- </Frames>
- <Animations>
- <AnimationGroup parentKey="Anim" looping="REPEAT">
- <Rotation childKey="AnimFrame" order="1" duration="1" degrees="-360"/>
- </AnimationGroup>
- </Animations>
- </Frame>
- <Frame name="MaximizeMinimizeButtonFrameTemplate" parentKey="MaxMinButtonFrame" mixin="MaximizeMinimizeButtonFrameMixin" virtual="true">
- <Size x="32" y="32"/>
- <Frames>
- <Button parentKey="MaximizeButton" setAllPoints="true" hidden="true">
- <HitRectInsets left="5" right="5" top="5" bottom="5"/>
- <Scripts>
- <OnClick>
- self:GetParent():Maximize();
- PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-Panel-BiggerButton-Up"/>
- <PushedTexture file="Interface\Buttons\UI-Panel-BiggerButton-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-Panel-BiggerButton-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
- </Button>
- <Button parentKey="MinimizeButton" setAllPoints="true">
- <HitRectInsets left="5" right="5" top="5" bottom="5"/>
- <Scripts>
- <OnClick>
- self:GetParent():Minimize();
- PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-Panel-SmallerButton-Up"/>
- <PushedTexture file="Interface\Buttons\UI-Panel-SmallerButton-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-Panel-SmallerButton-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
- </Button>
- </Frames>
- <Scripts>
- <OnShow method="OnShow"/>
- </Scripts>
- </Frame>
- <!--
- *******************************************************************************
- TruncatedButtonTemplate
- This button template will truncate any text that goes out of the button. If text is truncated,
- the button will have a tooltip with the full text.
- *******************************************************************************
- -->
- <Button name="TruncatedButtonTemplate" motionScriptsWhileDisabled="true" virtual="true">
- <ButtonText name="$parentText" parentKey="Text"/>
- <Scripts>
- <OnSizeChanged function="TruncatedButton_OnSizeChanged"/>
- <OnEnter function="TruncatedButton_OnEnter"/>
- <OnLeave function="TruncatedButton_OnLeave"/>
- </Scripts>
- </Button>
- <Frame name="TruncatedTooltipScriptTemplate" virtual="true">
- <Scripts>
- <OnEnter function="TruncatedTooltipScript_OnEnter"/>
- <OnLeave function="TruncatedTooltipScript_OnLeave"/>
- </Scripts>
- </Frame>
- <!--
- *******************************************************************************
- TruncatedTooltipFontStringWrapperTemplate
- This frame template will automatically add a tooltip to the frame if the contained FontString is truncated
- Note that you MUST have a child FontString with ParentKey "Text"
- *******************************************************************************
- -->
- <Frame name="TruncatedTooltipFontStringWrapperTemplate" inherits="ResizeLayoutFrame" virtual="true" mixin="TruncatedTooltipFontStringWrapperMixin">
- <Scripts>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- </Scripts>
- </Frame>
- <!--
- *******************************************************************************
- ColumnDisplayTemplate
- This template will handle the column headers for a list. Currently, any
- adjoining scroll frame or list needs to be spaced manually to line up with
- the columns. It might be cool to support an API for displaying data with
- default behavior. That would lose us some flexibility though, and is
- outside the current scope (when this comment was written).
- *******************************************************************************
- -->
- <Frame name="ColumnDisplayTemplate" mixin="ColumnDisplayMixin" virtual="true">
- <Size x="0" y="60"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Background" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true"/>
- </Layer>
- <Layer level="ARTWORK">
- <Texture parentKey="TopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="0"/>
- <Anchor point="TOPRIGHT" x="0" y="0"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad method="OnLoad"/>
- </Scripts>
- </Frame>
- <Button name="ColumnDisplayButtonShortTemplate" virtual="true">
- <Size x="10" y="19"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="5" y="19"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.078125" top="0" bottom="0.59375"/>
- </Texture>
- <Texture parentKey="Right" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="4" y="19"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- <TexCoords left="0.90625" right="0.96875" top="0" bottom="0.59375"/>
- </Texture>
- <Texture parentKey="Middle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="0" y="19"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
- <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
- </Anchors>
- <TexCoords left="0.078125" right="0.90625" top="0" bottom="0.59375"/>
- </Texture>
- </Layer>
- </Layers>
- <ButtonText parentKey="Text">
- <Anchors>
- <Anchor point="LEFT" x="8" y="0"/>
- </Anchors>
- </ButtonText>
- <NormalFont style="GameFontHighlightSmall"/>
- <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPLEFT" x="0" y="0"/>
- <Anchor point="BOTTOMRIGHT" x="4" y="-2"/>
- </Anchors>
- </HighlightTexture>
- </Button>
- <Button name="ColumnDisplayButtonNoScriptsTemplate" virtual="true">
- <Size x="10" y="24"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="5" y="24"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- <TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
- </Texture>
- <Texture parentKey="Right" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="4" y="24"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- <TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
- </Texture>
- <Texture parentKey="Middle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
- <Size x="0" y="24"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
- <Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
- </Anchors>
- <TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
- </Texture>
- </Layer>
- </Layers>
- <ButtonText>
- <Anchors>
- <Anchor point="LEFT" x="8" y="0"/>
- </Anchors>
- </ButtonText>
- <NormalFont style="GameFontHighlightSmall"/>
- <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Left" x="0" y="5"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" x="0" y="-7"/>
- </Anchors>
- </HighlightTexture>
- </Button>
- <Button name="ColumnDisplayButtonTemplate" inherits="ColumnDisplayButtonNoScriptsTemplate" virtual="true">
- <Scripts>
- <OnClick function="ColumnDisplayButton_OnClick"/>
- </Scripts>
- </Button>
- <Button name="SquareIconButtonTemplate" mixin="SquareIconButtonMixin" virtual="true">
- <Size x="32" y="32"/>
- <!--
- icon: texture file to be displayed on the button.
- iconAtlas: atlas to be displayed on the button.
- tooltipText: displayed on the right of the button by default.
- onClickHandler: forwards the standard OnClick arguments.
- <KeyValues>
- <KeyValue key="icon" value="Interface\Buttons\UI-RefreshButton" type="string"/>
- <KeyValue key="iconAtlas" value="UI-RefreshButton" type="string"/>
- <KeyValue key="tooltipText" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
- <KeyValue key="onClickHandler" value="RefreshButton_OnClick" type="global"/>
- </KeyValues>
- -->
- <Layers>
- <Layer level="OVERLAY">
- <Texture parentKey="Icon">
- <Size x="16" y="16"/>
- <Anchors>
- <Anchor point="CENTER" x="-1" y="0"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnMouseDown method="OnMouseDown"/>
- <OnMouseUp method="OnMouseUp"/>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- <OnClick method="OnClick"/>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SquareButton-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SquareButton-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SquareButton-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- <Button name="RefreshButtonTemplate" inherits="SquareIconButtonTemplate" virtual="true">
- <KeyValues>
- <KeyValue key="iconAtlas" value="UI-RefreshButton" type="string"/>
- </KeyValues>
- </Button>
- <Button name="ThreeSliceButtonTemplate" mixin="ThreeSliceButtonMixin" motionScriptsWhileDisabled="true" virtual="true">
- <!--
- atlasName: The art kit to use for the 3 sections of the button.
- * The left textures will be "atlasName-Left", "atlasName-Left-Disabled" and "atlasName-Left-Pressed"
- * The right textures will be "atlasName-Right", "atlasName-Right-Disabled" and "atlasName-Right-Pressed"
- * The center textures will be "_atlasName-Center", "_atlasName-Disabled" and "_atlasName-Pressed"
- * The highlight texture will be "atlasName-Highlight"
- tooltip: This can be either a string or a function which returns a string
- <KeyValues>
- <KeyValue key="atlasName" value="128-RedButton" type="string"/>
- <KeyValue key="tooltip" value="MyTooltipFunction" type="global"/>
- or
- <KeyValue key="tooltip" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
- </KeyValues>
- -->
- <Size x="20" y="20"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left">
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Right">
- <Anchors>
- <Anchor point="TOPRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Center" horizTile="true">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <Frames>
- <Frame parentKey="Controller" mixin="ButtonControllerMixin">
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnShow method="OnShow"/>
- </Scripts>
- </Frame>
- </Frames>
- <Scripts>
- <OnMouseDown method="OnMouseDown"/>
- <OnMouseUp method="OnMouseUp"/>
- <OnShow method="UpdateButton"/>
- <OnDisable method="UpdateButton"/>
- <OnEnable method="UpdateButton"/>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- <OnSizeChanged method="UpdateScale"/>
- </Scripts>
- </Button>
- <Button name="BigRedThreeSliceButtonTemplate" inherits="ThreeSliceButtonTemplate" virtual="true">
- <Size x="441" y="128"/>
- <KeyValues>
- <KeyValue key="atlasName" value="128-RedButton" type="string"/>
- </KeyValues>
- <PushedTextOffset x="-2" y="-1"/>
- </Button>
- <Button name="SharedButtonTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
- <Size x="200" y="30"/>
- <NormalFont style="GameFontNormal"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- </Button>
- <Button name="SharedButtonLargeTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
- <Size x="200" y="30"/>
- <NormalFont style="GameFontNormalMed3"/>
- <HighlightFont style="GameFontHighlightMedium"/>
- <DisabledFont style="GameFontDisableMed3"/>
- </Button>
- <Button name="SharedButtonSmallTemplate" inherits="BigRedThreeSliceButtonTemplate" virtual="true">
- <Size x="138" y="28"/>
- <NormalFont style="GameFontNormal"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- </Button>
- <Button name="BigGoldRedThreeSliceButtonTemplate" inherits="ThreeSliceButtonTemplate" virtual="true">
- <Size x="441" y="128"/>
- <KeyValues>
- <KeyValue key="atlasName" value="128-GoldRedButton" type="string"/>
- </KeyValues>
- <PushedTextOffset x="-2" y="-1"/>
- </Button>
- <Button name="SharedGoldRedButtonTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
- <Size x="200" y="30"/>
- <NormalFont style="GameFontNormal"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- </Button>
- <Button name="SharedGoldRedButtonLargeTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
- <Size x="200" y="30"/>
- <NormalFont style="GameFontNormalMed3"/>
- <HighlightFont style="GameFontHighlightMedium"/>
- <DisabledFont style="GameFontDisableMed3"/>
- </Button>
- <Button name="SharedGoldRedButtonSmallTemplate" inherits="BigGoldRedThreeSliceButtonTemplate" virtual="true">
- <Size x="138" y="28"/>
- <NormalFont style="GameFontNormal"/>
- <HighlightFont style="GameFontHighlight"/>
- <DisabledFont style="GameFontDisable"/>
- </Button>
- <Button name="UIButtonTemplate" mixin="UIButtonMixin" virtual="true">
- <Size x="20" y="20"/>
- <!--
- atlasName: The art kit to use for the button.
- * The normal texture will be "atlasName"
- * The pressed texture will be "atlasName-Pressed"
- * The disabled texture will be "atlasName-Disabled"
- * The highlight texture will be "atlasName-Highlight"
- tooltip: This can be either a string or a function which returns a string
- <KeyValues>
- <KeyValue key="atlasName" value="128-RedButton" type="string"/>
- <KeyValue key="tooltip" value="MyTooltipFunction" type="global"/>
- or
- <KeyValue key="tooltip" value="REFRESH_BUTTON_TOOLTIP" type="string"/>
- </KeyValues>
- -->
- <Frames>
- <Frame parentKey="Controller" mixin="ButtonControllerMixin">
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnShow method="OnShow"/>
- </Scripts>
- </Frame>
- </Frames>
- </Button>
- <Button name="BigRedRefreshButtonTemplate" inherits="UIButtonTemplate" virtual="true">
- <Size x="128" y="128"/>
- <KeyValues>
- <KeyValue key="atlasName" value="128-RedButton-Refresh" type="string"/>
- </KeyValues>
- </Button>
- <Frame name="ResizeCheckButtonTemplate" inherits="ResizeLayoutFrame" mixin="ResizeCheckButtonMixin" virtual="true">
- <!--
- labelText: The text to use on the label
- <KeyValues>
- <KeyValue key="labelText" value="CHARACTER_TYPE_FRAME_TRIAL_BOOST_CHARACTER" type="global"/>
- </KeyValues>
- -->
- <Frames>
- <CheckButton parentKey="Button">
- <Size x="28" y="28"/>
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
- <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
- <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
- <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
- <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
- <Scripts>
- <OnClick>
- self:GetParent():OnCheckButtonClick();
- </OnClick>
- </Scripts>
- </CheckButton>
- </Frames>
- <Layers>
- <Layer level="ARTWORK">
- <FontString parentKey="Label" inherits="GameFontHighlightLarge">
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Button" relativePoint="RIGHT" x="2" y="0"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnShow method="OnShow"/>
- </Scripts>
- </Frame>
- <EditBox name="SharedEditBoxTemplate" mixin="SharedEditBoxMixin" virtual="true">
- <Size x="258" y="54"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" atlas="common-input-left" useAtlasSize="true">
- <Anchors>
- <Anchor point="TOPRIGHT" relativePoint="TOPLEFT"/>
- <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Right" atlas="common-input-left" useAtlasSize="true">
- <TexCoords left="1" right="0" top="0" bottom="1"/>
- <Anchors>
- <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Middle" atlas="common-input-middle" setAllPoints="true" />
- </Layer>
- </Layers>
- <FontString inherits="NumberFont_Shadow_Large"/>
- <Scripts>
- <OnLoad method="OnLoad"/>
- </Scripts>
- </EditBox>
- <Slider name="SharedHorizontalSliderTemplate" orientation="HORIZONTAL" obeyStepOnDrag="true" virtual="true">
- <Size x="300" y="20"/>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Track" atlas="common-slider-track" useAtlasSize="true">
- <Anchors>
- <Anchor point="CENTER"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- <ThumbTexture parentKey="Thumb" atlas="common-slider-thumb" useAtlasSize="true"/>
- </Slider>
- <Frame name="SliderWithButtonsAndLabelTemplate" inherits="ResizeLayoutFrame" mixin="SliderWithButtonsAndLabelMixin" virtual="true">
- <Size x="1" y="1"/>
- <Layers>
- <Layer level="ARTWORK">
- <FontString parentKey="Label" font="GameFontHighlightMedium">
- <KeyValues>
- <KeyValue key="ignoreInLayout" value="true" type="boolean"/>
- </KeyValues>
- <Anchors>
- <Anchor point="RIGHT" relativeKey="$parent.DecrementButton" relativePoint="LEFT" x="-50"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Frames>
- <Slider parentKey="Slider" inherits="SharedHorizontalSliderTemplate" scale="0.7">
- <Anchors>
- <Anchor point="CENTER"/>
- </Anchors>
- <Scripts>
- <OnEnter>
- self:GetParent():OnEnter();
- </OnEnter>
- <OnLeave>
- self:GetParent():OnLeave();
- </OnLeave>
- <OnValueChanged>
- self:GetParent():OnSliderValueChanged(value, userInput);
- </OnValueChanged>
- </Scripts>
- </Slider>
- <Button parentKey="IncrementButton" motionScriptsWhileDisabled="true">
- <Size x="32" y="32"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.Slider" relativePoint="RIGHT"/>
- </Anchors>
- <Scripts>
- <OnClick>
- self:GetParent():Increment();
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- <Button parentKey="DecrementButton" motionScriptsWhileDisabled="true">
- <Size x="32" y="32"/>
- <Anchors>
- <Anchor point="RIGHT" relativeKey="$parent.Slider" relativePoint="LEFT"/>
- </Anchors>
- <Scripts>
- <OnClick>
- self:GetParent():Decrement();
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- </Frames>
- </Frame>
- <Frame name="SelectionPopoutDetails" mixin="SelectionPopoutDetailsMixin" virtual="true">
- <Layers>
- <Layer level="ARTWORK" textureSubLevel="1">
- <FontString parentKey="SelectionNumber" font="GameFontNormal" justifyH="LEFT">
- <Size x="25" y="20"/>
- <Anchors>
- <Anchor point="LEFT"/>
- </Anchors>
- </FontString>
- <FontString parentKey="SelectionName" font="GameFontNormal" justifyH="LEFT" maxLines="1" hidden="true">
- <Size x="25" y="20"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT"/>
- </Anchors>
- </FontString>
- <Texture parentKey="ColorSwatch1" atlas="charactercreate-customize-palette" useAtlasSize="true" hidden="true">
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="ColorSwatch2" atlas="charactercreate-customize-palette" useAtlasSize="false" hidden="true">
- <Size x="36" y="8"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.SelectionNumber" relativePoint="RIGHT" x="18" y="-2"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="ARTWORK" textureSubLevel="2">
- <Texture parentKey="ColorSwatch1Glow" atlas="charactercreate-customize-palette-glow" useAtlasSize="true" alphaMode="ADD" hidden="true">
- <Anchors>
- <Anchor point="CENTER" relativeKey="$parent.ColorSwatch1" relativePoint="CENTER"/>
- </Anchors>
- </Texture>
- <Texture parentKey="ColorSwatch2Glow" atlas="charactercreate-customize-palette-glow" useAtlasSize="false" alphaMode="ADD" hidden="true">
- <Size x="36" y="8"/>
- <Anchors>
- <Anchor point="CENTER" relativeKey="$parent.ColorSwatch2" relativePoint="CENTER"/>
- </Anchors>
- </Texture>
- </Layer>
- <Layer level="ARTWORK" textureSubLevel="3">
- <Texture parentKey="ColorSelected" atlas="charactercreate-customize-palette-selected" useAtlasSize="true" hidden="true">
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.ColorSwatch1" relativePoint="LEFT" x="-4"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- <Button name="SelectionPopoutEntryTemplate" inherits="ResizeLayoutFrame" mixin="SelectionPopoutEntryMixin" virtual="true">
- <Size x="1" y="1"/>
- <ButtonText parentKey="ButtonText" setAllPoints="true"/>
- <KeyValues>
- <KeyValue key="widthPadding" value="14" type="number"/>
- </KeyValues>
- <Frames>
- <Frame parentKey="SelectionDetails" inherits="SelectionPopoutDetails">
- <Size x="144" y="20"/>
- </Frame>
- <Frame parentKey="HighlightBGTex" alpha="0" setAllPoints="true">
- <KeyValues>
- <KeyValue key="ignoreInLayout" value="true" type="boolean"/>
- </KeyValues>
- <Layers>
- <Layer level="BACKGROUND">
- <Texture parentKey="Left" atlas="charactercreate-customize-dropdown-linemouseover-side" useAtlasSize="true">
- <Anchors>
- <Anchor point="TOPLEFT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Right" atlas="charactercreate-customize-dropdown-linemouseover-side" useAtlasSize="true">
- <TexCoords left="1" right="0" top="0" bottom="1"/>
- <Anchors>
- <Anchor point="BOTTOMRIGHT"/>
- </Anchors>
- </Texture>
- <Texture parentKey="Middle" atlas="charactercreate-customize-dropdown-linemouseover-middle" useAtlasSize="true">
- <Anchors>
- <Anchor point="TOPLEFT" relativeKey="$parent.Left" relativePoint="TOPRIGHT"/>
- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" relativePoint="BOTTOMLEFT"/>
- </Anchors>
- </Texture>
- </Layer>
- </Layers>
- </Frame>
- </Frames>
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnClick method="OnClick"/>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- </Scripts>
- </Button>
- <Frame name="SelectionPopoutTemplate" inherits="ResizeLayoutFrame" mixin="SelectionPopoutMixin" virtual="true">
- <Size x="1" y="1"/>
- <KeyValues>
- <KeyValue key="widthPadding" value="6" type="number"/>
- <KeyValue key="heightPadding" value="32" type="number"/>
- </KeyValues>
- <Frames>
- <Frame parentKey="Border" useParentLevel="true" inherits="NineSlicePanelTemplate">
- <KeyValues>
- <KeyValue key="layoutType" value="CharacterCreateDropdown" type="string"/>
- </KeyValues>
- </Frame>
- </Frames>
- <Scripts>
- <OnShow method="OnShow"/>
- <OnMouseWheel function="nop"/>
- </Scripts>
- </Frame>
- <Button name="SelectionPopoutButtonTemplate" mixin="SelectionPopoutButtonMixin" virtual="true">
- <Size x="150" y="38"/>
- <NormalTexture parentKey="NormalTexture" atlas="charactercreate-customize-dropdownbox"/>
- <HighlightTexture parentKey="HighlightTexture" atlas="charactercreate-customize-dropdownbox-open" alphaMode="ADD" alpha="0"/>
- <PushedTextOffset x="2" y="-2"/>
- <ButtonText parentKey="ButtonText">
- <Anchors>
- <Anchor point="TOPLEFT" x="10" y="-10"/>
- <Anchor point="BOTTOMRIGHT" x="-10" y="10"/>
- </Anchors>
- </ButtonText>
- <Frames>
- <Frame parentKey="SelectionDetails" inherits="SelectionPopoutDetails, ResizeLayoutFrame" useParentLevel="true">
- <Size x="1" y="1"/>
- </Frame>
- <Frame parentKey="Popout" inherits="SelectionPopoutTemplate" hidden="true">
- <Anchors>
- <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="3" y="11"/>
- </Anchors>
- </Frame>
- </Frames>
- <Scripts>
- <OnLoad method="OnLoad"/>
- <OnHide method="OnHide"/>
- <OnClick method="OnClick"/>
- <OnMouseWheel method="OnMouseWheel"/>
- <OnEnter method="OnEnter"/>
- <OnLeave method="OnLeave"/>
- </Scripts>
- </Button>
- <Frame name="SelectionPopoutWithButtonsAndLabelTemplate" mixin="SelectionPopoutWithButtonsAndLabelMixin" virtual="true">
- <Size x="223" y="38"/>
- <Layers>
- <Layer level="ARTWORK">
- <FontString parentKey="Label" font="GameFontHighlightMed2">
- <Anchors>
- <Anchor point="RIGHT" relativeKey="$parent.DecrementButton" relativePoint="LEFT" x="-34"/>
- </Anchors>
- </FontString>
- </Layer>
- </Layers>
- <Frames>
- <Button parentKey="SelectionPopoutButton" inherits="SelectionPopoutButtonTemplate">
- <Size x="150" y="38"/>
- <Anchors>
- <Anchor point="CENTER"/>
- </Anchors>
- </Button>
- <Button parentKey="IncrementButton" motionScriptsWhileDisabled="true">
- <Size x="32" y="32"/>
- <Anchors>
- <Anchor point="LEFT" relativeKey="$parent.SelectionPopoutButton" relativePoint="RIGHT" x="4"/>
- </Anchors>
- <Scripts>
- <OnClick>
- self:GetParent():Increment();
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- <Button parentKey="DecrementButton" motionScriptsWhileDisabled="true">
- <Size x="32" y="32"/>
- <Anchors>
- <Anchor point="RIGHT" relativeKey="$parent.SelectionPopoutButton" relativePoint="LEFT" x="-5"/>
- </Anchors>
- <Scripts>
- <OnClick>
- self:GetParent():Decrement();
- </OnClick>
- </Scripts>
- <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
- <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
- <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
- <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
- </Button>
- </Frames>
- </Frame>
- <!--The DefaultScaleFrame template is used to allow a frame to appear to be "unscaled"
- That means that all the textures/fonts used should appear as the same size they do in Photoshop when authored.
- It is most useful in Glues, where we ALWAYS apply a UIScale, with no way to turn it off.
- But it can also be used in game in order to attain a consistent look on a panel.
- 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.-->
- <!--IMPORTANT:
- If you are inheriting from more than 1 frame, inherit this frame LAST (the right-most in the list).
- If you have your own mixin, use inherit="prepend" for OnLoad & OnEvent if you define them-->
- <Frame name="DefaultScaleFrame" mixin="DefaultScaleFrameMixin" virtual="true">
- <Scripts>
- <OnLoad method="OnDefaultScaleFrameLoad" inherit="prepend"/>
- <OnEvent method="OnDefaultScaleFrameEvent" inherit="prepend"/>
- </Scripts>
- </Frame>
- </Ui>