ActionBarFrame.xml

ActionBarFrame.xml (9.0.2.36294; unchanged since 9.0.1.36230)
  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="ActionButton.lua"/>
  4.   <CheckButton name="ActionBarButtonCodeTemplate" inherits="SecureActionButtonTemplate, QuickKeybindButtonTemplate" virtual="true" mixin="ActionBarActionButtonMixin">
  5.     <Scripts>
  6.       <OnLoad method="OnLoad"/>
  7.       <OnAttributeChanged method="UpdateAction"/>
  8.       <OnEvent method="OnEvent"/>
  9.       <OnClick method="OnClick" inherit="append"/>
  10.       <PostClick method="UpdateState"/>
  11.       <OnDragStart method="OnDragStart"/>
  12.       <OnReceiveDrag method="OnReceiveDrag"/>
  13.       <OnEnter method="OnEnter" inherit="append"/>
  14.       <OnLeave method="OnLeave" inherit="append"/>
  15.       <OnUpdate method="OnUpdate" inherit="append"/>
  16.     </Scripts>
  17.   </CheckButton>
  18.   <CheckButton name="ActionBarButtonTemplate" inherits="ActionBarButtonCodeTemplate, ActionButtonTemplate" virtual="true"/>
  19.   <Frame name="ActionBarButtonSpellActivationAlert" virtual="true" mixin="ActionBarButtonSpellActivationAlertMixin">
  20.     <Animations>
  21.       <AnimationGroup parentKey="animIn" mixin="ActionBarOverlayGlowAnimInMixin">
  22.         <Scale target="$parentSpark" duration="0.2" scaleX="1.5" scaleY="1.5" order="1"/>
  23.         <Alpha target="$parentSpark" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
  24.         <Scale target="$parentInnerGlow"      duration="0.3" scaleX="2" scaleY="2" order="1"/>
  25.         <Scale target="$parentInnerGlowOver"  duration="0.3" scaleX="2" scaleY="2" order="1"/>
  26.         <Alpha target="$parentInnerGlowOver"  duration="0.3" fromAlpha="1" toAlpha="0" order="1"/>
  27.         <Scale target="$parentOuterGlow"      duration="0.3" scaleX="0.5" scaleY="0.5" order="1"/>
  28.         <Scale target="$parentOuterGlowOver"  duration="0.3" scaleX="0.5" scaleY="0.5" order="1"/>
  29.         <Alpha target="$parentOuterGlowOver"  duration="0.3" fromAlpha="1" toAlpha="0" order="1"/>
  30.         <Scale target="$parentSpark" startDelay="0.2" duration="0.2" scaleX="0.666666" scaleY="0.666666" order="1"/>
  31.         <Alpha target="$parentSpark" startDelay="0.2" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
  32.         <Alpha target="$parentInnerGlow" startDelay="0.3" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
  33.         <Alpha target="$parentAnts" startDelay="0.3" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
  34.         <Scripts>
  35.           <OnPlay method="OnPlay"/>
  36.           <OnFinished method="OnFinished"/>
  37.         </Scripts>
  38.       </AnimationGroup>
  39.       <AnimationGroup parentKey="animOut" mixin="ActionBarOverlayGlowAnimOutMixin">
  40.         <Alpha target="$parentOuterGlowOver" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
  41.         <Alpha target="$parentAnts" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
  42.         <Alpha target="$parentOuterGlowOver" duration="0.2" fromAlpha="1" toAlpha="0" order="2"/>
  43.         <Alpha target="$parentOuterGlow" duration="0.2" fromAlpha="1" toAlpha="0" order="2"/>
  44.         <Scripts>
  45.           <OnFinished method="OnFinished"/>
  46.         </Scripts>
  47.       </AnimationGroup>
  48.     </Animations>
  49.     <Layers>
  50.       <Layer level="BACKGROUND">
  51.         <Texture name="$parentSpark" parentKey="spark" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
  52.           <Anchors>
  53.             <Anchor point="CENTER"/>
  54.           </Anchors>
  55.           <TexCoords left="0.00781250" right="0.61718750" top="0.00390625" bottom="0.26953125"/>
  56.         </Texture>
  57.       </Layer>
  58.       <Layer level="ARTWORK">
  59.         <Texture name="$parentInnerGlow" parentKey="innerGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
  60.           <Anchors>
  61.             <Anchor point="CENTER"/>
  62.           </Anchors>
  63.           <TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
  64.         </Texture>
  65.         <Texture name="$parentInnerGlowOver" parentKey="innerGlowOver" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
  66.           <Anchors>
  67.             <Anchor point="TOPLEFT" relativeTo="$parentInnerGlow" relativePoint="TOPLEFT"/>
  68.             <Anchor point="BOTTOMRIGHT" relativeTo="$parentInnerGlow" relativePoint="BOTTOMRIGHT"/>
  69.           </Anchors>
  70.           <TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
  71.         </Texture>
  72.         <Texture name="$parentOuterGlow" parentKey="outerGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
  73.           <Anchors>
  74.             <Anchor point="CENTER"/>
  75.           </Anchors>
  76.           <TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
  77.         </Texture>
  78.         <Texture name="$parentOuterGlowOver" parentKey="outerGlowOver" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
  79.           <Anchors>
  80.             <Anchor point="TOPLEFT" relativeTo="$parentOuterGlow" relativePoint="TOPLEFT"/>
  81.             <Anchor point="BOTTOMRIGHT" relativeTo="$parentOuterGlow" relativePoint="BOTTOMRIGHT"/>
  82.           </Anchors>
  83.           <TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
  84.         </Texture>
  85.       </Layer>
  86.       <Layer level="OVERLAY">
  87.         <Texture name="$parentAnts" parentKey="ants" file="Interface\SpellActivationOverlay\IconAlertAnts" alpha="0" setAllPoints="true">
  88.           <Anchors>
  89.             <Anchor point="CENTER"/>
  90.           </Anchors>
  91.         </Texture>
  92.       </Layer>
  93.     </Layers>
  94.     <Scripts>
  95.       <OnUpdate method="OnUpdate"/>
  96.       <OnHide method="OnHide"/>
  97.     </Scripts>
  98.   </Frame>
  99.   <Frame name="ActionBarButtonEventsFrame" mixin="ActionBarButtonEventsFrameMixin">
  100.     <Scripts>
  101.       <OnLoad method="OnLoad"/>
  102.       <OnEvent method="OnEvent"/>
  103.     </Scripts>
  104.   </Frame>
  105.   <Frame name="ActionBarActionEventsFrame" mixin="ActionBarActionEventsFrameMixin">
  106.     <Scripts>
  107.       <OnLoad method="OnLoad"/>
  108.       <OnEvent method="OnEvent"/>
  109.     </Scripts>
  110.   </Frame>
  111.   <CheckButton name="ActionButton1" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="1">
  112.     <KeyValues>
  113.       <KeyValue key="commandName" value="ACTIONBUTTON1" type="string"/>
  114.     </KeyValues>
  115.     <Anchors>
  116.       <Anchor point="BOTTOMLEFT" relativeTo="MainMenuBarArtFrameBackground" x="8" y="4"/>
  117.     </Anchors>
  118.   </CheckButton>
  119.   <CheckButton name="ActionButton2" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="2">
  120.     <KeyValues>
  121.       <KeyValue key="commandName" value="ACTIONBUTTON2" type="string"/>
  122.     </KeyValues>
  123.     <Anchors>
  124.       <Anchor point="LEFT" relativeTo="ActionButton1" relativePoint="RIGHT" x="6" y="0"/>
  125.     </Anchors>
  126.   </CheckButton>
  127.   <CheckButton name="ActionButton3" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="3">
  128.     <KeyValues>
  129.       <KeyValue key="commandName" value="ACTIONBUTTON3" type="string"/>
  130.     </KeyValues>
  131.     <Anchors>
  132.       <Anchor point="LEFT" relativeTo="ActionButton2" relativePoint="RIGHT" x="6" y="0"/>
  133.     </Anchors>
  134.   </CheckButton>
  135.   <CheckButton name="ActionButton4" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="4">
  136.     <KeyValues>
  137.       <KeyValue key="commandName" value="ACTIONBUTTON4" type="string"/>
  138.     </KeyValues>
  139.     <Anchors>
  140.       <Anchor point="LEFT" relativeTo="ActionButton3" relativePoint="RIGHT" x="6" y="0"/>
  141.     </Anchors>
  142.   </CheckButton>
  143.   <CheckButton name="ActionButton5" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="5">
  144.     <KeyValues>
  145.       <KeyValue key="commandName" value="ACTIONBUTTON5" type="string"/>
  146.     </KeyValues>
  147.     <Anchors>
  148.       <Anchor point="LEFT" relativeTo="ActionButton4" relativePoint="RIGHT" x="6" y="0"/>
  149.     </Anchors>
  150.   </CheckButton>
  151.   <CheckButton name="ActionButton6" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="6">
  152.     <KeyValues>
  153.       <KeyValue key="commandName" value="ACTIONBUTTON6" type="string"/>
  154.     </KeyValues>
  155.     <Anchors>
  156.       <Anchor point="LEFT" relativeTo="ActionButton5" relativePoint="RIGHT" x="6" y="0"/>
  157.     </Anchors>
  158.   </CheckButton>
  159.   <CheckButton name="ActionButton7" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="7">
  160.     <KeyValues>
  161.       <KeyValue key="commandName" value="ACTIONBUTTON7" type="string"/>
  162.     </KeyValues>
  163.     <Anchors>
  164.       <Anchor point="LEFT" relativeTo="ActionButton6" relativePoint="RIGHT" x="6" y="0"/>
  165.     </Anchors>
  166.   </CheckButton>
  167.   <CheckButton name="ActionButton8" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="8">
  168.     <KeyValues>
  169.       <KeyValue key="commandName" value="ACTIONBUTTON8" type="string"/>
  170.     </KeyValues>
  171.     <Anchors>
  172.       <Anchor point="LEFT" relativeTo="ActionButton7" relativePoint="RIGHT" x="6" y="0"/>
  173.     </Anchors>
  174.   </CheckButton>
  175.   <CheckButton name="ActionButton9" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="9">
  176.     <KeyValues>
  177.       <KeyValue key="commandName" value="ACTIONBUTTON9" type="string"/>
  178.     </KeyValues>
  179.     <Anchors>
  180.       <Anchor point="LEFT" relativeTo="ActionButton8" relativePoint="RIGHT" x="6" y="0"/>
  181.     </Anchors>
  182.   </CheckButton>
  183.   <CheckButton name="ActionButton10" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="10">
  184.     <KeyValues>
  185.       <KeyValue key="commandName" value="ACTIONBUTTON10" type="string"/>
  186.     </KeyValues>
  187.     <Anchors>
  188.       <Anchor point="LEFT" relativeTo="ActionButton9" relativePoint="RIGHT" x="6" y="0"/>
  189.     </Anchors>
  190.   </CheckButton>
  191.   <CheckButton name="ActionButton11" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="11">
  192.     <KeyValues>
  193.       <KeyValue key="commandName" value="ACTIONBUTTON11" type="string"/>
  194.     </KeyValues>
  195.     <Anchors>
  196.       <Anchor point="LEFT" relativeTo="ActionButton10" relativePoint="RIGHT" x="6" y="0"/>
  197.     </Anchors>
  198.   </CheckButton>
  199.   <CheckButton name="ActionButton12" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="12">
  200.     <KeyValues>
  201.       <KeyValue key="commandName" value="ACTIONBUTTON12" type="string"/>
  202.     </KeyValues>
  203.     <Anchors>
  204.       <Anchor point="LEFT" relativeTo="ActionButton11" relativePoint="RIGHT" x="6" y="0"/>
  205.     </Anchors>
  206.   </CheckButton>
  207.   <Button name="ActionBarUpButton" inherits="QuickKeybindButtonTemplate" parent="MainMenuBarArtFrame">
  208.     <KeyValues>
  209.       <KeyValue key="commandName" value="NEXTACTIONPAGE" type="string"/>
  210.     </KeyValues>
  211.     <Size x="21" y="19"/>
  212.     <Anchors>
  213.       <Anchor point="RIGHT" relativeTo="ActionButton12" x="25" y="9"/>
  214.     </Anchors>
  215.     <Scripts>
  216.       <OnClick inherit="append">
  217.         if ( not KeybindFrames_InQuickKeybindMode() ) then
  218.           ActionBar_PageUp(self);
  219.           PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  220.         end
  221.       </OnClick>
  222.       <OnLeave inherit="append">
  223.         GameTooltip:Hide();
  224.       </OnLeave>
  225.     </Scripts>
  226.     <NormalTexture atlas="hud-MainMenuBar-arrowup-up"/>
  227.     <PushedTexture atlas="hud-MainMenuBar-arrowup-down"/>
  228.     <DisabledTexture atlas="hud-MainMenuBar-arrowup-disabled"/>
  229.     <HighlightTexture alphaMode="ADD" atlas="hud-MainMenuBar-arrowup-highlight"/>
  230.   </Button>
  231.   <Button name="ActionBarDownButton" inherits="QuickKeybindButtonTemplate" parent="MainMenuBarArtFrame">
  232.     <KeyValues>
  233.       <KeyValue key="commandName" value="PREVIOUSACTIONPAGE" type="string"/>
  234.     </KeyValues>
  235.     <Size x="21" y="19"/>
  236.     <Anchors>
  237.       <Anchor point="CENTER" relativeTo="ActionBarUpButton" relativePoint="BOTTOMLEFT" x="10" y="-10"/>
  238.     </Anchors>
  239.     <Scripts>
  240.       <OnClick inherit="append">
  241.         if ( not KeybindFrames_InQuickKeybindMode() ) then
  242.           ActionBar_PageDown(self);
  243.           PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
  244.         end
  245.       </OnClick>
  246.       <OnLeave inherit="append">
  247.         GameTooltip:Hide();
  248.       </OnLeave>
  249.     </Scripts>
  250.     <NormalTexture atlas="hud-MainMenuBar-arrowdown-up"/>
  251.     <PushedTexture atlas="hud-MainMenuBar-arrowdown-down"/>
  252.     <DisabledTexture atlas="hud-MainMenuBar-arrowdown-disabled"/>
  253.     <HighlightTexture alphaMode="ADD" atlas="hud-MainMenuBar-arrowdown-highlight"/>
  254.   </Button>
  255. </Ui>