view Turok/Modules/Combat/Powerbar.xml @ 11:0b1a2f3dbfc4 tip

aura duration override triggering activation twice when aura data still exists briefly after duration end
author Nenue
date Mon, 22 Feb 2016 03:11:54 -0500
parents a9b8b0866ece
children
line wrap: on
line source
<Ui>
  <!-- placed on top of other bars; should be semi-transparent -->
  <Texture name="TkGraph" alphaMode="ADD" virtual="true">
    <Colors>
      <Color r="1" g="0" b="0" a="0.5" />
    </Colors>
  </Texture>

  <!-- StatusBar template inheritor for PowerBar frames -->
  <Frame name="TkPowerTemplate" virtual="true" inherits="TurokStatusBar" parent="UIParent" frameStrata="BACKGROUND">
    <Scripts>
      <OnLoad>
        print('PowerBar', '|cFF44FFFF'..self:GetName()..'|r loaded.')
      </OnLoad>
    </Scripts>
    <Layers>
      <Layer level="OVERLAY">
        <FontString name="$parentPowerText" parentKey="powerText" inherits="TurokFont" justifyH="LEFT" textureSubLevel="1"/>
        <FontString name="$parentSecondaryText" parentKey="secondaryText" inherits="TurokFontDetail" justifyH="RIGHT"  textureSubLevel="1"/>
      </Layer>
    </Layers>
  </Frame>


  <!-- Secondary powers -->
  <Texture name="TkSecondaryPoint1" virtual="true" alphaMode="BLEND" setAllPoints="false" hidden="true" />
  <Texture name="TkSecondaryPoint2" virtual="true" alphaMode="ADD"   setAllPoints="false" hidden="true" />


  <Frame name="TkComboTemplate" inherits="TkPowerTemplate" virtual="true" frameStrata="BACKGROUND" hidden="true">
    <Layers>
      <Layer level="OVERLAY">
        <!-- 6 max chi, 5 max combo -->
        <Texture name="$parentCombo1_1" inherits="TkComboPoint" />
        <Texture name="$parentCombo1_2" inherits="TkComboPoint" />
        <Texture name="$parentCombo1_3" inherits="TkComboPoint" />
        <Texture name="$parentCombo1_4" inherits="TkComboPoint" />
        <Texture name="$parentCombo1_5" inherits="TkComboPoint" />
        <Texture name="$parentCombo1_6" inherits="TkComboPoint" />
        <!-- anticipation -->
        <Texture name="$parentCombo2_1" inherits="TkAnticipation" />
        <Texture name="$parentCombo2_2" inherits="TkAnticipation" />
        <Texture name="$parentCombo2_3" inherits="TkAnticipation" />
        <Texture name="$parentCombo2_4" inherits="TkAnticipation" />
        <Texture name="$parentCombo2_5" inherits="TkAnticipation" />
      </Layer>
    </Layers>
  </Frame>


  <Frame name="TkThinComboTemplate" virtual="true" hidden="true" frameStrata="BACKGROUND">
    <Layers>
      <Layer level="BACKGROUND">

        <Texture name="$parentBackground" parentKey="background" setAllPoints="true">
          <Color r="0" g=".6" b="1" a="0.5" />
          <Size>
            <AbsValue y="14" />
          </Size>
        </Texture>
      </Layer>
      <Layer level="BORDER">

      </Layer>
      <Layer level="ARTWORK">
        <Texture name="$parentForeground" parentKey="foreground" setAllPoints="true">
          <Size>
            <AbsValue y="14" />
          </Size>
          <Color r="0" g=".6" b="1" a="0.5" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <!-- 6 max chi, 5 max combo -->

          <FontString name="$parentPowerText" parentKey="powerText" inherits="TurokFont" justifyH="LEFT" textureSubLevel="1">
            <Anchors>
              <Anchor point="BOTTOMLEFT" relativeKey="$parent.foreground" />
            </Anchors>
          </FontString>
          <FontString name="$parentSecondaryText" parentKey="secondaryText" inherits="TurokFontDetail" justifyH="RIGHT"  textureSubLevel="1">
            <Anchors>
              <Anchor point="BOTTOMRIGHT" relativeKey="$parent.foreground" />
            </Anchors>
          </FontString>
      </Layer>
    </Layers>
  </Frame>

</Ui>