diff QuestPOI.xml @ 109:caa482329919

POI optimization
author Nenue
date Mon, 10 Jul 2017 18:34:11 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QuestPOI.xml	Mon Jul 10 18:34:11 2017 -0400
@@ -0,0 +1,128 @@
+<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="QuestPOI.lua" />
+
+
+
+    <Button name="WorldPlanQuestPin" virtual="true" hidden="true" mixin="WorldPlanPOIMixin">
+        <Animations>
+            <AnimationGroup parentKey="FadeIn" setToFinalAlpha="true" looping="NONE">
+                <Alpha parentKey="Icon" childKey="icon" duration="0.45" fromAlpha="0" toAlpha="1" order="1" />
+                <Alpha parentKey="Border" childKey="RewardBorder" duration="0.45" fromAlpha="0" toAlpha="1" order="1" />
+                <Scripts>
+                    <OnPlay>
+                        self:GetParent():OnAnimStart()
+                    </OnPlay>
+                    <OnStop>
+                        self:GetParent():OnAnimStop()
+                    </OnStop>
+                    <OnFinished>
+                        self:GetParent():OnAnimStop()
+                    </OnFinished>
+                </Scripts>
+            </AnimationGroup>
+        </Animations>
+        <Layers>
+            <Layer level="BACKGROUND" textureSubLevel="-2">
+                <Texture parentKey="HighlightBorder"  file="Interface\UNITPOWERBARALT\Generic1Target_Circular_Frame" desaturated="true">
+                    <Anchors>
+                        <Anchor point="CENTER" />
+                    </Anchors>
+                </Texture>
+                <Texture parentKey="EliteBorder" atlas="worldquest-questmarker-dragon" useAtlasSize="true" hidden="true">
+                    <Anchors>
+                        <Anchor point="TOPRIGHT" x="6" y="6" />
+                        <Anchor point="BOTTOMLEFT" x="-6" y="-6" />
+                    </Anchors>
+                </Texture>
+            </Layer>
+            <Layer level="BACKGROUND" textureSubLevel="-1">
+                <Texture parentKey="RewardBorder" file="Interface\Minimap\UI-Minimap-Background" desaturated="true" alpha="0">
+                    <Anchors>
+                        <Anchor point="CENTER" />
+                    </Anchors>
+                </Texture>
+            </Layer>
+            <Layer textureSubLevel="0">
+
+                <Texture parentKey="IconBackdrop" file="Interface\Minimap\UI-Minimap-Background">
+                    <Anchors>
+                        <Anchor point="CENTER" />
+                    </Anchors>
+                </Texture>
+            </Layer>
+            <Layer level="ARTWORK" textureSubLevel="2">
+                <Texture parentKey="icon" nonBlocking="true" setAllPoints="true" alpha="0">
+                    <Anchors>
+                        <Anchor point="CENTER" />
+                    </Anchors>
+                </Texture>
+            </Layer>
+            <Layer level="OVERLAY">
+                <Texture parentKey="tagIcon" nonBlocking="true" setAllPoints="false">
+                    <Size x="12" y="12" />
+                    <Anchors>
+                        <Anchor point="BOTTOMRIGHT" x="1" y="-1" />
+                    </Anchors>
+                </Texture>
+            </Layer>
+            <Layer level="HIGHLIGHT">
+                <Texture parentKey="highlight" alphaMode="ADD" alpha="1" file="Interface\UNITPOWERBARALT\Generic1Target_Circular_Frame" desaturated="true">
+                    <Anchors>
+                        <Anchor point="BOTTOMLEFT" />
+                        <Anchor point="TOPRIGHT" />
+                    </Anchors>
+                </Texture>
+
+            </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>
+        <Frames>
+            <Frame parentKey="Overlay" name="$parentOverlay" setAllPoints="true" hidden="true">
+                <!--
+                <Scripts>
+                  <OnShow>
+                    local out = debugstack(3,3,1)
+                    out = out:gsub("Interface%\\AddOns\\", "|cFFFF00FF\\|r")
+                    print('POI', self:GetName().. ':OnShow()\n' .. out:gsub("Interface%\\", "|cFF00FFFF\\|r"))
+                  </OnShow>
+                  <OnHide>
+                    local out = debugstack(3,3,1)
+                    out = out:gsub("Interface%\\AddOns\\", "|cFFFF00FF\\|r")
+                    print('POI', self:GetName().. ':OnHide()\n' .. out:gsub("Interface%\\", "|cFF00FFFF\\|r"))
+                  </OnHide>
+                </Scripts>
+                -->
+                <Layers>
+                    <Layer level="OVERLAY">
+                        <FontString inherits="WorldPlanNumberFontThin" parentKey="count">
+                            <Anchors>
+                                <Anchor point="BOTTOM" x="0" y="0" />
+                            </Anchors>
+                        </FontString>
+                        <FontString inherits="WorldPlanNumberFont" parentKey="timeLabel">
+                            <Anchors>
+                                <Anchor point="TOP" x="0" y="0" />
+                            </Anchors>
+                        </FontString>
+                        <FontString inherits="WorldPlanNumberFontThin" parentKey="Description">
+                            <Anchors>
+                                <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.count" x="0" y="0" />
+                            </Anchors>
+                        </FontString>
+                    </Layer>
+                </Layers>
+            </Frame>
+        </Frames>
+    </Button>
+</Ui>
\ No newline at end of file