annotate ObjectiveTracker.xml @ 13:9455693fc290

Init - recall XML display state on reload ObjectiveFrame - quest coloring by relative level - quest coloring by daily/weekly/complete status - remember starting scroll value between reload - limit anchor points to edges for regions affected by style attributes ObjectiveInfo - AutoQuest outline definitions - Pull Quest title and tag data in addition to WatchInfo ObjectiveStyle - ensure consistent style table - hardcode certain attributes for sanity XML - ensure consistent naming conventions for heading and content elements - ensure hardcore anchors are based on edges - expansion of file structure to deal with complexities of dynamic widgets and style caching ObjectiveUI - determine primary style by block handler when restoring original style - moved framescript to 'ObjectiveWidgets' lua
author Nenue
date Sat, 02 Apr 2016 17:46:52 -0400
parents 8238cddaddb1
children ed642234f017
rev   line source
Nenue@0 1 <Ui>
Nenue@0 2
Nenue@0 3
Nenue@0 4 <Texture name="VnTestLine" virtual="true">
Nenue@0 5 <Color r="1" g="1" b="0" a="1" />
Nenue@0 6 </Texture>
Nenue@0 7
Nenue@13 8 <Font name="VeneerTitleFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" >
Nenue@13 9 <Color r="1" g=".80" b=".25" a="1" />
Nenue@13 10 </Font>
Nenue@13 11
Nenue@3 12 <Font name="VeneerCriteriaFontNormal" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 13 <Color r="1" g="1" b="1" a="1" />
Nenue@3 14 </Font>
Nenue@3 15 <Font name="VeneerCriteriaFontComplete" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 16 <Color r="0" g="1" b="0" a=".75" />
Nenue@3 17 </Font>
Nenue@3 18 <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 19 <Color r="1" g="1" b="0" a="1" />
Nenue@3 20 </Font>
Nenue@3 21
Nenue@3 22 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 23 <Color r="1" g=".4" b="0" a=".75" />
Nenue@3 24 </Font>
Nenue@3 25
Nenue@10 26 <Font name="VeneerStatusFont" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="14">
Nenue@10 27 <Color r="1" g="1" b="0" a="1" />
Nenue@10 28 </Font>
Nenue@10 29
Nenue@0 30 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true">
Nenue@0 31 <Scripts>
Nenue@0 32 <OnLoad>
Nenue@0 33 self.toggle = true
Nenue@3 34 self.drag = true
Nenue@3 35 Veneer.OnLoad(self)
Nenue@0 36 </OnLoad>
Nenue@0 37 <OnShow>
Nenue@0 38 </OnShow>
Nenue@0 39 <OnDragStart>
Nenue@3 40 Veneer.OnDragStart(self)
Nenue@0 41 </OnDragStart>
Nenue@0 42 <OnDragStop>
Nenue@3 43 Veneer.OnDragStop(self)
Nenue@3 44 Veneer.ObjectiveTracker.UpdateActionButtons()
Nenue@0 45 </OnDragStop>
Nenue@0 46 <!--@debug@-->
Nenue@0 47 <!--@end-debug@-->
Nenue@0 48 </Scripts>
Nenue@0 49 <Anchors>
Nenue@0 50 <Anchor point="TOPRIGHT" x="-60" y="-240" />
Nenue@0 51 </Anchors>
Nenue@0 52 <Layers>
Nenue@0 53
Nenue@0 54 <Layer level="ARTWORK">
Nenue@10 55 <Texture parentKey="BackgroundLeft" parentArray="headerComplex" />
Nenue@10 56 <Texture parentKey="BackgroundRight" parentArray="headerComplex" />
Nenue@10 57 <Texture parentKey="BackgroundTile" parentArray="headerComplex" />
Nenue@10 58 <Texture parentKey="headerComplexBounds" parentArray="config" alphaMode="ADD" hidden="true">
Nenue@3 59 <Color r="0" g="0" b="1" a="0.5" />
Nenue@3 60 <Anchors>
Nenue@3 61 <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" />
Nenue@3 62 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" />
Nenue@3 63 </Anchors>
Nenue@3 64 </Texture>
Nenue@3 65 <Texture parentKey="FrameBounds" parentArray="config" alphaMode="ADD" hidden="true">
Nenue@3 66 <Color r="1" g="0" b="1" a="0.25" />
Nenue@3 67 <Anchors>
Nenue@3 68 <Anchor point="TOPLEFT" />
Nenue@3 69 <Anchor point="BOTTOMRIGHT" />
Nenue@3 70 </Anchors>
Nenue@3 71 </Texture>
Nenue@0 72 <!--<Texture desatuated="true" parentKey="LineGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineGlow" useAtlasSize="true">
Nenue@0 73 <Anchors>
Nenue@0 74 <Anchor point="LEFT" relativeKey="$parent.Background" x="-21" y="18"/>
Nenue@0 75 </Anchors>
Nenue@0 76 </Texture>
Nenue@0 77 <Texture parentKey="SoftGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_Glow" useAtlasSize="true">
Nenue@0 78 <Anchors>
Nenue@0 79 <Anchor point="CENTER" relativeKey="$parent.Background" relativePoint="LEFT" x="49" y="20"/>
Nenue@0 80 </Anchors>
Nenue@0 81 </Texture>
Nenue@0 82 <Texture parentKey="StarBurst" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_StarBurst" useAtlasSize="true">
Nenue@0 83 <Anchors>
Nenue@0 84 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29"/>
Nenue@0 85 </Anchors>
Nenue@0 86 </Texture>
Nenue@0 87 <Texture parentKey="LineSheen" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst">
Nenue@0 88 <Size x="60" y="15"/>
Nenue@0 89 <Anchors>
Nenue@0 90 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/>
Nenue@0 91 </Anchors>
Nenue@0 92 </Texture>-->
Nenue@0 93 </Layer>
Nenue@0 94 <Layer level="OVERLAY">
Nenue@10 95 <FontString name="$parentTitle" parentKey="title" inherits="VeneerStatusFont">
Nenue@10 96 <Anchors>
Nenue@10 97 <Anchor point="LEFT" />
Nenue@10 98 </Anchors>
Nenue@10 99 </FontString>
Nenue@13 100
Nenue@13 101 <!--<Texture name="$parentTCR" parentKey="outlineClosed" file="Interface\FrameGeneral\UI-Frame">
Nenue@13 102 <Size x="40" y="30" />
Nenue@13 103 <Color r="1" g="1" b="1" a="1" />
Nenue@13 104 <TexCoords top=".0156" bottom=".0265" left=".625" right=".875" />
Nenue@13 105 <Anchors>
Nenue@13 106 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="2" y="2" />
Nenue@13 107 </Anchors>
Nenue@13 108 </Texture>-->
Nenue@13 109
Nenue@0 110 </Layer>
Nenue@0 111 </Layers>
Nenue@0 112 <Frames>
Nenue@0 113
Nenue@3 114 <Frame name="$parentXP" parentKey="XPBar" hidden="true">
Nenue@2 115 <Size x="250" y="24" />
Nenue@2 116 <Anchors>
Nenue@2 117 <Anchor point="TOPLEFT" />
Nenue@2 118 </Anchors>
Nenue@2 119 <Layers>
Nenue@2 120 <Layer level="BACKGROUND">
Nenue@12 121 <Texture name="$parentBackground" parentKey="statusbg" setAllPoints="true"/>
Nenue@2 122 </Layer>
Nenue@2 123 <Layer level="ARTWORK">
Nenue@2 124
Nenue@10 125 <Texture name="$parentForeground" parentKey="foreground">
Nenue@2 126 <Anchors>
Nenue@2 127 <Anchor point="TOPLEFT" />
Nenue@2 128 <Anchor point="BOTTOMLEFT" />
Nenue@2 129 </Anchors>
Nenue@2 130 </Texture>
Nenue@2 131 <Texture name="$parentRested" parentKey="rested" >
Nenue@2 132 <Anchors>
Nenue@2 133 <Anchor point="TOPLEFT" />
Nenue@2 134 <Anchor point="BOTTOMLEFT" />
Nenue@2 135 </Anchors>
Nenue@2 136 </Texture>
Nenue@2 137 </Layer>
Nenue@2 138 <Layer level="OVERLAY">
Nenue@10 139 <FontString inherits="VeneerFontNormal" parentKey="title">
Nenue@2 140 <Anchors>
Nenue@2 141 <Anchor point="CENTER" />
Nenue@2 142 </Anchors>
Nenue@2 143 </FontString>
Nenue@2 144 </Layer>
Nenue@2 145 </Layers>
Nenue@2 146 </Frame>
Nenue@2 147
Nenue@13 148 <Button name="$parentClose" parentKey="close" inherits="UIPanelCloseButtonNoScripts" enableMouseWheel="true" enableMouse="true">
Nenue@13 149
Nenue@13 150 <NormalTexture file="Interface\PaperDollInfoFrame\UI-Character-SkillsPageDown-Up" />
Nenue@13 151 <PushedTexture file="Interface\PaperDollInfoFrame\UI-Character-SkillsPageDown-Down" />
Nenue@0 152 <Anchors>
Nenue@13 153 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-2" y="2" />
Nenue@0 154 </Anchors>
Nenue@13 155 <Layers>
Nenue@13 156 </Layers>
Nenue@0 157 </Button>
Nenue@0 158
Nenue@13 159 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea" parentArray="minimizeFrames">
Nenue@0 160 <Layers>
Nenue@0 161 <Layer level="BACKGROUND">
Nenue@10 162 <Texture setAllPoints="true" parentKey="bg">
Nenue@0 163 <Color r="0.15" g=".3" b=".3" a="0" />
Nenue@0 164 </Texture>
Nenue@0 165 </Layer>
Nenue@0 166 </Layers>
Nenue@0 167 <Frames>
Nenue@0 168
Nenue@0 169
Nenue@0 170 <!-- Can't get it to work as 'Slider'; implement as click frame
Nenue@0 171 <Slider name="$parentBar" parentKey="scrollBar" minValue="1" maxValue="100" valueStep="1" stepsPerPage="1" defaultValue="1" orientation="VERTICAL">
Nenue@0 172 <HitRectInsets top="-1" bottom="1" right="1" left="0" />
Nenue@0 173 <ThumbTexture name="$parentThumb">
Nenue@0 174 <Color r="1" g="1" b="1" a="0.85" />
Nenue@0 175 </ThumbTexture>
Nenue@0 176 <Layers>
Nenue@0 177 <Layer level="BACKGROUND">
Nenue@0 178 <Texture setAllPoints="true">
Nenue@0 179 <Color r="1" g="0" b="0" a=".5" />
Nenue@0 180 </Texture>
Nenue@0 181 </Layer>
Nenue@0 182 </Layers>
Nenue@0 183 </Slider>
Nenue@0 184 -->
Nenue@0 185 </Frames>
Nenue@0 186 </ScrollFrame>
Nenue@0 187 </Frames>
Nenue@0 188 </Frame>
Nenue@0 189
Nenue@0 190 <Frame name="VeneerObjectiveScroll" parent="VeneerObjectiveWrapperScrollFrame">
Nenue@0 191 <Anchors>
Nenue@0 192 <Anchor point="TOPLEFT" />
Nenue@0 193 </Anchors>
Nenue@0 194 <Layers>
Nenue@0 195 <Layer level="BACKGROUND">
Nenue@10 196 <Texture setAllPoints="true" parentKey="bg">
Nenue@0 197 <Color r="1" g="1" b="1" a="1" />
Nenue@0 198 <Gradient orientation="HORIZONTAL">
Nenue@0 199 <MinColor r="0" g="0.5" b="0.5" a="0" />
Nenue@0 200 <MaxColor r="0" g="0.5" b="0.5" a="0" />
Nenue@0 201 </Gradient>
Nenue@0 202 </Texture>
Nenue@0 203 </Layer>
Nenue@0 204 </Layers>
Nenue@0 205 </Frame>
Nenue@0 206
Nenue@0 207 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true">
Nenue@0 208 <Layers>
Nenue@0 209 <Layer level="BACKGROUND">
Nenue@10 210 <Texture name="$parentTitleBackground" parentKey="titlebg">
Nenue@0 211 <Anchors>
Nenue@0 212 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
Nenue@2 213 <Anchor point="RIGHT" relativePoint="RIGHT" />
Nenue@0 214 </Anchors>
Nenue@0 215 <Color r="1" g="1" b="1" a="1" />
Nenue@0 216 <Gradient orientation="HORIZONTAL">
Nenue@0 217 <MinColor r="0" g="0" b="0" a="0.1" />
Nenue@0 218 <MaxColor r="0" g="0" b="0" a="0" />
Nenue@0 219 </Gradient>
Nenue@0 220 </Texture>
Nenue@0 221 </Layer>
Nenue@0 222 <Layer level="OVERLAY">
Nenue@10 223 <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title">
Nenue@0 224 <Anchors>
Nenue@0 225 <Anchor point="TOPLEFT" />
Nenue@0 226 </Anchors>
Nenue@0 227 </FontString>
Nenue@0 228 </Layer>
Nenue@0 229 </Layers>
Nenue@0 230 </Frame>
Nenue@0 231
Nenue@0 232
Nenue@0 233 <Frame name="VeneerTrackerBlock" parent="VeneerObjectiveScroll" virtual="true" enableMouse="true">
Nenue@0 234 <Layers>
Nenue@0 235 <Layer level="BACKGROUND">
Nenue@0 236 </Layer>
Nenue@0 237 <Layer level="ARTWORK">
Nenue@0 238 <Texture name="$parentTitleBackground" parentKey="titlebg">
Nenue@0 239 <Color r="1" g="1" b="1" a="1" />
Nenue@0 240 <Anchors>
Nenue@0 241 <Anchor point="TOPLEFT" />
Nenue@0 242 </Anchors>
Nenue@0 243 </Texture>
Nenue@10 244 <Texture name="$parentStatusBackground" parentKey="statusbg">
Nenue@0 245 <Anchors>
Nenue@0 246 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" />
Nenue@0 247 </Anchors>
Nenue@0 248 <Color r="1" g="1" b="1" a="1" />
Nenue@0 249 <Gradient orientation="HORIZONTAL">
Nenue@0 250 <MinColor r="0" g="0" b="0" a=".15" />
Nenue@0 251 <MaxColor r="0" g="0" b="0" a=".35" />
Nenue@0 252 </Gradient>
Nenue@0 253 </Texture>
Nenue@0 254 <Texture name="$parentItemTile" parentKey="icon" hidden="true">
Nenue@0 255 <Size x="24" y="24" />
Nenue@0 256 <Anchors>
Nenue@0 257 <Anchor point="TOPRIGHT" x="-1" y="-1" />
Nenue@0 258 </Anchors>
Nenue@0 259 </Texture>
Nenue@0 260 <Texture name="$parentMoneyTile" parentKey="money" hidden="true" />
Nenue@0 261 </Layer>
Nenue@0 262 <Layer level="HIGHLIGHT">
Nenue@0 263 <Texture name="$parentHighLight" parentKey="highlight">
Nenue@0 264 <Anchors>
Nenue@0 265 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
Nenue@0 266 <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.titlebg" x="0" y="-4"/>
Nenue@0 267 <Anchor point="RIGHT" relativePoint="RIGHT" />
Nenue@0 268 </Anchors>
Nenue@0 269 <Color r="1" g="1" b="1" a="1" />
Nenue@0 270 <Gradient orientation="VERTICAL">
Nenue@0 271 <MaxColor r="1" g="1" b="1" a=".15" />
Nenue@0 272 <MinColor r="1" g="1" b="1" a="0" />
Nenue@0 273 </Gradient>
Nenue@0 274 </Texture>
Nenue@0 275 <Texture name="$parentLowLight" parentKey="highlight2">
Nenue@0 276 <Anchors>
Nenue@10 277 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" />
Nenue@10 278 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/>
Nenue@0 279 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" />
Nenue@0 280 </Anchors>
Nenue@0 281 <Color r="1" g="1" b="1" a="1" />
Nenue@0 282 <Gradient orientation="VERTICAL">
Nenue@0 283 <MaxColor r="1" g="1" b="1" a="0" />
Nenue@0 284 <MinColor r="1" g="1" b="1" a="0.15" />
Nenue@0 285 </Gradient>
Nenue@0 286 </Texture>
Nenue@0 287 </Layer>
Nenue@0 288 <Layer level="OVERLAY">
Nenue@13 289 <FontString name="$parentTitle" parentKey="title" inherits="VeneerTitleFont" justifyH="LEFT" justifyV="MIDDLE">
Nenue@0 290 <Anchors>
Nenue@13 291 <Anchor point="TOP" relativeKey="$parent.titlebg" />
Nenue@13 292 <Anchor point="BOTTOM" relativeKey="$parent.titlebg" />
Nenue@13 293 <Anchor point="LEFT" relativeKey="$parent.titlebg" />
Nenue@0 294 <Anchor point="RIGHT" relativeKey="$parent" />
Nenue@0 295 </Anchors>
Nenue@0 296 </FontString>
Nenue@13 297 <FontString name="$parentStatus" parentKey="status" inherits="VeneerCriteriaFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true">
Nenue@13 298 <Anchors>
Nenue@13 299 <Anchor point="TOP" relativeKey="$parent.statusbg" />
Nenue@13 300 <Anchor point="BOTTOM" relativeKey="$parent.statusbg" />
Nenue@13 301 <Anchor point="LEFT" relativeKey="$parent.statusbg" />
Nenue@13 302 <Anchor point="RIGHT" relativeKey="$parent.statusbg" />
Nenue@13 303 </Anchors>
Nenue@13 304 </FontString>
Nenue@13 305 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal" justifyH="RIGHT">
Nenue@6 306 <Anchors>
Nenue@6 307 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" />
Nenue@6 308 </Anchors>
Nenue@6 309 </FontString>
Nenue@0 310 </Layer>
Nenue@0 311 </Layers>
Nenue@0 312 </Frame>
Nenue@0 313
Nenue@1 314 <Include file="ObjectiveSecure.xml" />
Nenue@3 315 <Include file="ObjectiveWidgets.xml" />
Nenue@3 316
Nenue@6 317 <Script file="ObjectiveCore.lua" />
Nenue@0 318 <Script file="ObjectiveInfo.lua" />
Nenue@0 319 <Script file="ObjectiveUI.lua" />
Nenue@10 320 <Script file="ObjectiveStyle.lua" />
Nenue@0 321 <Script file="ObjectiveFrame.lua" />
Nenue@0 322 <Script file="ObjectiveEvents.lua" />
Nenue@13 323 <Script file="ObjectiveWidgets.lua" />
Nenue@0 324 </Ui>