view Modules/ArtifactPower.xml @ 97:5476337198ec

- apply default anchors when docking modules - Arifact Power tracker: totals AP items in bags and bank, and forecasts progress on each weapon. Requires user to shift-click each weapon at least once to get initial XP data.
author Nenue
date Mon, 16 Jan 2017 20:24:12 -0500
parents
children dadddb8a551f
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">
  <Script file="ArtifactPower.lua" />

  <Button name="VeneerArtifactButton" parentArray="Artifact" mixin="VeneerArtifactButtonMixin" virtual="true">

    <Scripts>
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
      <OnClick method="OnClick" />
    </Scripts>
    <Size x="64" y="64" />
    <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress" setAllPoints="true" />
    <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" setAllPoints="true" alphaMode="ADD" />
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="$parentIcon" parentKey="Icon" setAllPoints="true" />
      </Layer>

      <Layer level="OVERLAY">

        <FontString name="$parentName" parentKey="Name" inherits="VeneerNumberFont" text="NAME" wordwrap="false">
          <Anchors>
            <Anchor point="TOPLEFT" x="4" y="-16"  />
            <Anchor point="RIGHT" x="-4" />
          </Anchors>
          <Color r="0" g="1" b="1" />
        </FontString>
        <FontString name="$parentLevel" parentKey="Level" inherits="VeneerHeaderFont">
          <Anchors>
            <Anchor point="TOP" x="0" y="-2" />
          </Anchors>
        </FontString>
        <FontString name="$parentCurrentXP" parentKey="CurrentXP" inherits="VeneerNumberFont" text="Bank:">
          <Anchors>
            <Anchor point="BOTTOM" x="0" y="4" />
          </Anchors>
          <Color r="1" g="1" b="0" />
        </FontString>
      </Layer>
    </Layers>
  </Button>
  <Frame name="VeneerArtifactPower" hidden="true" mixin="VeneerArtifactPowerMixin" parent="UIParent" inherits="VeneerMixinScripts" enableMouse="true">
    <Size x="300" y="36" />
    <Scripts>
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
      <OnMouseDown method="OnMouseDown" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">

        <Texture parentKey="Background">
          <Color a="0.5" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString name="$parentSummaryHeader" parentKey="SummaryHeader" inherits="VeneerNumberFont" text="">
          <Anchors>
            <Anchor point="TOPLEFT" x="4" y="-4"  />
          </Anchors>
          <Color r="0" g="1" b="1" />
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button inherits="VeneerArtifactButton" />
      <Button inherits="VeneerArtifactButton" />
      <Button inherits="VeneerArtifactButton" />
      <Button inherits="VeneerArtifactButton" />
    </Frames>
  </Frame>
</Ui>