diff ObjectiveTracker.xml @ 10:f03c75f63566

ObjectiveStyle & ObjectiveFrame - abstract aesthetic details away from ObjectiveFrame - revise SetBlockStyle into a more general algorithm for every frame - implement caching of resolved attribute combinations - use loadstring functions to store resolved attributes and call upon those when, for example, a MouseUp leads a tracker block to restore its original style
author Nenue
date Sat, 02 Apr 2016 03:19:25 -0400
parents 589de8ea05b9
children 8238cddaddb1
line wrap: on
line diff
--- a/ObjectiveTracker.xml	Fri Apr 01 14:54:01 2016 -0400
+++ b/ObjectiveTracker.xml	Sat Apr 02 03:19:25 2016 -0400
@@ -19,6 +19,10 @@
     <Color r="1" g=".4" b="0" a=".75" />
   </Font>
 
+  <Font name="VeneerStatusFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="14">
+    <Color r="1" g="1" b="0" a="1" />
+  </Font>
+
   <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true">
     <Scripts>
       <OnLoad>
@@ -44,10 +48,10 @@
     <Layers>
 
       <Layer level="ARTWORK">
-        <Texture parentKey="BackgroundLeft" parentArray="header" />
-        <Texture parentKey="BackgroundRight" parentArray="header" />
-        <Texture parentKey="BackgroundTile" parentArray="header" />
-        <Texture parentKey="HeaderBounds" parentArray="config" alphaMode="ADD" hidden="true">
+        <Texture parentKey="BackgroundLeft" parentArray="headerComplex" />
+        <Texture parentKey="BackgroundRight" parentArray="headerComplex" />
+        <Texture parentKey="BackgroundTile" parentArray="headerComplex" />
+        <Texture parentKey="headerComplexBounds" parentArray="config" alphaMode="ADD" hidden="true">
           <Color r="0" g="0" b="1" a="0.5" />
           <Anchors>
             <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" />
@@ -84,7 +88,11 @@
         </Texture>-->
       </Layer>
       <Layer level="OVERLAY">
-
+        <FontString name="$parentTitle" parentKey="title" inherits="VeneerStatusFont">
+          <Anchors>
+            <Anchor point="LEFT" />
+          </Anchors>
+        </FontString>
       </Layer>
     </Layers>
     <Frames>
@@ -96,11 +104,11 @@
         </Anchors>
         <Layers>
           <Layer level="BACKGROUND">
-            <Texture name="$parentBackground" parentKey="bg" setAllPoints="true"/>
+            <Texture name="$parentBackground" parentKey="background" setAllPoints="true"/>
           </Layer>
           <Layer level="ARTWORK">
 
-            <Texture name="$parentForeground" parentKey="fg">
+            <Texture name="$parentForeground" parentKey="foreground">
               <Anchors>
                 <Anchor point="TOPLEFT" />
                 <Anchor point="BOTTOMLEFT" />
@@ -114,7 +122,7 @@
             </Texture>
           </Layer>
           <Layer level="OVERLAY">
-            <FontString inherits="VeneerFontNormal" parentKey="xpText">
+            <FontString inherits="VeneerFontNormal" parentKey="title">
               <Anchors>
                 <Anchor point="CENTER" />
               </Anchors>
@@ -133,7 +141,7 @@
       <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea">
         <Layers>
           <Layer level="BACKGROUND">
-            <Texture setAllPoints="true">
+            <Texture setAllPoints="true" parentKey="bg">
               <Color r="0.15" g=".3" b=".3" a="0" />
             </Texture>
           </Layer>
@@ -167,7 +175,7 @@
     </Anchors>
     <Layers>
       <Layer level="BACKGROUND">
-        <Texture setAllPoints="true">
+        <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" />
@@ -181,7 +189,7 @@
   <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true">
     <Layers>
       <Layer level="BACKGROUND">
-        <Texture name="$parentHeaderBG" parentKey="headerbg">
+        <Texture name="$parentTitleBackground" parentKey="titlebg">
           <Anchors>
             <Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
             <Anchor point="RIGHT" relativePoint="RIGHT" />
@@ -194,13 +202,11 @@
         </Texture>
       </Layer>
       <Layer level="OVERLAY">
-        <FontString name="$parentHeader" inherits="VeneerFontHighlight" text="OBJ" parentKey="header">
+        <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title">
           <Anchors>
             <Anchor point="TOPLEFT" />
           </Anchors>
         </FontString>
-
-
       </Layer>
     </Layers>
   </Frame>
@@ -217,7 +223,7 @@
             <Anchor point="TOPLEFT" />
           </Anchors>
         </Texture>
-        <Texture name="$parentBackground" parentKey="bg">
+        <Texture name="$parentStatusBackground" parentKey="statusbg">
           <Anchors>
             <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" />
           </Anchors>
@@ -250,8 +256,8 @@
         </Texture>
         <Texture name="$parentLowLight" parentKey="highlight2">
           <Anchors>
-            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="14" />
-            <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.bg" x="0" y="0"/>
+            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" />
+            <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/>
             <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" />
           </Anchors>
           <Color r="1" g="1" b="1" a="1" />
@@ -267,9 +273,9 @@
             <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
           </Anchors>
         </FontString>
-        <FontString name="$parentLeaderBoard" parentKey="objectives" inherits="VeneerFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true">
+        <FontString name="$parentStatus" parentKey="status" inherits="VeneerFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true">
           <Anchors>
-            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="5" y="0" />
+            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.statusbg" x="5" y="0" />
             <Anchor point="RIGHT" relativeKey="$parent" />
           </Anchors>
         </FontString>
@@ -288,6 +294,7 @@
   <Script file="ObjectiveCore.lua" />
   <Script file="ObjectiveInfo.lua" />
   <Script file="ObjectiveUI.lua" />
+  <Script file="ObjectiveStyle.lua" />
   <Script file="ObjectiveFrame.lua" />
   <Script file="ObjectiveEvents.lua" />
 </Ui>
\ No newline at end of file