annotate ObjectiveTracker.xml @ 9:2698173edd40

ObjectiveUI & ObjectiveEvents - securehook to API calls for compatibility with addons that work with the objective tracking interface - let the API hooks invoke ObjectiveUI functions when possible - ObjectiveUI framescript handlers should use the corresponding API call if possible, so that addon space can be fully aware of our actions - Sanity check cached data when possible during 'Remove' hooks ObjectiveInfo - Add cheevID to criteria info ObjectiveCore - Index quest tracker blocks by their watch offset, and use that to verify whether the given block frame should be released into pool ObjectiveFrame - Differentiate between visible and non-visible unused buttons, and only release when their quest has been dropped - Reset 'actualBlocks' count during full updates - Reset scroll Position when the wrapper size shrinks
author Nenue
date Fri, 01 Apr 2016 14:54:01 -0400
parents 589de8ea05b9
children f03c75f63566
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@3 8 <Font name="VeneerCriteriaFontNormal" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 9 <Color r="1" g="1" b="1" a="1" />
Nenue@3 10 </Font>
Nenue@3 11 <Font name="VeneerCriteriaFontComplete" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 12 <Color r="0" g="1" b="0" a=".75" />
Nenue@3 13 </Font>
Nenue@3 14 <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 15 <Color r="1" g="1" b="0" a="1" />
Nenue@3 16 </Font>
Nenue@3 17
Nenue@3 18 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16">
Nenue@3 19 <Color r="1" g=".4" b="0" a=".75" />
Nenue@3 20 </Font>
Nenue@3 21
Nenue@0 22 <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true">
Nenue@0 23 <Scripts>
Nenue@0 24 <OnLoad>
Nenue@0 25 self.toggle = true
Nenue@3 26 self.drag = true
Nenue@3 27 Veneer.OnLoad(self)
Nenue@0 28 </OnLoad>
Nenue@0 29 <OnShow>
Nenue@0 30 </OnShow>
Nenue@0 31 <OnDragStart>
Nenue@3 32 Veneer.OnDragStart(self)
Nenue@0 33 </OnDragStart>
Nenue@0 34 <OnDragStop>
Nenue@3 35 Veneer.OnDragStop(self)
Nenue@3 36 Veneer.ObjectiveTracker.UpdateActionButtons()
Nenue@0 37 </OnDragStop>
Nenue@0 38 <!--@debug@-->
Nenue@0 39 <!--@end-debug@-->
Nenue@0 40 </Scripts>
Nenue@0 41 <Anchors>
Nenue@0 42 <Anchor point="TOPRIGHT" x="-60" y="-240" />
Nenue@0 43 </Anchors>
Nenue@0 44 <Layers>
Nenue@0 45
Nenue@0 46 <Layer level="ARTWORK">
Nenue@6 47 <Texture parentKey="BackgroundLeft" parentArray="header" />
Nenue@6 48 <Texture parentKey="BackgroundRight" parentArray="header" />
Nenue@6 49 <Texture parentKey="BackgroundTile" parentArray="header" />
Nenue@3 50 <Texture parentKey="HeaderBounds" parentArray="config" alphaMode="ADD" hidden="true">
Nenue@3 51 <Color r="0" g="0" b="1" a="0.5" />
Nenue@3 52 <Anchors>
Nenue@3 53 <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" />
Nenue@3 54 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" />
Nenue@3 55 </Anchors>
Nenue@3 56 </Texture>
Nenue@3 57 <Texture parentKey="FrameBounds" parentArray="config" alphaMode="ADD" hidden="true">
Nenue@3 58 <Color r="1" g="0" b="1" a="0.25" />
Nenue@3 59 <Anchors>
Nenue@3 60 <Anchor point="TOPLEFT" />
Nenue@3 61 <Anchor point="BOTTOMRIGHT" />
Nenue@3 62 </Anchors>
Nenue@3 63 </Texture>
Nenue@0 64 <!--<Texture desatuated="true" parentKey="LineGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineGlow" useAtlasSize="true">
Nenue@0 65 <Anchors>
Nenue@0 66 <Anchor point="LEFT" relativeKey="$parent.Background" x="-21" y="18"/>
Nenue@0 67 </Anchors>
Nenue@0 68 </Texture>
Nenue@0 69 <Texture parentKey="SoftGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_Glow" useAtlasSize="true">
Nenue@0 70 <Anchors>
Nenue@0 71 <Anchor point="CENTER" relativeKey="$parent.Background" relativePoint="LEFT" x="49" y="20"/>
Nenue@0 72 </Anchors>
Nenue@0 73 </Texture>
Nenue@0 74 <Texture parentKey="StarBurst" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_StarBurst" useAtlasSize="true">
Nenue@0 75 <Anchors>
Nenue@0 76 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29"/>
Nenue@0 77 </Anchors>
Nenue@0 78 </Texture>
Nenue@0 79 <Texture parentKey="LineSheen" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst">
Nenue@0 80 <Size x="60" y="15"/>
Nenue@0 81 <Anchors>
Nenue@0 82 <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/>
Nenue@0 83 </Anchors>
Nenue@0 84 </Texture>-->
Nenue@0 85 </Layer>
Nenue@0 86 <Layer level="OVERLAY">
Nenue@0 87
Nenue@0 88 </Layer>
Nenue@0 89 </Layers>
Nenue@0 90 <Frames>
Nenue@0 91
Nenue@3 92 <Frame name="$parentXP" parentKey="XPBar" hidden="true">
Nenue@2 93 <Size x="250" y="24" />
Nenue@2 94 <Anchors>
Nenue@2 95 <Anchor point="TOPLEFT" />
Nenue@2 96 </Anchors>
Nenue@2 97 <Layers>
Nenue@2 98 <Layer level="BACKGROUND">
Nenue@2 99 <Texture name="$parentBackground" parentKey="bg" setAllPoints="true"/>
Nenue@2 100 </Layer>
Nenue@2 101 <Layer level="ARTWORK">
Nenue@2 102
Nenue@2 103 <Texture name="$parentForeground" parentKey="fg">
Nenue@2 104 <Anchors>
Nenue@2 105 <Anchor point="TOPLEFT" />
Nenue@2 106 <Anchor point="BOTTOMLEFT" />
Nenue@2 107 </Anchors>
Nenue@2 108 </Texture>
Nenue@2 109 <Texture name="$parentRested" parentKey="rested" >
Nenue@2 110 <Anchors>
Nenue@2 111 <Anchor point="TOPLEFT" />
Nenue@2 112 <Anchor point="BOTTOMLEFT" />
Nenue@2 113 </Anchors>
Nenue@2 114 </Texture>
Nenue@2 115 </Layer>
Nenue@2 116 <Layer level="OVERLAY">
Nenue@2 117 <FontString inherits="VeneerFontNormal" parentKey="xpText">
Nenue@2 118 <Anchors>
Nenue@2 119 <Anchor point="CENTER" />
Nenue@2 120 </Anchors>
Nenue@2 121 </FontString>
Nenue@2 122 </Layer>
Nenue@2 123 </Layers>
Nenue@2 124 </Frame>
Nenue@2 125
Nenue@0 126 <Button name="$parentClose" parentKey="close" inherits="UIPanelCloseButtonNoScripts">
Nenue@0 127 <Size x="25" y="20" />
Nenue@0 128 <Anchors>
Nenue@0 129 <Anchor point="TOPRIGHT" x="-4" y="-2" />
Nenue@0 130 </Anchors>
Nenue@0 131 </Button>
Nenue@0 132
Nenue@0 133 <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea">
Nenue@0 134 <Layers>
Nenue@0 135 <Layer level="BACKGROUND">
Nenue@0 136 <Texture setAllPoints="true">
Nenue@0 137 <Color r="0.15" g=".3" b=".3" a="0" />
Nenue@0 138 </Texture>
Nenue@0 139 </Layer>
Nenue@0 140 </Layers>
Nenue@0 141 <Frames>
Nenue@0 142
Nenue@0 143
Nenue@0 144 <!-- Can't get it to work as 'Slider'; implement as click frame
Nenue@0 145 <Slider name="$parentBar" parentKey="scrollBar" minValue="1" maxValue="100" valueStep="1" stepsPerPage="1" defaultValue="1" orientation="VERTICAL">
Nenue@0 146 <HitRectInsets top="-1" bottom="1" right="1" left="0" />
Nenue@0 147 <ThumbTexture name="$parentThumb">
Nenue@0 148 <Color r="1" g="1" b="1" a="0.85" />
Nenue@0 149 </ThumbTexture>
Nenue@0 150 <Layers>
Nenue@0 151 <Layer level="BACKGROUND">
Nenue@0 152 <Texture setAllPoints="true">
Nenue@0 153 <Color r="1" g="0" b="0" a=".5" />
Nenue@0 154 </Texture>
Nenue@0 155 </Layer>
Nenue@0 156 </Layers>
Nenue@0 157 </Slider>
Nenue@0 158 -->
Nenue@0 159 </Frames>
Nenue@0 160 </ScrollFrame>
Nenue@0 161 </Frames>
Nenue@0 162 </Frame>
Nenue@0 163
Nenue@0 164 <Frame name="VeneerObjectiveScroll" parent="VeneerObjectiveWrapperScrollFrame">
Nenue@0 165 <Anchors>
Nenue@0 166 <Anchor point="TOPLEFT" />
Nenue@0 167 </Anchors>
Nenue@0 168 <Layers>
Nenue@0 169 <Layer level="BACKGROUND">
Nenue@0 170 <Texture setAllPoints="true">
Nenue@0 171 <Color r="1" g="1" b="1" a="1" />
Nenue@0 172 <Gradient orientation="HORIZONTAL">
Nenue@0 173 <MinColor r="0" g="0.5" b="0.5" a="0" />
Nenue@0 174 <MaxColor r="0" g="0.5" b="0.5" a="0" />
Nenue@0 175 </Gradient>
Nenue@0 176 </Texture>
Nenue@0 177 </Layer>
Nenue@0 178 </Layers>
Nenue@0 179 </Frame>
Nenue@0 180
Nenue@0 181 <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true">
Nenue@0 182 <Layers>
Nenue@0 183 <Layer level="BACKGROUND">
Nenue@0 184 <Texture name="$parentHeaderBG" parentKey="headerbg">
Nenue@0 185 <Anchors>
Nenue@0 186 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
Nenue@2 187 <Anchor point="RIGHT" relativePoint="RIGHT" />
Nenue@0 188 </Anchors>
Nenue@0 189 <Color r="1" g="1" b="1" a="1" />
Nenue@0 190 <Gradient orientation="HORIZONTAL">
Nenue@0 191 <MinColor r="0" g="0" b="0" a="0.1" />
Nenue@0 192 <MaxColor r="0" g="0" b="0" a="0" />
Nenue@0 193 </Gradient>
Nenue@0 194 </Texture>
Nenue@0 195 </Layer>
Nenue@0 196 <Layer level="OVERLAY">
Nenue@0 197 <FontString name="$parentHeader" inherits="VeneerFontHighlight" text="OBJ" parentKey="header">
Nenue@0 198 <Anchors>
Nenue@0 199 <Anchor point="TOPLEFT" />
Nenue@0 200 </Anchors>
Nenue@0 201 </FontString>
Nenue@0 202
Nenue@0 203
Nenue@0 204 </Layer>
Nenue@0 205 </Layers>
Nenue@0 206 </Frame>
Nenue@0 207
Nenue@0 208
Nenue@0 209 <Frame name="VeneerTrackerBlock" parent="VeneerObjectiveScroll" virtual="true" enableMouse="true">
Nenue@0 210 <Layers>
Nenue@0 211 <Layer level="BACKGROUND">
Nenue@0 212 </Layer>
Nenue@0 213 <Layer level="ARTWORK">
Nenue@0 214 <Texture name="$parentTitleBackground" parentKey="titlebg">
Nenue@0 215 <Color r="1" g="1" b="1" a="1" />
Nenue@0 216 <Anchors>
Nenue@0 217 <Anchor point="TOPLEFT" />
Nenue@0 218 </Anchors>
Nenue@0 219 </Texture>
Nenue@0 220 <Texture name="$parentBackground" parentKey="bg">
Nenue@0 221 <Anchors>
Nenue@0 222 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" />
Nenue@0 223 </Anchors>
Nenue@0 224 <Color r="1" g="1" b="1" a="1" />
Nenue@0 225 <Gradient orientation="HORIZONTAL">
Nenue@0 226 <MinColor r="0" g="0" b="0" a=".15" />
Nenue@0 227 <MaxColor r="0" g="0" b="0" a=".35" />
Nenue@0 228 </Gradient>
Nenue@0 229 </Texture>
Nenue@0 230 <Texture name="$parentItemTile" parentKey="icon" hidden="true">
Nenue@0 231 <Size x="24" y="24" />
Nenue@0 232 <Anchors>
Nenue@0 233 <Anchor point="TOPRIGHT" x="-1" y="-1" />
Nenue@0 234 </Anchors>
Nenue@0 235 </Texture>
Nenue@0 236 <Texture name="$parentMoneyTile" parentKey="money" hidden="true" />
Nenue@0 237 </Layer>
Nenue@0 238 <Layer level="HIGHLIGHT">
Nenue@0 239 <Texture name="$parentHighLight" parentKey="highlight">
Nenue@0 240 <Anchors>
Nenue@0 241 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
Nenue@0 242 <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.titlebg" x="0" y="-4"/>
Nenue@0 243 <Anchor point="RIGHT" relativePoint="RIGHT" />
Nenue@0 244 </Anchors>
Nenue@0 245 <Color r="1" g="1" b="1" a="1" />
Nenue@0 246 <Gradient orientation="VERTICAL">
Nenue@0 247 <MaxColor r="1" g="1" b="1" a=".15" />
Nenue@0 248 <MinColor r="1" g="1" b="1" a="0" />
Nenue@0 249 </Gradient>
Nenue@0 250 </Texture>
Nenue@0 251 <Texture name="$parentLowLight" parentKey="highlight2">
Nenue@0 252 <Anchors>
Nenue@0 253 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="14" />
Nenue@0 254 <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.bg" x="0" y="0"/>
Nenue@0 255 <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" />
Nenue@0 256 </Anchors>
Nenue@0 257 <Color r="1" g="1" b="1" a="1" />
Nenue@0 258 <Gradient orientation="VERTICAL">
Nenue@0 259 <MaxColor r="1" g="1" b="1" a="0" />
Nenue@0 260 <MinColor r="1" g="1" b="1" a="0.15" />
Nenue@0 261 </Gradient>
Nenue@0 262 </Texture>
Nenue@0 263 </Layer>
Nenue@0 264 <Layer level="OVERLAY">
Nenue@0 265 <FontString name="$parentTitle" parentKey="title" inherits="VeneerFontHighlight" justifyH="LEFT" justifyV="MIDDLE">
Nenue@0 266 <Anchors>
Nenue@0 267 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" />
Nenue@0 268 </Anchors>
Nenue@0 269 </FontString>
Nenue@0 270 <FontString name="$parentLeaderBoard" parentKey="objectives" inherits="VeneerFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true">
Nenue@0 271 <Anchors>
Nenue@0 272 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="5" y="0" />
Nenue@0 273 <Anchor point="RIGHT" relativeKey="$parent" />
Nenue@0 274 </Anchors>
Nenue@0 275 </FontString>
Nenue@6 276 <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal">
Nenue@6 277 <Anchors>
Nenue@6 278 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" />
Nenue@6 279 </Anchors>
Nenue@6 280 </FontString>
Nenue@0 281 </Layer>
Nenue@0 282 </Layers>
Nenue@0 283 </Frame>
Nenue@0 284
Nenue@1 285 <Include file="ObjectiveSecure.xml" />
Nenue@3 286 <Include file="ObjectiveWidgets.xml" />
Nenue@3 287
Nenue@6 288 <Script file="ObjectiveCore.lua" />
Nenue@0 289 <Script file="ObjectiveInfo.lua" />
Nenue@0 290 <Script file="ObjectiveUI.lua" />
Nenue@0 291 <Script file="ObjectiveFrame.lua" />
Nenue@0 292 <Script file="ObjectiveEvents.lua" />
Nenue@0 293 </Ui>