annotate BuffFrame.xml @ 16:880828018bf4

ObjectiveEvents - trim down the number of events that fire full updates - begin the general outline for determining which trackers need to refresh - handlers for accepting and completing auto-popup quests ObjectiveFrame - correct variables for money reward calculation - make sure everythign is scaling to the font strings and that the font strings aren't being pinned by SetSize ObjectiveInfo - implementation of autoquest popups - discern between internal and client bonus objective indexes - acquire the correct data set from bonus objective query ObjectiveStyle - look for a style table under the previously interpreted set before deferring standard options - horizontal/vertical options in gradient - remove height-fixing for font strings
author Nenue
date Tue, 05 Apr 2016 00:39:12 -0400
parents ed642234f017
children
rev   line source
Nenue@0 1 <Ui>
Nenue@0 2 <!--
Nenue@0 3 Veneer
Nenue@0 4 BuffFrame module
Nenue@0 5 -->
Nenue@14 6
Nenue@14 7
Nenue@14 8 <!-- Buff-button underlay -->
Nenue@14 9 <Frame name="VeneerDecorTemplate" virtual="true" enableMouse="true" movable="true" frameStrata="BACKGROUND" hidden="true">
Nenue@14 10 <Size x="30" y="30" />
Nenue@14 11 <Layers>
Nenue@14 12 <Layer level="BACKGROUND">
Nenue@14 13 <Texture name="$parentButtonArea" setAllPoints="true" parentKey="background" alphaMode="BLEND">
Nenue@14 14 <Color r="1" g="1" b="1" a="1" />
Nenue@14 15 </Texture>
Nenue@14 16 <Texture name="$parentButtonBackdrop" parentKey="backgroundFill" alphaMode="BLEND">
Nenue@14 17 <Anchors>
Nenue@14 18 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="1" y="1" relativeKey="$parent.background" />
Nenue@14 19 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-1" y="-1" relativeKey="$parent.background" />
Nenue@14 20 </Anchors>
Nenue@14 21 <Color r="0" g="0" b="0" a="1" />
Nenue@14 22 </Texture>
Nenue@14 23 </Layer>
Nenue@14 24 </Layers>
Nenue@14 25 </Frame>
Nenue@14 26
Nenue@14 27 <!-- Buff button overlay, and positioning anchor -->
Nenue@14 28 <Frame name="VeneerGuideTemplate" virtual="true" movable="true" frameStrata="LOW">
Nenue@14 29 <Scripts>
Nenue@14 30 <OnShow>
Nenue@14 31 self.mouseover = self:IsMouseOver()
Nenue@14 32 </OnShow>
Nenue@14 33 <OnUpdate>
Nenue@14 34 if self:IsMouseOver() and not self.contains then
Nenue@14 35 self.caster:Show()
Nenue@14 36 else
Nenue@14 37 self.caster:Hide()
Nenue@14 38 end
Nenue@14 39 </OnUpdate>
Nenue@14 40 </Scripts>
Nenue@14 41 <Layers>
Nenue@14 42 <Layer level="ARTWORK">
Nenue@14 43 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true">
Nenue@14 44 <Color a="0.5" r="0" g="1" b="0" />
Nenue@14 45 </Texture>
Nenue@14 46 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true">
Nenue@14 47 <Color a="0.75" r="1" g=".5" b="0" />
Nenue@14 48 </Texture>
Nenue@14 49
Nenue@14 50
Nenue@14 51 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD">
Nenue@14 52 <Color r="0" g="0" b="0" a="0" />
Nenue@14 53 </Texture>
Nenue@14 54 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND">
Nenue@14 55 <Color a="0.25" r="1" g="1" b="1" />
Nenue@14 56 </Texture>
Nenue@14 57 </Layer>
Nenue@14 58 <Layer level="OVERLAY">
Nenue@14 59 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true" outline="NORMAL">
Nenue@14 60 <Anchors>
Nenue@14 61 <Anchor point="CENTER" />
Nenue@14 62 </Anchors>
Nenue@14 63 </FontString>
Nenue@14 64 <FontString inherits="VeneerFontNormal" parentKey="caster" outline="NORMAL">
Nenue@14 65 <Anchors>
Nenue@14 66 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.icon" />
Nenue@14 67 </Anchors>
Nenue@14 68 </FontString>
Nenue@14 69 </Layer>
Nenue@14 70 <Layer level="HIGHLIGHT">
Nenue@14 71
Nenue@14 72 </Layer>
Nenue@14 73 </Layers>
Nenue@14 74 </Frame>
Nenue@14 75
Nenue@14 76
Nenue@14 77 <!-- Anchor frame orientation-setting widget; click handler copies frame anchors over to buff buttons -->
Nenue@14 78 <Button name="VeneerAnchorButton" virtual="true" parentArray="anchorButton" hidden="true">
Nenue@14 79 <Scripts>
Nenue@14 80 <OnClick>
Nenue@14 81 self:GetParent():SetChildAnchors(self)
Nenue@14 82 </OnClick>
Nenue@14 83 </Scripts>
Nenue@14 84 <Size x="15" y="15" />
Nenue@14 85 <Layers>
Nenue@14 86 <Layer level="BACKGROUND">
Nenue@14 87 <Texture setAllPoints="true">
Nenue@14 88 <Color r="0" g="0" b="0" a="1" />
Nenue@14 89 </Texture>
Nenue@14 90 </Layer>
Nenue@14 91 <Layer level="OVERLAY">
Nenue@14 92 <Texture>
Nenue@14 93 <Color r="0" g="1" b="0.5" a="1" />
Nenue@14 94 <Anchors>
Nenue@14 95 <Anchor point="BOTTOMLEFT" x="1" y="1" />
Nenue@14 96 <Anchor point="TOPRIGHT" x="-1" y="-1" />
Nenue@14 97 </Anchors>
Nenue@14 98 </Texture>
Nenue@14 99 </Layer>
Nenue@14 100 </Layers>
Nenue@14 101 </Button>
Nenue@14 102
Nenue@14 103 <Frame name="VeneerAnchorTemplate" virtual="true" enableMouse="false" movable="true" sizable="true" clampedToScreen="true">
Nenue@14 104 <Layers>
Nenue@14 105 <Layer level="BACKGROUND">
Nenue@14 106 <Texture name="$parentBackground" setAllPoints="true" parentArray="config" hidden="true">
Nenue@14 107 <Color r="0" g="0.2" b="1" a="0.2" />
Nenue@14 108 </Texture>
Nenue@14 109 <FontString name="$parentHeading" inherits="VeneerFontHighlight" parentArray="config" parentKey="heading" hidden="true">
Nenue@14 110 <Anchors>
Nenue@14 111 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
Nenue@14 112 </Anchors>
Nenue@14 113 </FontString>
Nenue@14 114 <FontString name="$parentDebug" inherits="VeneerFontNormal" parentArray="debug" parentKey="debug">
Nenue@14 115 <Anchors>
Nenue@14 116 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
Nenue@14 117 </Anchors>
Nenue@14 118 </FontString>
Nenue@14 119 </Layer>
Nenue@14 120 <Layer level="OVERLAY">
Nenue@14 121
Nenue@14 122 <Texture name="$parentCutJoint" parentKey="alignedJoint" hidden="true">
Nenue@14 123 <Size x="4" y="4" />
Nenue@14 124 <Color r="1" g="0" b="0" a="1" />
Nenue@14 125 </Texture>
Nenue@14 126 <Texture name="$parentCutY" parentKey="cuttingJointX" hidden="true">
Nenue@14 127 <Size x="4" y="48" />
Nenue@14 128 <Color r="1" g="1" b="0" a="1" />
Nenue@14 129 </Texture>
Nenue@14 130 <Texture name="$parentCutX" parentKey="cuttingJointY" hidden="true">
Nenue@14 131 <Size x="48" y="4" />
Nenue@14 132 <Color r="1" g="1" b="0" a="1" />
Nenue@14 133 </Texture>
Nenue@14 134 <Texture name="$parentPoppedY" parentKey="poppingJointX" hidden="true">
Nenue@14 135 <Size x="4" y="48" />
Nenue@14 136 <Color r="0" g="1" b="1" a="1" />
Nenue@14 137 </Texture>
Nenue@14 138 <Texture name="$parentPoppedX" parentKey="poppingJointY" hidden="true">
Nenue@14 139 <Size x="48" y="4" />
Nenue@14 140 <Color r="0" g="1" b="1" a="1" />
Nenue@14 141 </Texture>
Nenue@14 142 <Texture name="$parentChildSpace" parentKey="childSpace" hidden="true">
Nenue@14 143 <Color r="0" g=".5" b="1" a="0.5" />
Nenue@14 144 </Texture>
Nenue@14 145 </Layer>
Nenue@14 146 <Layer level="HIGHLIGHT">
Nenue@14 147 <Texture name="$parentHighlight" setAllPoints="true" parentArray="config" hidden="true">
Nenue@14 148 <Color r="1" g="1" b="0" a="0.2" />
Nenue@14 149 </Texture>
Nenue@14 150 </Layer>
Nenue@14 151 </Layers>
Nenue@14 152 <Frames>
Nenue@14 153 <Button name="$parentAnchorUL" inherits="VeneerAnchorButton">
Nenue@14 154 <Anchors>
Nenue@14 155 <Anchor point="TOPLEFT" />
Nenue@14 156 </Anchors>
Nenue@14 157 </Button>
Nenue@14 158 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
Nenue@14 159 <Anchors>
Nenue@14 160 <Anchor point="TOPRIGHT" />
Nenue@14 161 </Anchors>
Nenue@14 162 </Button>
Nenue@14 163 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
Nenue@14 164 <Anchors>
Nenue@14 165 <Anchor point="BOTTOMRIGHT" />
Nenue@14 166 </Anchors>
Nenue@14 167 </Button>
Nenue@14 168 <Button name="$parentAnchorUR" inherits="VeneerAnchorButton">
Nenue@14 169 <Anchors>
Nenue@14 170 <Anchor point="BOTTOMLEFT" />
Nenue@14 171 </Anchors>
Nenue@14 172 </Button>
Nenue@14 173 </Frames>
Nenue@14 174 </Frame>
Nenue@14 175
Nenue@14 176 <Frame name="VeneerConsolidatedBuffsAnchor" inherits="VeneerAnchorTemplate" virtual="true">
Nenue@14 177 <Layers>
Nenue@14 178 <Layer level="OVERLAY">
Nenue@14 179 <!-- need to make our own number label since the original is buried under secure layer -->
Nenue@14 180 <FontString inherits="VeneerFontNormal" name="$parentLabel" parentKey="label">
Nenue@14 181 <Anchors>
Nenue@14 182 <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-2" />
Nenue@14 183 </Anchors>
Nenue@14 184 </FontString>
Nenue@14 185 <!--
Nenue@14 186 <Texture name="$parentBackdrop" parentKey="background" setAllPoints="true" alphaMode="BLEND">
Nenue@14 187 <Color r="0" g="0" b="0" a="1" />
Nenue@14 188 <Anchors>
Nenue@14 189 <Anchor point="BOTTOMLEFT" x="1" y="1" />
Nenue@14 190 <Anchor point="TOPRIGHT" x="-1" y="-1" />
Nenue@14 191 </Anchors>
Nenue@14 192 </Texture>
Nenue@14 193 <Texture name="$parentIcon" parentKey="border" setAllPoints="true" alphaMode="BLEND">
Nenue@14 194 <Color r="1" g="1" b="1" a="1" />
Nenue@14 195 </Texture>
Nenue@14 196 -->
Nenue@14 197 </Layer>
Nenue@14 198 </Layers>
Nenue@14 199 </Frame>
Nenue@14 200
Nenue@14 201 <Frame name="VeneerRaidBuffTemplate" virtual="true" enableMouse="false">
Nenue@14 202 <Layers>
Nenue@14 203 <Layer level="ARTWORK">
Nenue@14 204 <Texture name="$parentLegend" parentKey="legend" parentArray="config" setAllPoints="true" hidden="true">
Nenue@14 205 <Color a="0.5" r="0" g="1" b="0" />
Nenue@14 206 </Texture>
Nenue@14 207 <Texture name="$parentCountLegend" parentKey="count" parentArray="config" hidden="true">
Nenue@14 208 <Color a="0.75" r="1" g=".5" b="0" />
Nenue@14 209 </Texture>
Nenue@14 210
Nenue@14 211
Nenue@14 212 <Texture name="$parentIconArea" parentKey="icon" alphaMode="ADD">
Nenue@14 213 <Color r="0" g="0" b="0" a="0" />
Nenue@14 214 </Texture>
Nenue@14 215 <Texture name="$parentTextLegend" parentKey="duration" parentArray="config" hidden="true" alphaMode="BLEND">
Nenue@14 216 <Color a="0.25" r="1" g="1" b="1" />
Nenue@14 217 </Texture>
Nenue@14 218 </Layer>
Nenue@14 219 <Layer level="OVERLAY">
Nenue@14 220 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentSymbol" parentKey="symbol">
Nenue@14 221 <Anchors>
Nenue@14 222 <Anchor point="TOP" />
Nenue@14 223 </Anchors>
Nenue@14 224 </FontString>
Nenue@14 225 <FontString inherits="VeneerFontNormal" parentArray="config" name="$parentID" parentKey="idText" hidden="true">
Nenue@14 226 <Anchors>
Nenue@14 227 <Anchor point="BOTTOM" />
Nenue@14 228 </Anchors>
Nenue@14 229 </FontString>
Nenue@14 230 </Layer>
Nenue@14 231 </Layers>
Nenue@14 232 </Frame>
Nenue@14 233
Nenue@14 234 <Button name="VeneerMissingBuffTemplate" virtual="true">
Nenue@14 235 <Scripts>
Nenue@14 236 <OnClick>
Nenue@14 237 if self.spell and not InCombatLockdown() then
Nenue@14 238 CastSpellByID(self.spell)
Nenue@14 239 end
Nenue@14 240 </OnClick>
Nenue@14 241 </Scripts>
Nenue@14 242 <Layers>
Nenue@14 243 <Layer level="BORDER">
Nenue@14 244 <Texture setAllPoints="true">
Nenue@14 245 <Color r="1" g="1" b="1" a="0.25" />
Nenue@14 246 </Texture>
Nenue@14 247 </Layer>
Nenue@14 248 <Layer level="ARTWORK">
Nenue@14 249 <Texture name="$parentIcon" parentKey="icon">
Nenue@14 250 <Size x="20" y="20" />
Nenue@14 251 <Anchors>
Nenue@14 252 <Anchor point="LEFT" />
Nenue@14 253 </Anchors>
Nenue@14 254 </Texture>
Nenue@14 255 </Layer>
Nenue@14 256 <Layer level="OVERLAY">
Nenue@14 257 <FontString name="$parentLabel" parentKey="label" inherits="VeneerFontNormal" justifyH="LEFT">
Nenue@14 258 <Anchors>
Nenue@14 259 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="icon" />
Nenue@14 260 </Anchors>
Nenue@14 261 </FontString>
Nenue@14 262 </Layer>
Nenue@14 263 </Layers>
Nenue@14 264 </Button>
Nenue@14 265
Nenue@14 266
Nenue@0 267 <Script file="BuffAnchors.lua" />
Nenue@0 268 <Script file="RaidBuffTray.lua" />
Nenue@0 269 <Script file="BuffButton.lua" />
Nenue@0 270 </Ui>