comparison QuestPOI.xml @ 109:caa482329919

POI optimization
author Nenue
date Mon, 10 Jul 2017 18:34:11 -0400
parents
children
comparison
equal deleted inserted replaced
108:b67ba1078824 109:caa482329919
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/
2 ..\FrameXML\UI.xsd">
3
4 <Script file="QuestPOI.lua" />
5
6
7
8 <Button name="WorldPlanQuestPin" virtual="true" hidden="true" mixin="WorldPlanPOIMixin">
9 <Animations>
10 <AnimationGroup parentKey="FadeIn" setToFinalAlpha="true" looping="NONE">
11 <Alpha parentKey="Icon" childKey="icon" duration="0.45" fromAlpha="0" toAlpha="1" order="1" />
12 <Alpha parentKey="Border" childKey="RewardBorder" duration="0.45" fromAlpha="0" toAlpha="1" order="1" />
13 <Scripts>
14 <OnPlay>
15 self:GetParent():OnAnimStart()
16 </OnPlay>
17 <OnStop>
18 self:GetParent():OnAnimStop()
19 </OnStop>
20 <OnFinished>
21 self:GetParent():OnAnimStop()
22 </OnFinished>
23 </Scripts>
24 </AnimationGroup>
25 </Animations>
26 <Layers>
27 <Layer level="BACKGROUND" textureSubLevel="-2">
28 <Texture parentKey="HighlightBorder" file="Interface\UNITPOWERBARALT\Generic1Target_Circular_Frame" desaturated="true">
29 <Anchors>
30 <Anchor point="CENTER" />
31 </Anchors>
32 </Texture>
33 <Texture parentKey="EliteBorder" atlas="worldquest-questmarker-dragon" useAtlasSize="true" hidden="true">
34 <Anchors>
35 <Anchor point="TOPRIGHT" x="6" y="6" />
36 <Anchor point="BOTTOMLEFT" x="-6" y="-6" />
37 </Anchors>
38 </Texture>
39 </Layer>
40 <Layer level="BACKGROUND" textureSubLevel="-1">
41 <Texture parentKey="RewardBorder" file="Interface\Minimap\UI-Minimap-Background" desaturated="true" alpha="0">
42 <Anchors>
43 <Anchor point="CENTER" />
44 </Anchors>
45 </Texture>
46 </Layer>
47 <Layer textureSubLevel="0">
48
49 <Texture parentKey="IconBackdrop" file="Interface\Minimap\UI-Minimap-Background">
50 <Anchors>
51 <Anchor point="CENTER" />
52 </Anchors>
53 </Texture>
54 </Layer>
55 <Layer level="ARTWORK" textureSubLevel="2">
56 <Texture parentKey="icon" nonBlocking="true" setAllPoints="true" alpha="0">
57 <Anchors>
58 <Anchor point="CENTER" />
59 </Anchors>
60 </Texture>
61 </Layer>
62 <Layer level="OVERLAY">
63 <Texture parentKey="tagIcon" nonBlocking="true" setAllPoints="false">
64 <Size x="12" y="12" />
65 <Anchors>
66 <Anchor point="BOTTOMRIGHT" x="1" y="-1" />
67 </Anchors>
68 </Texture>
69 </Layer>
70 <Layer level="HIGHLIGHT">
71 <Texture parentKey="highlight" alphaMode="ADD" alpha="1" file="Interface\UNITPOWERBARALT\Generic1Target_Circular_Frame" desaturated="true">
72 <Anchors>
73 <Anchor point="BOTTOMLEFT" />
74 <Anchor point="TOPRIGHT" />
75 </Anchors>
76 </Texture>
77
78 </Layer>
79 </Layers>
80 <Scripts>
81 <OnLoad method="OnLoad" />
82 <OnEvent method="OnEvent" />
83 <OnUpdate method="OnUpdate" />
84 <OnShow method="OnShow" />
85 <OnHide method="OnHide" />
86 <OnMouseDown method="OnMouseDown" />
87 <OnEnter method="OnEnter" />
88 <OnLeave method="OnLeave" />
89 </Scripts>
90 <Frames>
91 <Frame parentKey="Overlay" name="$parentOverlay" setAllPoints="true" hidden="true">
92 <!--
93 <Scripts>
94 <OnShow>
95 local out = debugstack(3,3,1)
96 out = out:gsub("Interface%\\AddOns\\", "|cFFFF00FF\\|r")
97 print('POI', self:GetName().. ':OnShow()\n' .. out:gsub("Interface%\\", "|cFF00FFFF\\|r"))
98 </OnShow>
99 <OnHide>
100 local out = debugstack(3,3,1)
101 out = out:gsub("Interface%\\AddOns\\", "|cFFFF00FF\\|r")
102 print('POI', self:GetName().. ':OnHide()\n' .. out:gsub("Interface%\\", "|cFF00FFFF\\|r"))
103 </OnHide>
104 </Scripts>
105 -->
106 <Layers>
107 <Layer level="OVERLAY">
108 <FontString inherits="WorldPlanNumberFontThin" parentKey="count">
109 <Anchors>
110 <Anchor point="BOTTOM" x="0" y="0" />
111 </Anchors>
112 </FontString>
113 <FontString inherits="WorldPlanNumberFont" parentKey="timeLabel">
114 <Anchors>
115 <Anchor point="TOP" x="0" y="0" />
116 </Anchors>
117 </FontString>
118 <FontString inherits="WorldPlanNumberFontThin" parentKey="Description">
119 <Anchors>
120 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.count" x="0" y="0" />
121 </Anchors>
122 </FontString>
123 </Layer>
124 </Layers>
125 </Frame>
126 </Frames>
127 </Button>
128 </Ui>