view ClassPlan.xml @ 32:e8679ecb48d8

ClassPlan: - Available missions are now recorded; the mission list can be toggled between in-progress and available by clicking the heading.
author Nenue
date Tue, 01 Nov 2016 10:48:50 -0400
parents dbc865d2be82
children 26dfa661daa7
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" />


  <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>
    <Frames>
      <Frame name="$parentMissionList" parentKey="MissionList" parentArray="Handlers" mixin="ClassPlanMissionHandler">
        <Scripts>
          <OnLoad method="OnLoad" />
          <OnUpdate method="OnUpdate" />
          <OnEvent method="OnEvent" />
          <OnShow method="OnShow" />
        </Scripts>
        <Frames>
          <Button name="$parentTab" parentKey="ListTab" mixin="ClassPlanHeaderMixin">
            <Scripts>
              <OnClick method="OnClick" />
            </Scripts>
            <Size y="24" />
            <Layers>
              <Layer level="BACKGROUND">
                <Texture parentKey="Background">
                  <Color a="1" r="0" g="0" b="0" />
                </Texture>
              </Layer>
              <Layer level="OVERLAY">
                <FontString parentKey="Label" inherits="ClassPlanFont">
                  <Anchors>
                    <Anchor point="CENTER" />
                  </Anchors>
                </FontString>
              </Layer>
              <Layer level="HIGHLIGHT">
                <Texture parentKey="Highlight">
                  <Color a="0.5" r="1" g="1" b="1" />
                </Texture>
              </Layer>
            </Layers>

          </Button>
        </Frames>
      </Frame>
      <Frame name="$parentShipments" parentKey="Shipments" parentArray="Handlers" mixin="ClassPlanShipmentHandler">
        <Scripts>
          <OnLoad method="OnLoad" />
          <OnUpdate method="OnUpdate" />
          <OnEvent method="OnEvent" />
          <OnShow method="OnShow" />
        </Scripts>
      </Frame>
    </Frames>
  </Frame>



  <Button name="ClassPlanListEntryTemplate" virtual="true" hidden="true">
    <Scripts>
      <OnLoad method="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="ClassPlanMissionEntryMixin" virtual="true">
    <Size y="24" />
    <Anchors>
      <Anchor point="RIGHT" />
    </Anchors>
  </Button>

  <Button name="ClassPlanShipmentEntry" inherits="ClassPlanListEntryTemplate" mixin="ClassPlanShipmentEntryMixin" virtual="true">
    <Size y="24" />

    <Anchors>
      <Anchor point="RIGHT" />
    </Anchors>
  </Button>
</Ui>