Blizzard_NamePlates/Blizzard_NamePlates.xml

Blizzard_NamePlates/Blizzard_NamePlates.xml (8.3.0.34963; unchanged since 8.3.0.33062)
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\..\FrameXML\UI.xsd">
  3.   <Script file="Blizzard_NamePlates.lua" />
  4.  
  5.   <Frame name="NamePlateDriverFrame" toplevel="true" mixin="NamePlateDriverMixin">
  6.     <Scripts>
  7.       <OnLoad method="OnLoad" />
  8.       <OnEvent method="OnEvent" />
  9.     </Scripts>
  10.   </Frame>
  11.  
  12.   <Frame name="NameplateBuffButtonTemplate" virtual="true" enableMouse="true" hidden="true" mixin="NameplateBuffButtonTemplateMixin">
  13.     <Size x="20" y="14"/>
  14.     <Layers>
  15.       <Layer level="BACKGROUND">
  16.         <Texture parentKey="Border" setAllPoints="true">
  17.           <Color r="0" g="0" b="0"/>
  18.         </Texture>
  19.       </Layer>
  20.       <Layer level="ARTWORK">
  21.         <Texture parentKey="Icon">
  22.           <Size x="18" y="12"/>
  23.           <Anchors>
  24.             <Anchor point="CENTER"/>
  25.           </Anchors>
  26.           <TexCoords left="0.05" right="0.95" top="0.1" bottom="0.6"/>
  27.         </Texture>
  28.       </Layer>
  29.     </Layers>
  30.     <Frames>
  31.       <Cooldown parentKey="Cooldown" inherits="CooldownFrameTemplate" hideCountdownNumbers="true" reverse="true" drawEdge="true" hidden="true">
  32.         <Anchors>
  33.           <Anchor point="CENTER" x="0" y="-1"/>
  34.         </Anchors>
  35.       </Cooldown>
  36.       <Frame parentKey="CountFrame" setAllPoints="true">
  37.         <Layers>
  38.           <Layer level="ARTWORK">
  39.             <FontString parentKey="Count" inherits="NumberFontNormalSmall" justifyH="RIGHT">
  40.               <Anchors>
  41.                 <Anchor point="BOTTOMRIGHT" x="3" y="-2"/>
  42.               </Anchors>
  43.             </FontString>
  44.           </Layer>
  45.         </Layers>
  46.       </Frame>
  47.     </Frames>
  48.     <Scripts>
  49.       <OnEnter method="OnEnter" />
  50.       <OnLeave method="OnLeave" />
  51.     </Scripts>
  52.   </Frame>
  53.  
  54.   <Frame name="NamePlateFullBorderTemplate" mixin="NamePlateBorderTemplateMixin" ignoreParentScale="true" setAllPoints="true" useParentLevel="true" virtual="true">
  55.     <Layers>
  56.       <Layer level="BACKGROUND" textureSubLevel="-8">
  57.         <!-- Left -->
  58.         <Texture parentKey="Left" parentArray="Textures">
  59.           <Size x="1.0" />
  60.           <Anchors>
  61.             <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="1.0" />
  62.             <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="-1.0" />
  63.           </Anchors>
  64.           <Color r="1" g="1" b="1" a="1"/>
  65.         </Texture>
  66.  
  67.         <!-- Right -->
  68.         <Texture parentKey="Right" parentArray="Textures">
  69.           <Size x="1.0" />
  70.           <Anchors>
  71.             <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="1.0" />
  72.             <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="-1.0" />
  73.           </Anchors>
  74.           <Color r="1" g="1" b="1" a="1"/>
  75.         </Texture>
  76.  
  77.         <!-- Bottom -->
  78.         <Texture parentKey="Bottom" parentArray="Textures">
  79.           <Size y="1.0" />
  80.           <Anchors>
  81.             <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
  82.             <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" />
  83.           </Anchors>
  84.           <Color r="1" g="1" b="1" a="1"/>
  85.         </Texture>
  86.  
  87.         <!-- Top -->
  88.         <Texture parentKey="Top" parentArray="Textures">
  89.           <Size y="1.0" />
  90.           <Anchors>
  91.             <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
  92.                         <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
  93.           </Anchors>
  94.           <Color r="1" g="1" b="1" a="1"/>
  95.         </Texture>
  96.       </Layer>
  97.     </Layers>
  98.   </Frame>
  99.  
  100.   <Frame name="NamePlateSecondaryBarBorderTemplate" mixin="NamePlateBorderTemplateMixin" ignoreParentScale="true" setAllPoints="true" useParentLevel="true" virtual="true">
  101.     <Layers>
  102.       <Layer level="BACKGROUND" textureSubLevel="-8">
  103.         <!-- Left -->
  104.         <Texture parentKey="Left" parentArray="Textures">
  105.           <Size x="1.0" />
  106.           <Anchors>
  107.             <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="1.0" />
  108.             <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="-1.0" />
  109.           </Anchors>
  110.           <Color r="1" g="1" b="1" a="1"/>
  111.         </Texture>
  112.  
  113.         <!-- Right -->
  114.         <Texture parentKey="Right" parentArray="Textures">
  115.           <Size x="1.0" />
  116.           <Anchors>
  117.             <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="1.0" />
  118.             <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="-1.0" />
  119.           </Anchors>
  120.           <Color r="1" g="1" b="1" a="1"/>
  121.         </Texture>
  122.  
  123.         <!-- Bottom -->
  124.         <Texture parentKey="Bottom" parentArray="Textures">
  125.           <Size y="1.0" />
  126.           <Anchors>
  127.                         <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
  128.                         <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" />
  129.           </Anchors>
  130.           <Color r="1" g="1" b="1" a="1"/>
  131.         </Texture>
  132.       </Layer>
  133.     </Layers>
  134.   </Frame>
  135.  
  136.   <Button name="BaseNamePlateUnitFrameTemplate" parentKey="UnitFrame" useParentLevel="true" virtual="true">
  137.     <KeyValues>
  138.       <KeyValue key="disableMouse" value="true" type="boolean"/>
  139.     </KeyValues>
  140.     <Anchors>
  141.       <Anchor point="CENTER" />
  142.     </Anchors>
  143.    
  144.     <Frames>
  145.       <StatusBar parentKey="healthBar" frameLevel="90">
  146.         <Frames>
  147.           <Frame parentKey="border" inherits="NamePlateFullBorderTemplate" />
  148.         </Frames>
  149.         <Layers>
  150.           <Layer level="BACKGROUND">
  151.             <Texture parentKey="background">
  152.               <Color r=".2" g=".2" b=".2" a=".85"/>
  153.             </Texture>
  154.           </Layer>
  155.           <Layer level="BORDER" textureSubLevel="5">
  156.             <Texture parentKey="myHealPrediction" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill"/>
  157.             <Texture parentKey="otherHealPrediction" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill"/>
  158.             <Texture parentKey="totalAbsorb"/>
  159.           </Layer>
  160.           <Layer level="BORDER" textureSubLevel="6">
  161.             <Texture parentKey="totalAbsorbOverlay"/>
  162.           </Layer>
  163.           <Layer level="ARTWORK" textureSubLevel="1">
  164.             <Texture parentKey="myHealAbsorb"/>
  165.             <Texture parentKey="myHealAbsorbLeftShadow" file="Interface\RaidFrame\Absorb-Edge"/>
  166.             <Texture parentKey="myHealAbsorbRightShadow" file="Interface\RaidFrame\Absorb-Edge">
  167.               <TexCoords left="1" right="0" top="0" bottom="1"/>
  168.             </Texture>
  169.           </Layer>
  170.           <Layer level="ARTWORK" textureSubLevel="2">
  171.             <Texture parentKey="overAbsorbGlow"/>
  172.             <Texture parentKey="overHealAbsorbGlow"/>
  173.           </Layer>
  174.         </Layers>
  175.         <BarTexture parentKey="barTexture" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" />
  176.       </StatusBar>
  177.      
  178.       <StatusBar parentKey="castBar" frameLevel="100" hidden="true">
  179.         <KeyValues>
  180.           <KeyValue key="iconWhenNoninterruptible" value="true" type="boolean"/>
  181.         </KeyValues>
  182.         <Layers>
  183.           <Layer level="BACKGROUND">
  184.             <Texture parentKey="background">
  185.               <Color r=".2" g=".2" b=".2" a=".85"/>
  186.             </Texture>
  187.           </Layer>
  188.           <Layer level="OVERLAY" textureSubLevel="1">
  189.             <FontString parentKey="Text" inherits="SystemFont_Shadow_Small">
  190.               <Size x="0" y="16" />
  191.               <Anchors>
  192.                 <Anchor point="CENTER" x="0" y="0"/>
  193.               </Anchors>
  194.             </FontString>
  195.             <Texture parentKey="BorderShield" atlas="nameplates-InterruptShield" hidden="true" ignoreParentAlpha="true">
  196.               <Size x="10" y="12" />
  197.               <Anchors>
  198.                 <Anchor point="CENTER" x="-2" y="-1"/>
  199.               </Anchors>
  200.             </Texture>
  201.             <Texture parentKey="Icon" hidden="true" ignoreParentAlpha="true">
  202.               <Size x="10" y="10"/>
  203.               <Anchors>
  204.                 <Anchor point="LEFT" x="-2" y="-1"/>
  205.               </Anchors>
  206.             </Texture>
  207.           </Layer>
  208.           <Layer level="OVERLAY">
  209.             <Texture parentKey="Spark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
  210.               <Size x="16" y="16" />
  211.               <Anchors>
  212.                 <Anchor point="CENTER" x="0" y="0"/>
  213.               </Anchors>
  214.             </Texture>
  215.             <Texture parentKey="Flash" file="Interface\TargetingFrame\UI-TargetingFrame-BarFill" alphaMode="ADD" />
  216.           </Layer>
  217.         </Layers>
  218.         <Scripts>
  219.           <OnLoad>
  220.             CastingBarFrame_OnLoad(self, nil, false, true);
  221.           </OnLoad>
  222.           <OnEvent function="CastingBarFrame_OnEvent" />
  223.           <OnUpdate function="CastingBarFrame_OnUpdate" />
  224.           <OnShow function="CastingBarFrame_OnShow" />
  225.         </Scripts>
  226.         <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
  227.         <BarColor r="1.0" g="0.7" b="0.0"/>
  228.       </StatusBar>
  229.  
  230.       <Frame parentKey="WidgetContainer" scale="0.425" inherits="UIWidgetContainerTemplate" hidden="true">
  231.         <Anchors>
  232.           <Anchor point="TOP" relativeKey="$parent.castBar" relativePoint="BOTTOM"/>
  233.         </Anchors>
  234.       </Frame>
  235.  
  236.       <Frame parentKey="BuffFrame" inherits="HorizontalLayoutFrame" mixin="NameplateBuffContainerMixin">
  237.         <Anchors>
  238.           <Anchor point="LEFT" relativeKey="$parent.healthBar" x="-1"/>
  239.         </Anchors>
  240.         <KeyValues>
  241.           <KeyValue key="spacing" value="4" type="number"/>
  242.           <KeyValue key="fixedHeight" value="14" type="number"/>
  243.         </KeyValues>
  244.         <Scripts>
  245.           <OnLoad method="OnLoad"/>
  246.           <OnEvent method="OnEvent"/>
  247.         </Scripts>
  248.       </Frame>
  249.       <Frame parentKey="ClassificationFrame" mixin="NamePlateClassificationFrameMixin" frameStrata="HIGH">
  250.         <Size x="14" y="13" />
  251.         <Anchors>
  252.           <Anchor point="RIGHT" relativeKey="$parent.healthBar" relativePoint="LEFT" x="0" />
  253.         </Anchors>
  254.         <Layers>
  255.           <Layer level="OVERLAY">
  256.             <Texture parentKey="classificationIndicator">
  257.               <Size x="14" y="13" />
  258.               <Anchors>
  259.                 <Anchor point="CENTER" />
  260.               </Anchors>
  261.             </Texture>
  262.           </Layer>
  263.         </Layers>
  264.         <Scripts>
  265.           <OnSizeChanged method="OnSizeChanged"/>
  266.         </Scripts>
  267.       </Frame>
  268.       <Frame parentKey="RaidTargetFrame">
  269.         <Size x="22" y="22"/>
  270.         <Anchors>
  271.           <Anchor point="RIGHT" relativeKey="$parent.healthBar" relativePoint="LEFT" x="-15" />
  272.         </Anchors>
  273.         <Layers>
  274.           <Layer level="ARTWORK">
  275.             <Texture parentKey="RaidTargetIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" setAllPoints="true" />
  276.           </Layer>
  277.         </Layers>
  278.       </Frame>
  279.     </Frames>
  280.     <Layers>
  281.       <Layer level="ARTWORK">
  282.         <FontString parentKey="name" inherits="SystemFont_NamePlate" wordwrap="false" justifyH="CENTER" ignoreParentScale="true">
  283.           <Anchors>
  284.             <Anchor point="BOTTOM" relativeKey="$parent.healthBar" relativePoint="TOP" y="4" />
  285.           </Anchors>
  286.         </FontString>
  287.       </Layer>
  288.      
  289.       <Layer level="OVERLAY">
  290.         <Texture parentKey="selectionHighlight" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" alpha=".25" ignoreParentAlpha="true" alphaMode="ADD">
  291.           <Anchors>
  292.             <Anchor point="TOPLEFT" relativeKey="$parent.healthBar.barTexture" />
  293.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.healthBar.barTexture" />
  294.           </Anchors>
  295.         </Texture>
  296.       </Layer>
  297.       <Layer level="OVERLAY" textureSubLevel="2">
  298.         <Texture parentKey="aggroHighlight" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" alpha="0" alphaMode="ADD">
  299.           <Anchors>
  300.             <Anchor point="TOPLEFT" relativeKey="$parent.healthBar" />
  301.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.healthBar" />
  302.           </Anchors>
  303.           <Color r="1" g="1" b="0"/>
  304.         </Texture>
  305.       </Layer>
  306.     </Layers>
  307.     <Animations>
  308.       <AnimationGroup parentKey="LoseAggroAnim" setToFinalAlpha="true">
  309.         <Alpha childKey="aggroHighlight" duration=".25" fromAlpha="1" toAlpha="0" order="1"/>
  310.         <Alpha childKey="aggroHighlight" duration=".25" fromAlpha="1" toAlpha="0" order="2"/>
  311.       </AnimationGroup>
  312.     </Animations>
  313.     <Scripts>
  314.       <OnLoad function="CompactUnitFrame_OnLoad"/>
  315.     </Scripts>
  316.   </Button>
  317.  
  318.   <Button name="NamePlateUnitFrameTemplate" inherits="BaseNamePlateUnitFrameTemplate" virtual="true" />
  319.   <Button name="ForbiddenNamePlateUnitFrameTemplate" inherits="BaseNamePlateUnitFrameTemplate" virtual="true" />
  320.  
  321.   <GameTooltip name="NamePlateTooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate">
  322.     <Scripts>
  323.       <OnUpdate>
  324.         self.updateTooltip = (self.updateTooltip or TOOLTIP_UPDATE_TIME) - elapsed;
  325.         if self.updateTooltip > 0 then
  326.           return;
  327.         end
  328.         self.updateTooltip = TOOLTIP_UPDATE_TIME;
  329.         local owner = self:GetOwner();
  330.         if owner and owner.UpdateTooltip then
  331.           owner:UpdateTooltip();
  332.         end
  333.       </OnUpdate>
  334.     </Scripts>
  335.   </GameTooltip>
  336. </Ui>