diff ObjectiveTracker/ObjectiveTracker.xml @ 37:e84d645c8ab8

- revised the tracker update function to build its complete data list up front and use the values as points of comparison for determining possible out of place blocks, which will be iterated over afterward to remove what wasn't re-used - also entailed revising the exact role of global event handlers and function hooks, limiting their directions of communication so one doesn't end up calling the other multiple or inifinity times - schema handling polish
author Nenue
date Mon, 18 Apr 2016 07:56:23 -0400
parents a487841050be
children 1f8f9cc3d956
line wrap: on
line diff
--- a/ObjectiveTracker/ObjectiveTracker.xml	Sun Apr 17 13:00:31 2016 -0400
+++ b/ObjectiveTracker/ObjectiveTracker.xml	Mon Apr 18 07:56:23 2016 -0400
@@ -103,6 +103,30 @@
         </Layers>
       </Frame>
 
+
+
+      <Frame name="$parentClock" parentKey="Clock" hidden="false">
+        <Anchors>
+          <Anchor point="TOPRIGHT" x="-75" y="0" />
+        </Anchors>
+        <Layers>
+          <Layer level="OVERLAY">
+            <FontString inherits="VeneerNumberFont" parentKey="time" text="GAME_TIME">
+              <Anchors>
+                <Anchor point="TOPRIGHT" />
+              </Anchors>
+              <Color r="1" g="1" b="1" a="1" />
+            </FontString>
+          </Layer>
+        </Layers>
+        <Scripts>
+          <OnUpdate>
+            local hour, min = GetGameTime()
+            self.time:SetFormattedText("%d:%d", hour, min)
+          </OnUpdate>
+        </Scripts>
+      </Frame>
+
       <Button name="$parentCloseButton" parentKey="CloseButton" enableMouse="true" frameStrata="MEDIUM">
         <Size x="16" y="16" />
         <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
@@ -123,7 +147,6 @@
 
 
 
-
   <Frame name="$parentXP" parent="VeneerObjectiveWrapper" parentKey="XPBar" hidden="true">
     <Size x="250" y="24" />
     <Anchors>