view WorldPlan.xml @ 34:0100d923d8c3

WorldPlan: - 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 Wed, 02 Nov 2016 19:04:47 -0400
parents be4db60219ca
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="WorldPlan.lua" />
  <Script file="QuestPOI.lua" />

  <Font name="WorldPlanFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Regular.ttf" height="12" outline="NORMAL" virtual="true" />
  <Font name="WorldPlanNumberFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Bold.ttf" height="10" outline="NORMAL" virtual="true" />
  <Font name="WorldPlanNumberFontThin" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Regular.ttf" height="14" outline="NORMAL" virtual="true" />

  <GameTooltip name="WorldPlanTooltip" parent="UIParent" inherits="GameTooltipTemplate">

  </GameTooltip>


  <Button name="VeneerWQCompassTemplate" virtual="true" hidden="true">
    <Size x="50" y="36" />
    <Anchors>
      <Anchor point="TOP" />
    </Anchors>
    <Layers>
      <Layer level="ARTWORK">
        <Texture parentKey="icon" name="$parentIcon" setAllPoints="false">
          <Anchors>
            <Anchor point="TOPLEFT" />
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString inherits="VeneerFont" parentKey="label">
          <Anchors>
            <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.icon" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
  </Button>

  <Button name="WorldPlanQuestPin" virtual="true" hidden="true" frameStrata="TOOLTIP" mixin="WorldPlanPOIMixin">
    <Animations>
      <AnimationGroup parentKey="FadeIn" setToFinalAlpha="true" looping="NONE">
        <Alpha parentKey="FadeIn" duration="0.15" fromAlpha="0" toAlpha="1" order="1" />
        <Scripts>
          <OnPlay>
            self:GetParent().highlight:Show()
          </OnPlay>
          <OnStop>
            self:GetParent().highlight:Hide()
            self:GetParent().isAnimating = nil
          </OnStop>
          <OnFinished>
            self:GetParent().highlight:Hide()
            self:GetParent().isAnimating = nil
          </OnFinished>
        </Scripts>
      </AnimationGroup>
      <AnimationGroup parentKey="PendingFade" setToFinalAlpha="true" looping="REPEAT">
        <Alpha parentKey="FadeOut" duration="0.72" fromAlpha="1" toAlpha="0" order="1" />
        <Alpha parentKey="FadeIn" duration="0.72" fromAlpha="0" toAlpha="1" order="2" />
      </AnimationGroup>
    </Animations>
    <Layers>
      <Layer level="ARTWORK">

        <Texture parentKey="icon" setAllPoints="true">
          <Anchors>
            <Anchor point="TOPLEFT" />
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="BORDER">
        <Texture parentKey="iconBorder" file="Interface\BUTTONS\GREENGRAD64" desaturated="true" />
      </Layer>
      <Layer level="BACKGROUND">
        <Texture parentKey="MouseGlow" file="Interface\WorldMap\UI-QuestPoi-IconGlow" alphaMode="ADD" hidden="true">
          <Anchors>
            <Anchor point="TOPRIGHT" x="14" y="14" />
            <Anchor point="BOTTOMLEFT" x="-14" y="-14" />
          </Anchors>
        </Texture>
        <Texture parentKey="supertrackBorder" desaturated="true" />
        <Texture parentKey="EliteBorder" atlas="worldquest-questmarker-dragon" hidden="true">
          <Anchors>
            <Anchor point="TOPLEFT" relativeKey="$parent.iconBorder" x="-6" y="6"/>
            <Anchor point="BOTTOMRIGHT" relativeKey="$parent.iconBorder" x="6" y="-6"/>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString name="$parentCount" inherits="WorldPlanNumberFontThin" parentKey="count">
          <Anchors>
            <Anchor point="BOTTOM" relativeKey="$parent.icon" x="0" y="0" />
          </Anchors>
        </FontString>
        <FontString name="$parentTimeLeft" inherits="WorldPlanNumberFont" parentKey="timeLabel">
          <Anchors>
            <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.label" x="0" y="0" />
          </Anchors>
        </FontString>
        <Texture parentKey="dot" hidden="true" setAllPoints="false">
          <Size x="6" y="6" />
          <Color a="1" r="1" g="0" b="0" />
        </Texture>
        <Texture parentKey="dotH" hidden="true">
          <Size y="4" />
          <Color a="1" r="0" g="0" b="0" />
        </Texture>
        <Texture parentKey="tagIcon" setAllPoints="false">
          <Size x="12" y="12" />
          <Anchors>
            <Anchor point="BOTTOMRIGHT" x="1" y="-1" />
          </Anchors>
        </Texture>

      </Layer>
      <Layer level="HIGHLIGHT">
        <Texture parentKey="highlight" setAllPoints="true" alphaMode="ADD" alpha="0" file="Interface\Tooltips\UI-Tooltip-Background" desaturated="true" />

      </Layer>
    </Layers>
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnEvent method="OnEvent" />
      <OnUpdate method="OnUpdate" />
      <OnShow method="OnShow" />
      <OnHide method="OnHide" />
      <OnMouseDown method="OnMouseDown" />
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
    </Scripts>
  </Button>
  <Button name="WorldPlanFilterPin" virtual="true" inherits="WorldPlanQuestPin" mixin="WorldPlanFilterPinMixin">
    <Scripts>
      <OnMouseDown method="OnMouseDown" />
      <OnClick method="OnClick" />
      <OnLoad method="OnLoad" />
      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
    </Scripts>
  </Button>

  <Frame name="WorldPlan" mixin="WorldPlanCore" parent="UIParent">
    <KeyValues>
      <KeyValue key="DEVIAN_PNAME" value="WorldPlan"/>
    </KeyValues>
    <Size x="600" y="24" />
    <Anchors>
      <Anchor point="TOPRIGHT" />
    </Anchors>
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnEvent method="OnEvent" />
      <OnUpdate method="OnUpdate" />
      <OnShow method="OnShow" />
    </Scripts>
  </Frame>

</Ui>