diff ObjectiveTracker.xml @ 19:605e8f0e46db

ObjectiveCore / Style / Events / Frame - polishing the execution path for better performance - make use of the Blizzard_ObjectiveTracker bitfield values to ensure compatibility in possible secure hooks - avoid full updates when possible (using said bitfield values to indicate targeted sections) - extreme streamlining of event handling layout: specific reason updates are invoked from API hooks; broader updates are invoked by when the event listener catches something vague like 'QUEST_LOG_UPDATE'
author Nenue
date Wed, 06 Apr 2016 07:38:35 -0400
parents d1812fb10ae6
children d5ee940de273
line wrap: on
line diff
--- a/ObjectiveTracker.xml	Tue Apr 05 02:38:01 2016 -0400
+++ b/ObjectiveTracker.xml	Wed Apr 06 07:38:35 2016 -0400
@@ -80,6 +80,9 @@
     <Frames>
 
       <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea" parentArray="minimizeFrames">
+        <Anchors>
+          <Anchor point="TOPLEFT" />
+        </Anchors>
         <Layers>
           <Layer level="BACKGROUND">
             <Texture setAllPoints="true" parentKey="bg">
@@ -90,21 +93,22 @@
         <Frames>
 
 
-          <!-- Can't get it to work as 'Slider'; implement as click frame
-          <Slider name="$parentBar" parentKey="scrollBar" minValue="1" maxValue="100" valueStep="1" stepsPerPage="1" defaultValue="1" orientation="VERTICAL">
-            <HitRectInsets top="-1" bottom="1" right="1" left="0" />
-            <ThumbTexture name="$parentThumb">
-              <Color r="1" g="1" b="1" a="0.85" />
-            </ThumbTexture>
+          <Frame name="VeneerObjectiveScroll">
+            <Anchors>
+              <Anchor point="TOPLEFT" />
+            </Anchors>
             <Layers>
               <Layer level="BACKGROUND">
-                <Texture setAllPoints="true">
-                  <Color r="1" g="0" b="0" a=".5" />
+                <Texture setAllPoints="true" parentKey="bg">
+                  <Color r="1" g="1" b="1" a="1" />
+                  <Gradient orientation="HORIZONTAL">
+                    <MinColor r="0" g="0.5" b="0.5" a="0" />
+                    <MaxColor r="0" g="0.5" b="0.5" a="0" />
+                  </Gradient>
                 </Texture>
               </Layer>
             </Layers>
-          </Slider>
-          -->
+          </Frame>
         </Frames>
       </ScrollFrame>
 
@@ -178,22 +182,6 @@
   <!-- Header Panel -->
 
   <!-- Background panels -->
-  <Frame name="VeneerObjectiveScroll" parent="VeneerObjectiveWrapperScrollFrame">
-    <Anchors>
-      <Anchor point="TOPLEFT" />
-    </Anchors>
-    <Layers>
-      <Layer level="BACKGROUND">
-        <Texture setAllPoints="true" parentKey="bg">
-          <Color r="1" g="1" b="1" a="1" />
-          <Gradient orientation="HORIZONTAL">
-            <MinColor r="0" g="0.5" b="0.5" a="0" />
-            <MaxColor r="0" g="0.5" b="0.5" a="0" />
-          </Gradient>
-        </Texture>
-      </Layer>
-    </Layers>
-  </Frame>
 
   <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true">
     <Layers>
@@ -356,4 +344,5 @@
   <Script file="ObjectiveFrame.lua" />
   <Script file="ObjectiveEvents.lua" />
   <Script file="ObjectiveWidgets.lua" />
+  <Script file="XPTracker.lua" />
 </Ui>
\ No newline at end of file