<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="Blizzard_GlyphUI.lua"/>
<Button name="GlyphSpellButtonTemplate" virtual="true">
<Size x="160" y="30"/>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentIcon" parentKey="icon">
<Size x="36" y="36"/>
<Anchors>
<Anchor point="LEFT" x="2" y="0"/>
</Anchors>
</Texture>
<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT" parentKey="name">
<Size x="110" y="12"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPRIGHT" x="4" y="-5"/>
</Anchors>
<Color r="1" g="1" b="1"/>
</FontString>
<FontString name="$parentTypeName" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="typeName">
<Size x="110" y="12"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
</Anchors>
<Color r="1" g="1" b="0.6"/>
</FontString>
</Layer>
<Layer level="OVERLAY" textureSubLevel="1">
<Texture parentKey="selectedTex" file="Interface\ClassTrainerFrame\TrainerTextures" hidden="true" alphaMode="ADD">
<TexCoords left="0.00195313" right="0.57421875" top="0.84960938" bottom="0.94140625"/>
</Texture>
</Layer>
<Layer level="BACKGROUND">
<Texture parentKey="disabledBG" hidden="true" alphaMode="MOD">
<Anchors>
<Anchor point="TOPLEFT" x="2" y="-2"/>
<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
</Anchors>
<Color r="0.55" g="0.55" b="0.55" a="1"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad> self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); </OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetGlyphByID(self.glyphID);
self.showingTooltip = true;
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip_Hide();
self.showingTooltip = false;
</OnLeave>
<OnClick>
GlyphFrameSpell_OnClick (self, button);
</OnClick>
</Scripts>
<NormalTexture file="Interface\ClassTrainerFrame\TrainerTextures">
<TexCoords left="0.00195313" right="0.57421875" top="0.65820313" bottom="0.75000000"/>
</NormalTexture>
<HighlightTexture name="$parentHighlight" file="Interface\ClassTrainerFrame\TrainerTextures" alphaMode="ADD">
<TexCoords left="0.00195313" right="0.57421875" top="0.75390625" bottom="0.84570313"/>
</HighlightTexture>
</Button>
<Button name="GlyphHeaderButtonTemplate" virtual="true">
<Size x="160" y="20"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentMiddle" file="Interface\Buttons\CollapsibleHeader" parentKey="middle">
<Size x="0" y="20"/>
<Anchors>
<Anchor point="LEFT" x="20" y="0"/>
<Anchor point="RIGHT" x="-20" y="0"/>
</Anchors>
<TexCoords left="0.48046875" right="0.98046875" top="0.01562500" bottom="0.26562500"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentLeft" file="Interface\Buttons\CollapsibleHeader" parentKey="leftEdge">
<Size x="76" y="20"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="LEFT" x="-20" y="0"/>
</Anchors>
<TexCoords left="0.17578125" right="0.47265625" top="0.29687500" bottom="0.54687500"/>
</Texture>
<Texture name="$parentRight" file="Interface\Buttons\CollapsibleHeader" parentKey="rightEdge">
<Size x="76" y="20"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentMiddle" relativePoint="RIGHT" x="20" y="0"/>
</Anchors>
<TexCoords left="0.17578125" right="0.47265625" top="0.01562500" bottom="0.26562500"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentExpandedIcon" parentKey="expandedIcon" inherits="Char-Stat-Minus">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" x="10" y="0"/>
</Anchors>
</Texture>
<Texture name="$parentCollapsedIcon" parentKey="collapsedIcon" inherits="Char-Stat-Plus">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" x="10" y="0"/>
</Anchors>
</Texture>
<Texture name="$parentIcon" parentKey="icon">
<Size x="14" y="14"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" x="26" y="0"/>
</Anchors>
<TexCoords left="0.08" right="0.92" top="0.08" bottom="0.92"/>
</Texture>
<FontString name="$parentName" inherits="GameFontNormal" parentKey="name">
<Anchors>
<Anchor point="CENTER" relativeTo="$parentMiddle" x="0" y="1"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick function="GlyphFrameHeader_OnClick"/>
<OnMouseDown>
if ( self:IsEnabled() ) then
self.middle:SetPoint("LEFT", 22, -2);
self.middle:SetPoint("RIGHT", -18, -2);
end
</OnMouseDown>
<OnMouseUp>
self.middle:SetPoint("LEFT", 20, 0);
self.middle:SetPoint("RIGHT", -20, 0);
</OnMouseUp>
</Scripts>
</Button>
<Button name="GlyphTemplate" virtual="true">
<Animations>
<AnimationGroup looping="REPEAT" parentKey="glow">
<Alpha target="$parentHighlight" change="0.5" duration="0.8" smoothing="IN_OUT" order="1"/>
<Alpha target="$parentHighlight" change="-0.5" duration="0.8" smoothing="IN_OUT" order="2"/>
</AnimationGroup>
</Animations>
<Size x="72" y="72"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentGlyph" parentKey="glyph">
<Size x="57" y="57"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentHighlight" file="Interface\TalentFrame\glyph-main" alphaMode="ADD" parentKey="highlight">
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentRing" file="Interface\TalentFrame\glyph-main" parentKey="ring">
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad function="GlyphFrameGlyph_OnLoad"/>
<OnShow function="GlyphFrameGlyph_UpdateSlot"/>
<OnClick function="GlyphFrameGlyph_OnClick"/>
<OnEnter function="GlyphFrameGlyph_OnEnter"/>
<OnLeave function="GlyphFrameGlyph_OnLeave"/>
<OnUpdate function="GlyphFrameGlyph_OnUpdate"/>
</Scripts>
</Button>
<Frame name="GlyphFrame" hidden="true" useParentLevel="true">
<!-- Sets parent in the GlyphFrame_OnEvent which handles the size and anchors. -->
<Size x="300" y="300"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\TalentFrame\glyph-bg" parentKey="background">
<Size x="437" y="413"/>
<Anchors>
<Anchor point="TOPLEFT" x="1"/>
</Anchors>
<TexCoords left="0.00195313" right="0.85546875" top="0.00097656" bottom="0.40429688"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentSpecRing" file="Interface\TalentFrame\glyph-speccover" parentKey="specRing">
<Size x="128" y="128"/>
<Anchors>
<Anchor point="CENTER" x="-1" y="-20"/>
</Anchors>
</Texture>
<Texture name="$parentGlow" parentKey="glow" file="Interface\TalentFrame\glyph-bg" alphaMode="ADD">
<Animations>
<AnimationGroup name="$parentPulse" parentKey="pulse">
<Alpha name="$parentIn" change="1" duration="0.1"/>
<Alpha name="$parentOut" change="-1" duration="1.5"/>
</AnimationGroup>
</Animations>
<Size x="437" y="413"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentBackground" x="-1" y="0"/>
</Anchors>
<TexCoords left="0.00195313" right="0.85546875" top="0.40625000" bottom="0.80957031"/>
<Color r="1.0" g="1.0" b="1.0" a="0.0"/>
</Texture>
<Texture name="$parentLevelOverlay1" parentKey="levelOverlay1" file="Interface\TalentFrame\glyph-main" alpha="0.6">
<Size x="300" y="150"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentBackground" x="-130" y="-30"/>
</Anchors>
<TexCoords left="0.00390625" right="0.53515625" top="0.00195313" bottom="0.27148438"/>
</Texture>
<FontString name="$parentLevelOverlayText1" inherits="GameFontNormalHugeBlack" justifyH="CENTER" parentKey="levelOverlayText1" text="GLYPH_SLOT_TOOLTIP1">
<Size x="130" y="0"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentLevelOverlay1"/>
</Anchors>
<Color r="0.2" g="0.1" b="0.09" a="0.8"/>
</FontString>
<Texture name="$parentLevelOverlay2" parentKey="levelOverlay2" file="Interface\TalentFrame\glyph-main" alpha="0.6">
<Size x="300" y="150"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentBackground" x="70" y="-125"/>
</Anchors>
<TexCoords left="0.00390625" right="0.53515625" top="0.00195313" bottom="0.27148438"/>
</Texture>
<FontString name="$parentLevelOverlayText2" inherits="GameFontNormalHugeBlack" justifyH="CENTER" parentKey="levelOverlayText2" text="GLYPH_SLOT_TOOLTIP1">
<Size x="130" y="0"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentLevelOverlay2"/>
</Anchors>
<Color r="0.2" g="0.1" b="0.09" a="0.8"/>
</FontString>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentSpecIcon" parentKey="specIcon" alpha="0.5" ALPHAMODE="ADD">
<Size x="79" y="79"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentSpecRing" x="1" y="1"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentSideInset" useParentLevel="true" inherits="InsetFrameTemplate" parentKey="sideInset">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" x="4" y="358" />
<Anchor point="BOTTOMRIGHT" x="194" y="-3"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\TalentFrame\glyph-side-bg">
<Size x="168" y="348"/>
<Anchors>
<Anchor point="TOPLEFT" x="2" y="-2"/>
</Anchors>
<TexCoords left="0" right="0.6171875" top="0" bottom="0.740234375"/>
</Texture>
</Layer>
</Layers>
</Frame>
<Button name="$parentClearInfoFrame" parentKey="clearInfo">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="5" y="-5"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentIcon" parentKey="icon">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
<FontString name="$parentCount" inherits="NumberFontNormal" parentKey="count">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIcon" x="-1" y="1"/>
</Anchors>
</FontString>
<FontString name="$parentName" inherits="GameFontNormal" parentKey="name">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentIcon" x="6"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
if self.spellID then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetSpellByID(self.spellID);
GameTooltip:Show();
end
</OnEnter>
<OnLeave>
GameTooltip_Hide();
self.showingTooltip = false;
</OnLeave>
</Scripts>
</Button>
<EditBox name="$parentSearchBox" autoFocus="false" letters="25">
<Size>
<AbsDimension x="180" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSideInset" x="7" y="54"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="0" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
</Anchors>
<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentSearchIcon" file="Interface\Common\UI-Searchbox-Icon" parentKey="searchIcon">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT" y="-2"/>
</Anchors>
<Color r="0.7" g="0.7" b="0.7" />
</Texture>
</Layer>
</Layers>
<Scripts>
<OnShow>
self:SetText(SEARCH);
self:SetFontObject("GameFontDisable");
self.searchIcon:SetVertexColor(0.6, 0.6, 0.6);
self:SetTextInsets(16, 0, 0, 0);
</OnShow>
<OnEnterPressed function="EditBox_ClearFocus"/>
<OnEscapePressed function="EditBox_ClearFocus"/>
<OnTextChanged function="GlyphFrame_OnTextChanged"/>
<OnEditFocusLost>
self:HighlightText(0, 0);
if ( self:GetText() == "" ) then
self:SetText(SEARCH);
self:SetFontObject("GameFontDisable");
self.searchIcon:SetVertexColor(0.6, 0.6, 0.6);
end
</OnEditFocusLost>
<OnEditFocusGained>
self:HighlightText();
if ( self:GetText() == SEARCH ) then
self:SetFontObject("ChatFontSmall");
self.searchIcon:SetVertexColor(1.0, 1.0, 1.0);
end
</OnEditFocusGained>
</Scripts>
<FontString inherits="ChatFontSmall"/>
</EditBox>
<Frame name="$parentFilterDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSearchBox" relativePoint="BOTTOMLEFT" x="-22" y="-3"/>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(self, 170);
UIDropDownMenu_JustifyText(self, "LEFT");
UIDropDownMenu_SetText(self, ALL_GLYPHS);
UIDropDownMenu_Initialize(self, GlyphFrameFilter_Initialize);
</OnLoad>
</Scripts>
</Frame>
<ScrollFrame name="$parentScrollFrame" inherits="HybridScrollFrameTemplate" parentKey="scrollFrame">
<Size x="185" y="250"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSideInset" x="5" y="-3"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentSideInset" x="-21" y="2"/>
</Anchors>
<Frames>
<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-12"/>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="13"/>
</Anchors>
</Slider>
</Frames>
</ScrollFrame>
<!-- Minor Glyphs -->
<Button name="$parentGlyph1" parentKey="Glyph1" inherits="GlyphTemplate" id="1">
<Anchors>
<Anchor point="CENTER" x="110" y="43"/>
</Anchors>
</Button>
<Button name="$parentGlyph3" parentKey="Glyph3" inherits="GlyphTemplate" id="3">
<Anchors>
<Anchor point="CENTER" x="-111" y="43"/>
</Anchors>
</Button>
<Button name="$parentGlyph5" parentKey="Glyph5" inherits="GlyphTemplate" id="5">
<Anchors>
<Anchor point="CENTER" x="0" y="-150"/>
</Anchors>
</Button>
<!-- Major Glyphs -->
<Button name="$parentGlyph2" parentKey="Glyph2" inherits="GlyphTemplate" id="2">
<Anchors>
<Anchor point="CENTER" x="0" y="156"/>
</Anchors>
</Button>
<Button name="$parentGlyph4" parentKey="Glyph4" inherits="GlyphTemplate" id="4">
<Anchors>
<Anchor point="CENTER" x="-155" y="-109"/>
</Anchors>
</Button>
<Button name="$parentGlyph6" parentKey="Glyph6" inherits="GlyphTemplate" id="6">
<Anchors>
<Anchor point="CENTER" x="151" y="-109"/>
</Anchors>
</Button>
<Button name="$parentHeader1" inherits="GlyphHeaderButtonTemplate" hidden="true">
</Button>
<Button name="$parentHeader2" inherits="GlyphHeaderButtonTemplate" hidden="true">
</Button>
</Frames>
<Scripts>
<OnLoad function="GlyphFrame_OnLoad"/>
<OnShow function="GlyphFrame_OnShow"/>
<OnHide function="GlyphFrame_OnHide"/>
<OnEnter function="GlyphFrame_OnEnter"/>
<OnLeave function="GlyphFrame_OnLeave"/>
<OnEvent function="GlyphFrame_OnEvent"/>
</Scripts>
</Frame>
</Ui>