annotate WorldPlan.xml @ 29:c1612c2c1840

WorldPlan: - Optimizations to in a lot of areas that should lead to better load-times and snappier world map. * Responding to quest log and map events by setting flags instead of tailing into the complete works. * Using a generic getter function for resolving pin visual attributes. and making use of blizzard constants for sanity's sake.
author Nenue
date Thu, 27 Oct 2016 13:50:56 -0400
parents dbc865d2be82
children 8cb750e79952
rev   line source
Nenue@0 1 <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/
Nenue@0 2 ..\FrameXML\UI.xsd">
Nenue@0 3
Nenue@0 4 <Script file="WorldPlan.lua" />
Nenue@7 5 <Script file="QuestPOI.lua" />
Nenue@0 6
Nenue@21 7 <Font name="WorldPlanFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Bold.ttf" height="13" outline="NORMAL" virtual="true" />
Nenue@21 8 <Font name="WorldPlanNumberFont" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Bold.ttf" height="10" outline="NORMAL" virtual="true" />
Nenue@29 9 <Font name="WorldPlanNumberFontThin" font="Interface\AddOns\WorldPlan\Font\ArchivoNarrow-Regular.ttf" height="13" outline="THICK" virtual="true" />
Nenue@0 10
Nenue@0 11 <GameTooltip name="WorldPlanTooltip" parent="UIParent" inherits="GameTooltipTemplate">
Nenue@0 12
Nenue@0 13 </GameTooltip>
Nenue@0 14
Nenue@0 15
Nenue@0 16 <Button name="VeneerWQCompassTemplate" virtual="true" hidden="true">
Nenue@0 17 <Size x="50" y="36" />
Nenue@0 18 <Anchors>
Nenue@0 19 <Anchor point="TOP" />
Nenue@0 20 </Anchors>
Nenue@0 21 <Layers>
Nenue@0 22 <Layer level="ARTWORK">
Nenue@0 23 <Texture parentKey="icon" name="$parentIcon" setAllPoints="false">
Nenue@0 24 <Anchors>
Nenue@0 25 <Anchor point="TOPLEFT" />
Nenue@0 26 </Anchors>
Nenue@0 27 </Texture>
Nenue@0 28 </Layer>
Nenue@0 29 <Layer level="OVERLAY">
Nenue@0 30 <FontString inherits="VeneerFont" parentKey="label">
Nenue@0 31 <Anchors>
Nenue@0 32 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.icon" />
Nenue@0 33 </Anchors>
Nenue@0 34 </FontString>
Nenue@0 35 </Layer>
Nenue@0 36 </Layers>
Nenue@0 37 </Button>
Nenue@0 38
Nenue@0 39 <Button name="WorldPlanQuestPin" virtual="true" hidden="true" frameStrata="TOOLTIP" mixin="WorldPlanPOIMixin">
Nenue@0 40 <Animations>
Nenue@0 41 <AnimationGroup parentKey="FadeIn" setToFinalAlpha="true" looping="NONE">
Nenue@0 42 <Alpha duration="0.15" fromAlpha="0" toAlpha="1" order="1" />
Nenue@0 43 <Scripts>
Nenue@0 44 <OnPlay>
Nenue@0 45 self:GetParent().highlight:Show()
Nenue@0 46 </OnPlay>
Nenue@0 47 <OnStop>
Nenue@0 48 self:GetParent().highlight:Hide()
Nenue@0 49 self:GetParent().isAnimating = nil
Nenue@0 50 </OnStop>
Nenue@0 51 <OnFinished>
Nenue@0 52 self:GetParent().highlight:Hide()
Nenue@0 53 self:GetParent().isAnimating = nil
Nenue@0 54 </OnFinished>
Nenue@0 55 </Scripts>
Nenue@0 56 </AnimationGroup>
Nenue@0 57 <AnimationGroup parentKey="PendingFade" setToFinalAlpha="true" looping="REPEAT">
Nenue@0 58 <Alpha duration="0.72" fromAlpha="1" toAlpha="0" order="1" />
Nenue@0 59 <Alpha duration="0.72" fromAlpha="0" toAlpha="1" order="2" />
Nenue@0 60 </AnimationGroup>
Nenue@0 61 </Animations>
Nenue@0 62 <Layers>
Nenue@0 63 <Layer level="ARTWORK">
Nenue@0 64
Nenue@0 65 <Texture parentKey="icon" setAllPoints="true">
Nenue@0 66 <Anchors>
Nenue@0 67 <Anchor point="TOPLEFT" />
Nenue@0 68 </Anchors>
Nenue@0 69 </Texture>
Nenue@0 70 </Layer>
Nenue@0 71 <Layer level="BORDER">
Nenue@0 72 <Texture parentKey="iconBorder" file="Interface\BUTTONS\GREENGRAD64" desaturated="true" />
Nenue@0 73 </Layer>
Nenue@0 74 <Layer level="BACKGROUND">
Nenue@0 75 <Texture parentKey="MouseGlow" file="Interface\WorldMap\UI-QuestPoi-IconGlow" alphaMode="ADD" hidden="true">
Nenue@0 76 <Anchors>
Nenue@0 77 <Anchor point="TOPRIGHT" x="14" y="14" />
Nenue@0 78 <Anchor point="BOTTOMLEFT" x="-14" y="-14" />
Nenue@0 79 </Anchors>
Nenue@0 80 </Texture>
Nenue@29 81 <Texture parentKey="supertrackBorder" desaturated="true" />
Nenue@29 82 <Texture parentKey="EliteBorder" atlas="worldquest-questmarker-dragon" hidden="true">
Nenue@0 83 <Anchors>
Nenue@0 84 <Anchor point="TOPLEFT" relativeKey="$parent.iconBorder" x="-6" y="6"/>
Nenue@0 85 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.iconBorder" x="6" y="-6"/>
Nenue@0 86 </Anchors>
Nenue@0 87 </Texture>
Nenue@0 88 </Layer>
Nenue@0 89 <Layer level="OVERLAY">
Nenue@29 90 <FontString inherits="WorldPlanNumberFontThin" parentKey="count">
Nenue@0 91 <Anchors>
Nenue@29 92 <Anchor point="BOTTOM" relativeKey="$parent.icon" x="0" y="0" />
Nenue@0 93 </Anchors>
Nenue@0 94 </FontString>
Nenue@1 95 <FontString inherits="WorldPlanNumberFont" parentKey="timeLabel">
Nenue@0 96 <Anchors>
Nenue@0 97 <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.label" x="0" y="0" />
Nenue@0 98 </Anchors>
Nenue@0 99 </FontString>
Nenue@0 100 <Texture parentKey="dot" hidden="true" setAllPoints="false">
Nenue@0 101 <Size x="6" y="6" />
Nenue@0 102 <Color a="1" r="1" g="0" b="0" />
Nenue@0 103 </Texture>
Nenue@0 104 <Texture parentKey="dotH" hidden="true">
Nenue@0 105 <Size y="4" />
Nenue@0 106 <Color a="1" r="0" g="0" b="0" />
Nenue@0 107 </Texture>
Nenue@0 108 <Texture parentKey="tagIcon" setAllPoints="false">
Nenue@0 109 <Size x="12" y="12" />
Nenue@0 110 <Anchors>
Nenue@0 111 <Anchor point="BOTTOMRIGHT" x="1" y="-1" />
Nenue@0 112 </Anchors>
Nenue@0 113 </Texture>
Nenue@0 114
Nenue@29 115 </Layer>
Nenue@29 116 <Layer level="HIGHLIGHT">
Nenue@0 117 <Texture parentKey="highlight" setAllPoints="true" alphaMode="ADD" alpha="0" file="Interface\Tooltips\UI-Tooltip-Background" desaturated="true" />
Nenue@0 118
Nenue@0 119 </Layer>
Nenue@0 120 </Layers>
Nenue@0 121 <Scripts>
Nenue@0 122 <OnLoad method="OnLoad" />
Nenue@0 123 <OnEvent method="OnEvent" />
Nenue@0 124 <OnUpdate method="OnUpdate" />
Nenue@0 125 <OnShow method="OnShow" />
Nenue@0 126 <OnHide method="OnHide" />
Nenue@7 127 <OnMouseDown method="OnMouseDown" />
Nenue@7 128 <OnEnter method="OnEnter" />
Nenue@7 129 <OnLeave method="OnLeave" />
Nenue@0 130 </Scripts>
Nenue@0 131 </Button>
Nenue@0 132 <Button name="WorldPlanFilterPin" virtual="true" inherits="WorldPlanQuestPin" mixin="WorldPlanFilterPinMixin">
Nenue@0 133 <Scripts>
Nenue@7 134 <OnMouseDown method="OnMouseDown" />
Nenue@0 135 <OnClick method="OnClick" />
Nenue@0 136 <OnLoad method="OnLoad" />
Nenue@7 137 <OnEnter method="OnEnter" />
Nenue@7 138 <OnLeave method="OnLeave" />
Nenue@0 139 </Scripts>
Nenue@0 140 </Button>
Nenue@0 141
Nenue@0 142 <Frame name="WorldPlan" mixin="WorldPlanCore" parent="UIParent">
Nenue@0 143 <KeyValues>
Nenue@0 144 <KeyValue key="DEVIAN_PNAME" value="WorldPlan"/>
Nenue@0 145 </KeyValues>
Nenue@0 146 <Size x="600" y="24" />
Nenue@0 147 <Anchors>
Nenue@4 148 <Anchor point="TOPRIGHT" />
Nenue@0 149 </Anchors>
Nenue@0 150 <Scripts>
Nenue@0 151 <OnLoad method="OnLoad" />
Nenue@0 152 <OnEvent method="OnEvent" />
Nenue@0 153 </Scripts>
Nenue@0 154 </Frame>
Nenue@0 155
Nenue@0 156 </Ui>