view ClassPlan.xml @ 30:8cb750e79952

WorldPlan: - Reworking filters to utilize newly added CVars
author Nenue
date Fri, 28 Oct 2016 14:06:07 -0400
parents dbc865d2be82
children e8679ecb48d8
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="ClassPlan.lua" />

  <Font name="ClassPlanFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Regular.ttf" height="14" outline="NORMAL" virtual="true" />
  <Font name="ClassPlanNumberFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Bold.ttf" height="14" outline="NORMAL" virtual="true" />

  <Button name="ClassPlanButton" parent="UIParent" frameStrata="HIGH">
    <Size x="600" y="16" />
    <Anchors>
      <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="ClassOrderPlan" />
      <Anchor point="LEFT" relativeTo="ClassOrderPlan" />
      <Anchor point="RIGHT" relativeTo="ClassOrderPlan" />
    </Anchors>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture setAllPoints="true" parentKey="Background" hidden="true">
          <Color a="1" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">

        <Texture parentKey="Grip" alphaMode="BLEND" file="Interface\RaidFrame\Raid-Move-Down" hidden="true">
          <Anchors>
            <Anchor point="TOP" />
          </Anchors>
          <Size x="32" y="16"/>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString parentKey="Label" inherits="ClassPlanFont">
          <Anchors>
            <Anchor point="BOTTOMLEFT" x="2" y="2" />
          </Anchors>
        </FontString>
      </Layer>
      <Layer level="HIGHLIGHT">
        <Texture setAllPoints="true" alphaMode="ADD">
          <Color a="0.25" r="1" g="1" b="1" />
        </Texture>
      </Layer>
    </Layers>
    <Scripts>
      <OnClick>
        ClassOrderPlan:Toggle()
      </OnClick>
    </Scripts>
  </Button>

  <Frame name="ClassOrderPlan" mixin="ClassOrderPlanCore" parent="UIParent" hidden="true">
    <Size x="600" y="40" />
    <Anchors>
      <Anchor point="TOP" />
    </Anchors>
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnEvent method="OnEvent" />
      <OnShow method="OnShow" />
      <OnHide method="OnHide" />
      <OnUpdate method="OnUpdate" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Background" setAllPoints="true">
          <Color a="0.5" r="0" b="0" g="0" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture parentKey="portrait">
          <Size x="40" y="40" />
          <Anchors>
            <Anchor point="TOPLEFT" />

          </Anchors>
        </Texture>
      </Layer>
    </Layers>
  </Frame>

  <Button name="ClassPlanListEntryTemplate" virtual="true" hidden="true">
    <Scripts>
      <OnLoad>
        self.Count = self.Overlay.Count
        self.Name = self.Overlay.Name
        self.TimeLeft = self.Overlay.TimeLeft
        self.Owner = self.Overlay.Owner
      </OnLoad>
      <OnClick method="OnClick" />
      <OnUpdate method="OnUpdate" />
      <OnShow method="OnShow" />
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Background" setAllPoints="true" />
      </Layer>
      <Layer level="BACKGROUND" textureSubLevel="1">
        <Texture parentKey="Icon" alpha="1" desaturated="true">
          <Size x="24" y="24"/>
          <Anchors>
            <Anchor point="LEFT"/>
          </Anchors>
          <TexCoords left="0.15" right=".85" top="0.15" bottom="0.85" />
        </Texture>

        <Texture parentKey="ProgressBG" hidden="true">
          <Size y="2" />
          <Anchors>
            <Anchor point="RIGHT" />
            <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.Icon" />
          </Anchors>
          <Color a="0.5" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="BORDER">
        <Texture parentKey="IconBorder" file="Interface\Common\WhiteIconFrame">
          <Size x="24" y="24"/>
          <Anchors>
            <Anchor point="CENTER" relativeKey="$parent.Icon"/>
          </Anchors>
        </Texture>
        <Texture parentKey="ProgressBar" hidden="true">
          <Size y="2" />
          <Anchors>
            <Anchor point="BOTTOMLEFT" relativeKey="$parent.ProgressBG" />
          </Anchors>
          <Color a="0.5" r="1" g="1" b="1" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow">
          <Size x="24" y="24" />
          <Anchors>
            <Anchor point="BOTTOMLEFT"/>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <Frames>
      <Cooldown parentKey="Swipe" inherits="CooldownFrameTemplate" reverse="true" hideCountdownNumbers="true">
        <Size x="24" y="24"/>
        <Anchors>
          <Anchor point="TOPLEFT"/>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="24" y="0" />
        </Anchors>
        <Scripts>
          <OnCooldownStart>
            self:Show()
          </OnCooldownStart>
          <OnCoolDownDone>
            -- update via event
            C_Garrison.RequestLandingPageShipmentInfo();
          </OnCoolDownDone>
        </Scripts>
      </Cooldown>
      <Frame parentKey="Overlay" name="$parentOverlay" setAllPoints="true">
        <Layers>
          <Layer level="OVERLAY">

            <FontString parentKey="Name" inherits="ClassPlanFont" justifyV="TOP" justifyH="CENTER">
              <Anchors>
                <Anchor point="LEFT" x="26" y="0"/>
              </Anchors>
              <Color r=".75" g=".75" b=".73"/>
            </FontString>
            <FontString parentKey="TimeLeft" inherits="ClassPlanFont" justifyH="CENTER">
              <Anchors>
                <Anchor point="RIGHT" x="-2" y="0"/>
              </Anchors>
            </FontString>
            <FontString parentKey="Count" inherits="WorldPlanFont" justifyH="CENTER">
              <Anchors>
                <Anchor point="CENTER" relativePoint="LEFT" x="12" y="0"/>
              </Anchors>
            </FontString>
          </Layer>
          <Layer level="HIGHLIGHT">

            <FontString parentKey="Owner" inherits="WorldPlanFont" text="base text">
              <Anchors>
                <Anchor point="TOPRIGHT" x="-2" y="-2" />
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </Frame>
    </Frames>
  </Button>


  <Button name="ClassPlanMissionEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanMissionMixin" virtual="true">
    <Size x="300" y="24" />
  </Button>

  <Button name="ClassPlanShipmentEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanShipmentMixin" virtual="true">
    <Size x="300" y="24" />
  </Button>
</Ui>