view Modules/ArtifactPower.xml @ 101:f32b63c93275

- implement caching to reduce the number of tooltip queries made for each scan prompt
author Nenue
date Sat, 21 Jan 2017 20:12:17 -0500
parents 74d6d97a2d24
children a41f6b74709a
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="VeneerItemButton" parentArray="Tokens" inherits="SecureActionButtonTemplate" virtual="true">
    <Size x="48" y="48" />
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Icon" setAllPoints="true" />
      </Layer>
      <Layer level="OVERLAY">
        <FontString parentKey="Count" inherits="VeneerHeaderFont">
          <Anchors>
            <Anchor point="TOP" x="0" y="-4" />
          </Anchors>
        </FontString>
        <FontString parentKey="Label" inherits="VeneerNumberFont">
          <Anchors>
            <Anchor point="BOTTOM" x="0" y="4" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
  </Button>

  <Button name="VeneerArtifactButton" parentArray="Artifact" mixin="VeneerArtifactButtonMixin" virtual="true">
    <Scripts>
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
      <OnClick method="OnClick" />
      <OnUpdate method="OnUpdate" />
    </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="" 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>

        <Texture parentKey="CurrentProgress" alphaMode="ADD">
          <Anchors>
            <Anchor point="BOTTOMLEFT" />
            <Anchor point="BOTTOMRIGHT" />
          </Anchors>
            <Color a="0.25" r="0" g="1" b="0" />
        </Texture>
        <Texture parentKey="AdjustedProgress" alphaMode="ADD">
          <Anchors>
            <Anchor point="LEFT" />
            <Anchor point="RIGHT" />
          </Anchors>
          <Color a="0.25" r="0" g="0.5" b="1" />
        </Texture>
        <Texture parentKey="AdjustedLine">
          <Size y="1" />
          <Anchors>
            <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.AdjustedProgress" />
            <Anchor point="RIGHT" relativeKey="$parent.AdjustedProgress" />
            <Anchor point="LEFT" relativeKey="$parent.AdjustedProgress" />
          </Anchors>
          <Color a="0.25" r="1" g="1" b="1" />
        </Texture>
        <Texture parentKey="ProgressLine">
          <Size y="1" />
          <Anchors>
            <Anchor point="TOP" relativeKey="$parent.CurrentProgress" />
            <Anchor point="RIGHT" relativeKey="$parent.CurrentProgress" />
            <Anchor point="LEFT" relativeKey="$parent.CurrentProgress" />
          </Anchors>
          <Color a="0.25" r="0" g="1" b="0" />
        </Texture>
      </Layer>
    </Layers>
  </Button>
  <Frame name="VeneerArtifactPowerTimer" parent="UIParent" />
  <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="BOTTOMLEFT" x="4" y="4"  />
          </Anchors>
          <Color r="0" g="1" b="1" />
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="$parentArtifactButton1" inherits="VeneerArtifactButton" />
      <Button name="$parentArtifactButton2" inherits="VeneerArtifactButton" />
      <Button name="$parentArtifactButton3" inherits="VeneerArtifactButton" />
      <Button name="$parentArtifactButton4" inherits="VeneerArtifactButton" />
      <Button name="$parentArtifactButton5" inherits="VeneerArtifactButton" />
    </Frames>
  </Frame>
</Ui>