diff FilterBar.xml @ 93:98b5e08b75ed v1.4.9

- Fixed quest completion checking and handling - Changed animation method to hopefully stop weird flickering. - Pins are now visible before full reward data is loaded - Filter bar redesigned: - aligned horizontally along the top of the map display - filter buttons display a '+' when there are matches in both current and other zones, and '*' when there only matches in other zones - button tooltips separate local and global quests - button categories are highlighted and labeled when the cursor is over them - Fixed invalid POI targets appearing when the spell targeting cursor is active
author Nenue
date Sat, 15 Apr 2017 11:04:54 -0400
parents db570c6a0ffb
children b29b35cb8539
line wrap: on
line diff
--- a/FilterBar.xml	Tue Apr 11 00:44:22 2017 -0400
+++ b/FilterBar.xml	Sat Apr 15 11:04:54 2017 -0400
@@ -1,17 +1,113 @@
 <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="FilterBar.lua" />
-  <Frame name="$parentSummary" parent="WorldPlan" mixin="WorldPlanSummaryMixin">
+  <Frame name="$parentSummary" parent="WorldPlan" mixin="WorldPlanSummaryMixin" hidden="true">
+    <Size x="24" y="24" />
+    <Anchors>
+      <Anchor point="BOTTOMLEFT" />
+    </Anchors>
     <Scripts>
       <OnLoad method="OnLoad" />
       <OnEvent method="OnEvent" />
       <OnShow method="OnShow" />
+      <OnUpdate method="OnUpdate" />
     </Scripts>
 
-    <Size x="24" y="24" />
+    <Layers>
+      <Layer level="BACKGROUND">
 
+        <Texture parentKey="Backdrop" hidden="true">
+          <Size y="40" />
+          <Anchors>
+            <Anchor point="LEFT" />
+            <Anchor point="RIGHT" />
+            <Anchor point="TOP" />
+          </Anchors>
+          <Gradient orientation="VERTICAL">
+            <MinColor r="0" g="0" b="0" a="0" />
+            <MaxColor r="0" g="0" b="0" a=".7" />
+          </Gradient>
+          <Color a="1" r="1" g="1" b="1" />
+        </Texture>
+      </Layer>
+    </Layers>
+
+    <Frames>
+      <CheckButton name="$parentToggle" parentKey="Toggle" >
+        <Size x="20" y="20" />
+        <Anchors>
+          <Anchor point="TOPLEFT" x="3" y="-3" />
+        </Anchors>
+        <Layers>
+          <Layer level="BACKGROUND">
+            <Texture setAllPoints="false">
+              <Anchors>
+                <Anchor point="TOPRIGHT" x="-1" y="-1" />
+                <Anchor point="BOTTOMLEFT" x="1" y="1" />
+              </Anchors>
+              <Color a="1" r="0" g="0" b="0" />
+            </Texture>
+          </Layer>
+        </Layers>
+        <NormalTexture setAllPoints="true">
+          <Color a=".25" r="0" g="0" b="0" />
+        </NormalTexture>
+        <CheckedTexture setAllPoints="false" file="Interface\BUTTONS\UI-CheckBox-Check">
+          <Anchors>
+            <Anchor point="TOPRIGHT" x="-1" y="-1" />
+            <Anchor point="BOTTOMLEFT" x="1" y="1" />
+          </Anchors>
+        </CheckedTexture>
+      </CheckButton>
+    </Frames>
   </Frame>
-  <Button name="WorldPlanFilterPin" virtual="true" flattenRenderLayers="true" mixin="WorldPlanFilterPinMixin">
+  <Frame name="WorldPlanFilterHeader" parentArray="Headers" virtual="true" enableMouse="true">
+    <Size x="24" y="30" />
+    <Layers>
+      <Layer level="BACKGROUND">
+        <Texture parentKey="Backdrop" hidden="true">
+          <Anchors>
+            <Anchor point="LEFT" />
+            <Anchor point="RIGHT" />
+            <Anchor point="TOP" />
+          </Anchors>
+          <Gradient orientation="VERTICAL">
+            <MinColor r="0" g="0" b="0" a=".5" />
+            <MaxColor r="0" g="0" b="0" a="1" />
+          </Gradient>
+          <Color a="1" r="1" g="1" b="1" />
+        </Texture>
+        <Texture parentKey="Edge1">
+          <Size x="1" y="24" />
+          <Anchors>
+            <Anchor point="TOPLEFT"  />
+          </Anchors>
+          <Gradient orientation="VERTICAL">
+            <MinColor r="1" g="1" b="1" a="0" />
+            <MaxColor r="1" g="1" b="1" a=".5" />
+          </Gradient>
+          <Color a="1" r="1" g="1" b="1" />
+        </Texture>
+        <Texture parentKey="Edge2">
+          <Size x="1" y="24" />
+          <Anchors>
+            <Anchor point="TOPRIGHT"  />
+          </Anchors>
+          <Gradient orientation="VERTICAL">
+            <MinColor r="1" g="1" b="1" a="0" />
+            <MaxColor r="1" g="1" b="1" a=".5" />
+          </Gradient>
+          <Color a="1" r="1" g="1" b="1" />
+        </Texture>
+        <FontString inherits="GameFontNormal" parentKey="Label" hidden="true">
+          <Anchors>
+            <Anchor point="BOTTOMLEFT" x="2" y="2" />
+          </Anchors>
+        </FontString>
+      </Layer>
+    </Layers>
+  </Frame>
+  <Button name="WorldPlanFilterButton" parentArray="Buttons" virtual="true" mixin="WorldPlanFilterButtonMixin">
     <Scripts>
       <OnClick method="OnClick" />
       <OnLoad method="OnLoad" />
@@ -25,7 +121,7 @@
     </Scripts>
     <Layers>
       <Layer level="BACKGROUND">
-        <Texture parentKey="RewardBorder" setAllPoints="true" />
+        <Texture parentKey="RewardBorder" setAllPoints="true" alphaMode="ADD" />
       </Layer>
       <Layer level="ARTWORK">
         <Texture parentKey="icon">