diff ObjectiveTracker.xml @ 3:3397aae1f44d

- use the correct key value when searching for action buttons - handle pre-built frames from XML
author Nenue
date Thu, 31 Mar 2016 07:32:05 -0400
parents a2396b03ce63
children 589de8ea05b9
line wrap: on
line diff
--- a/ObjectiveTracker.xml	Thu Mar 31 01:38:47 2016 -0400
+++ b/ObjectiveTracker.xml	Thu Mar 31 07:32:05 2016 -0400
@@ -5,19 +5,35 @@
     <Color r="1" g="1" b="0" a="1" />
   </Texture>
 
+  <Font name="VeneerCriteriaFontNormal" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
+    <Color r="1" g="1" b="1" a="1" />
+  </Font>
+  <Font name="VeneerCriteriaFontComplete" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
+    <Color r="0" g="1" b="0" a=".75" />
+  </Font>
+  <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
+    <Color r="1" g="1" b="0" a="1" />
+  </Font>
+
+  <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
+    <Color r="1" g=".4" b="0" a=".75" />
+  </Font>
+
   <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true">
     <Scripts>
       <OnLoad>
         self.toggle = true
-        self:RegisterForDrag('LeftButton')
+        self.drag = true
+        Veneer.OnLoad(self)
       </OnLoad>
       <OnShow>
       </OnShow>
       <OnDragStart>
-        self:StartMoving()
+        Veneer.OnDragStart(self)
       </OnDragStart>
       <OnDragStop>
-        self:StopMovingOrSizing()
+        Veneer.OnDragStop(self)
+        Veneer.ObjectiveTracker.UpdateActionButtons()
       </OnDragStop>
       <!--@debug@-->
       <!--@end-debug@-->
@@ -28,7 +44,6 @@
     <Layers>
 
       <Layer level="ARTWORK">
-        <Texture parentKey="HeaderBounds" />
         <Texture parentKey="BackgroundLeft" parentArray="header" hidden="false" alpha="1" atlas="Objective-Header" useAtlasSize="false">
           <Size x="100" y="84" />
           <TexCoords up="0" down="1" left="0" right="0.3" />
@@ -40,7 +55,7 @@
           <Size x="70" y="84" />
           <TexCoords up="0" down="1" left="0.6" right="1" />
           <Anchors>
-            <Anchor point="TOPRIGHT"  x="24" y="12" />
+            <Anchor point="TOPRIGHT"  x="30" y="12" />
           </Anchors>
         </Texture>
         <Texture parentKey="BackgroundTile" parentArray="header" hidden="false" alpha="1" atlas="Objective-Header" useAtlasSize="false" tile="true">
@@ -51,6 +66,20 @@
             <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.BackgroundRight" />
           </Anchors>
         </Texture>
+        <Texture parentKey="HeaderBounds" parentArray="config" alphaMode="ADD" hidden="true">
+          <Color r="0" g="0" b="1" a="0.5" />
+          <Anchors>
+            <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" />
+            <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" />
+          </Anchors>
+        </Texture>
+        <Texture parentKey="FrameBounds" parentArray="config" alphaMode="ADD" hidden="true">
+          <Color r="1" g="0" b="1" a="0.25" />
+          <Anchors>
+            <Anchor point="TOPLEFT" />
+            <Anchor point="BOTTOMRIGHT"  />
+          </Anchors>
+        </Texture>
         <!--<Texture desatuated="true" parentKey="LineGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineGlow" useAtlasSize="true">
           <Anchors>
             <Anchor point="LEFT" relativeKey="$parent.Background" x="-21" y="18"/>
@@ -79,7 +108,7 @@
     </Layers>
     <Frames>
 
-      <Frame name="$parentXP" parentKey="xpBar" hidden="true">
+      <Frame name="$parentXP" parentKey="XPBar" hidden="true">
         <Size x="250" y="24" />
         <Anchors>
           <Anchor point="TOPLEFT" />
@@ -268,6 +297,8 @@
   </Frame>
 
   <Include file="ObjectiveSecure.xml" />
+  <Include file="ObjectiveWidgets.xml" />
+
   <Script file="ObjectiveTracker.lua" />
   <Script file="ObjectiveInfo.lua" />
   <Script file="ObjectiveUI.lua" />