view SkeletonStats/DamageMeter.xml @ 1:cd7d06bcd98d

KeyBinds: set hotkey text for blizzard action buttons UnitFrame: prototype templates for the majority of units
author Nenue
date Tue, 21 Jun 2016 04:47:52 -0400
parents 69e828f4238a
children
line wrap: on
line source
<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">


  <Frame name="DamageMeter" parent="UIParent" movable="true" enableMouse="true">
    <Size x="180" y="260" />
    <Anchors>
      <Anchor point="TOPLEFT" relativePoint="LEFT" x="25" y="110" />
    </Anchors>
    <Scripts>
      <OnLoad>
        self:RegisterForDrag('LeftButton')
      </OnLoad>
      <OnDragStart>
        self:StartMoving()
      </OnDragStart>
      <OnDragStop>
        self:StopMovingOrSizing()
      </OnDragStop>
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="bg" setAllPoints="true">
          <Color a="0.25" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture parentKey="headerBar">
          <Size y="24" />
          <Anchors>
            <Anchor point="TOPLEFT" />
            <Anchor point="RIGHT" />
          </Anchors>
          <Color a="0.5" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString parentKey="header" inherits="NumberFontNormal">
          <Anchors>
            <Anchor point="TOPLEFT" x="4" y="-4" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="DamageMeterResetButton">
        <Size x="24" y="24" />
        <Scripts>
          <OnMouseUp>
            DamageMeter.new()
            DamageMeter.ui()
          </OnMouseUp>
        </Scripts>
        <Anchors>
          <Anchor point="TOPRIGHT" x="0" y="0" />
        </Anchors>
        <NormalTexture setAllPoints="true">
          <Color a="1" r="1" g="0" b=".5" />
        </NormalTexture>
        <PushedTexture setAllPoints="true">
          <Color a="1" r="1" g=".5" b=".7" />
        </PushedTexture>
      </Button>
    </Frames>
  </Frame>

  <FontString name="MeterHeaderLeft" virtual="true" inherits="NumberFontNormal" wordwrap="false" justifyH="LEFT">
    <Anchors>
      <Anchor point="LEFT" x="24" y="0" />
    </Anchors>
  </FontString>

  <FontString name="MeterHeaderRight" virtual="true" inherits="NumberFontNormal" wordwrap="false" justifyH="RIGHT">
    <Size x="80" />
    <Anchors>
      <Anchor point="RIGHT" x="-2" y="0" />
    </Anchors>
  </FontString>
</Ui>