view ClassPlan.xml @ 35:26dfa661daa7

WorldPlan: - Quest pins will appear in the flight map. They follow the filter settings applied from the world map. - Reward filter toggle changed to clear out other reward filters. The assumption being that one is most often looking only for that particular type of quest when they go to use it. - Fixed filter bar info falling out of sync after player-triggered world map updates. - Code stuff: -- Quest pin shown-state management makes better use of OnShow OnHide handlers, SetShown is toggled and it all goes from there -- WorldQuests module re-factored outside of the top level frame script. ClassPlan: - Available missions are now recorded; the mission list can be toggled between in-progress and available by clicking the heading.
author Nenue
date Thu, 03 Nov 2016 17:29:15 -0400
parents e8679ecb48d8
children 589c444d4837
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>
  </Frame>



  <Frame name="ClassPlanPanelTemplate" parent="ClassOrderPlan" enableMouse="true" parentArray="Handlers" virtual="true">

    <Scripts>
      <OnLoad method="OnLoad" />
      <OnUpdate method="OnUpdate" />
      <OnEvent method="OnEvent" />
      <OnShow method="OnShow" />
      <OnMouseWheel method="OnMouseWheel" />
    </Scripts>
    <Frames>
      <Frame parentKey="MoreItemsUp" frameStrata="HIGH" hidden="true">
        <Size y="24" />
        <Anchors>
          <Anchor point="TOPLEFT" />
          <Anchor point="TOPRIGHT" />
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <Texture parentKey="Overlay">
              <Color a="1" r="1" g="1" b="1" />
              <Gradient orientation="VERTICAL">
                <MinColor r="0" g="0" b="0" a="0" />
                <MaxColor r="0" g="0" b="0" a="0.5" />
              </Gradient>
            </Texture>
          </Layer>
        </Layers>
      </Frame>

      <Frame parentKey="MoreItemsDown" frameStrata="HIGH" hidden="true">
        <Size y="24" />
        <Anchors>
          <Anchor point="BOTTOMLEFT" />
          <Anchor point="BOTTOMRIGHT" />
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <Texture parentKey="Overlay">
              <Color a="1" r="1" g="1" b="1" />
              <Gradient orientation="VERTICAL">
                <MinColor r="0" g="0" b="0" a="0.5" />
                <MaxColor r="0" g="0" b="0" a="0" />
              </Gradient>
            </Texture>
          </Layer>
        </Layers>
      </Frame>
    </Frames>
  </Frame>


  <Frame name="$parentShipments" parentKey="Shipments" mixin="ClassPlanShipmentHandler" inherits="ClassPlanPanelTemplate" />
  <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="ClassOrderPlanCharacterButton" virtual="true" parent="ClassOrderPlan" mixin="ClassPlanCharacterButtonMixin" >
    <Size x="48" y="48" />
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnEvent method="OnEvent" />
      <OnClick method="OnClick" />
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
    </Scripts>
    <Layers>
      <Layer level="ARTWORK">
        <Texture parentKey="Icon" file="Interface\Glues\CHARACTERCREATE\UI-CHARACTERCREATE-CLASSES" setAllPoints="true" />
      </Layer>
      <Layer level="OVERLAY">
        <Texture parentKey="SelectGlow" file="Interface\Glues\CHARACTERCREATE\UI-CharacterCreate-Highlights" alphaMode="ADD">
          <TexCoords left="0.5" right="1" top="0" bottom="0.5" />
        </Texture>
      </Layer>
    </Layers>
  </Button>

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

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