Mercurial > wow > turok
comparison Turok/Modules/Timer/Timer.xml @ 6:a9b8b0866ece
clear out log jam
| author | Nenue |
|---|---|
| date | Sun, 21 Feb 2016 08:32:53 -0500 |
| parents | |
| children | 9400a0ff8540 |
comparison
equal
deleted
inserted
replaced
| 5:8a9a6637f082 | 6:a9b8b0866ece |
|---|---|
| 1 <!-- | |
| 2 Timer-specific XML defs | |
| 3 --> | |
| 4 <Ui> | |
| 5 <Script file="Timer.Init.lua" /> | |
| 6 <Script file="Presets.lua" /> | |
| 7 <Script file="Timer.lua" /> | |
| 8 <Script file="Container.lua" /> | |
| 9 <Script file="Status.lua" /> | |
| 10 <Script file="Aura.lua" /> | |
| 11 <Script file="Cooldown.lua" /> | |
| 12 <Script file="Icon.lua" /> | |
| 13 <Script file="Progressbar.lua" /> | |
| 14 <Script file="Import.lua" /> | |
| 15 <Script file="Editor.lua" /> | |
| 16 | |
| 17 | |
| 18 <!-- EASY TIMER FRAME --> | |
| 19 | |
| 20 <Frame name="TurokTimerScripts" parent="UIParent" virtual="true" hidden="true"> | |
| 21 <Scripts> | |
| 22 <OnLoad> | |
| 23 self.textRegions = {} | |
| 24 </OnLoad> | |
| 25 <OnShow> | |
| 26 self:Report() | |
| 27 </OnShow> | |
| 28 <OnHide> | |
| 29 self:Report() | |
| 30 </OnHide> | |
| 31 <OnUpdate> | |
| 32 self:Update() | |
| 33 </OnUpdate> | |
| 34 </Scripts> | |
| 35 <Size x="64" y="64" /> | |
| 36 <Anchors> | |
| 37 <Anchor point="CENTER" /> | |
| 38 </Anchors> | |
| 39 <Animations> | |
| 40 <AnimationGroup parentKey="iconIntro" looping="NONE" ignoreFramerateThrottle="true"> | |
| 41 <Scale childKey="icon" order="1" duration=".10" fromScaleX="0.1" toScaleX="1.0" fromScaleY=".1" toScaleY="1" /> | |
| 42 </AnimationGroup> | |
| 43 <AnimationGroup parentKey="Intro" looping="NONE" ignoreFramerateThrottle="true"> | |
| 44 <Alpha childKey="foreground" order="1" duration=".5" fromAlpha="0" toAlpha="1" /> | |
| 45 <Alpha childKey="background" order="1" duration=".5" fromAlpha="0" toAlpha="1" /> | |
| 46 <Scripts> | |
| 47 <OnPlay> | |
| 48 local g = self:GetParent() | |
| 49 g.collected = nil | |
| 50 g.add = true | |
| 51 g:Report() | |
| 52 --@debug@ | |
| 53 print('Layout', g.cvars.type, 'Intro |cFFFFFF00START', g:GetName())--@end-debug@ | |
| 54 g:Show() | |
| 55 if g.cvars.sound_active then | |
| 56 PlaySoundFile(g.cvars.sound_active) | |
| 57 end | |
| 58 if g.icon then | |
| 59 g.iconIntro:Play() | |
| 60 end | |
| 61 </OnPlay> | |
| 62 <OnStop> | |
| 63 local g = self:GetParent() | |
| 64 --@debug@ | |
| 65 print('Layout', g.cvars.type, 'Intro |cFFFF4400STOP', g:GetName())--@end-debug@ | |
| 66 if g.enableIcon then | |
| 67 g.iconIntro:Stop() | |
| 68 end | |
| 69 </OnStop> | |
| 70 <OnFinished> | |
| 71 local g = self:GetParent() | |
| 72 --@debug@ | |
| 73 print('Layout', g.cvars.type, 'Intro |cFF00FF00FINISH', g:GetName())--@end-debug@ | |
| 74 if g.enableIcon then | |
| 75 g.iconIntro:Stop() | |
| 76 end | |
| 77 g:UpdateAlpha(Turok.inCombat, g.displayState, g.fillState) | |
| 78 </OnFinished> | |
| 79 </Scripts> | |
| 80 </AnimationGroup> | |
| 81 <AnimationGroup parentKey="iconOutro" looping="NONE" ignoreFramerateThrottle="true"> | |
| 82 <Scale childKey="icon" order="1" duration=".10" fromScaleX="1" toScaleX="0.1" fromScaleY="1" toScaleY="0.1"/> | |
| 83 </AnimationGroup> | |
| 84 <AnimationGroup parentKey="Outro" looping="NONE" ignoreFramerateThrottle="true"> | |
| 85 <Alpha childKey="foreground" order="1" duration=".5" change="-1" /> | |
| 86 <Alpha childKey="background" order="1" duration=".5" change="-1" /> | |
| 87 <Scripts> | |
| 88 <OnPlay> | |
| 89 local g = self:GetParent() | |
| 90 g.collected = nil | |
| 91 g.trash = true | |
| 92 g:Report() | |
| 93 --@debug@ | |
| 94 print('Layout', g.cvars.type, '|cFF0088FFOutro |cFFFFFF00START', g:GetName())--@end-debug@ | |
| 95 if g.spiral then | |
| 96 g.spiral:StopAnimating() | |
| 97 g.spiral:Hide() | |
| 98 end | |
| 99 if g.cvars.sound_hidden then | |
| 100 PlaySoundFile(g.cvars.sound_hidden) | |
| 101 end | |
| 102 if g.enableIcon then | |
| 103 g.iconOutro:Play() | |
| 104 end | |
| 105 </OnPlay> | |
| 106 <OnStop> | |
| 107 local g = self:GetParent() | |
| 108 --@debug@ | |
| 109 print('Layout', g.cvars.type, '|cFF0088FFOutro |cFFFF4400STOP', g:GetName())--@end-debug@ | |
| 110 if g.enableIcon then | |
| 111 g.iconOutro:Stop() | |
| 112 end | |
| 113 </OnStop> | |
| 114 <OnFinished> | |
| 115 local g = self:GetParent() | |
| 116 g.trash = false | |
| 117 --@debug@ | |
| 118 print('Layout', g.cvars.type, '|cFF0088FFOutro |cFF00FF00Finish', g:GetName())--@end-debug@ | |
| 119 if g.enableIcon then | |
| 120 g.iconOutro:Stop() | |
| 121 end | |
| 122 g:Hide() | |
| 123 </OnFinished> | |
| 124 </Scripts> | |
| 125 </AnimationGroup> | |
| 126 <AnimationGroup parentKey="Retro" looping="NONE" ignoreFramerateThrottle="true"> | |
| 127 <Alpha childKey="iconFlash" fromAlpha="0" toAlpha=".7" duration="0.05" order="1" /> | |
| 128 <Alpha childKey="iconFlash" fromAlpha=".7" toAlpha="0" duration="0.15" order="2" /> | |
| 129 <Scripts> | |
| 130 <OnPlay> | |
| 131 local g = self:GetParent() | |
| 132 --@debug@ | |
| 133 print('Layout', g.cvars.type, '|cFFFFFF00Retro |cFFFFFF00START', g:GetName())--@end-debug@ | |
| 134 if g.iconFlash then | |
| 135 g.iconFlash:Show() | |
| 136 end | |
| 137 </OnPlay> | |
| 138 <OnStop> | |
| 139 local g = self:GetParent() | |
| 140 --@debug@ | |
| 141 print('Layout',g.cvars.type, '|cFFFFFF00Retro |cFFFF4400STOP', self:GetParent():GetName())--@end-debug@ | |
| 142 </OnStop> | |
| 143 <OnFinished> | |
| 144 local g = self:GetParent() | |
| 145 --@debug@ | |
| 146 print('Layout',g.cvars.type, '|cFFFFFF00Retro |cFF00FF00FINISH', g:GetName())--@end-debug@ | |
| 147 if g.iconFlash then | |
| 148 g.iconFlash:Hide() | |
| 149 end | |
| 150 g:UpdateAlpha(Turok.inCombat, g.displayState, g.fillState) | |
| 151 </OnFinished> | |
| 152 </Scripts> | |
| 153 </AnimationGroup> | |
| 154 <AnimationGroup name="Slider" parentKey="slide" ignoreFramerateThrottle="true" looping="NONE"> | |
| 155 <Translation parentKey="t1" duration="0.11" order="1" /> | |
| 156 </AnimationGroup> | |
| 157 </Animations> | |
| 158 <Layers> | |
| 159 <Layer level="BACKGROUND"> | |
| 160 <Texture file="Interface\ICONS\INV_Misc_QuestionMark" name="$parentSpellIcon" parentKey="icon" textureSubLevel="-7" hidden="true"> | |
| 161 <TexCoords top="0.1" left="0.1" bottom="0.9" right="0.9" /> | |
| 162 </Texture> | |
| 163 </Layer> | |
| 164 <Layer level="ARTWORK"> | |
| 165 <Texture parentKey="iconFlash" name="$parentIconFlashBox" hidden="true"> | |
| 166 <Anchor point="TOPLEFT" relativeKey="icon"/> | |
| 167 <Anchor point="BOTTOMRIGHT" relativeKey="icon" /> | |
| 168 <Color r="1" g="1" b="1" a="1" /> | |
| 169 </Texture> | |
| 170 </Layer> | |
| 171 <Layer level="OVERLAY"> | |
| 172 <Texture parentKey="debugPanel" name="$parentDebugWindow" hidden="true"> | |
| 173 <Anchors> | |
| 174 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> | |
| 175 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="-40" /> | |
| 176 </Anchors> | |
| 177 </Texture> | |
| 178 <FontString inherits="TurokFontDetail" justifyH="LEFT"> | |
| 179 <Anchors> | |
| 180 <Anchor point="TOPLEFT" /> | |
| 181 </Anchors> | |
| 182 </FontString> | |
| 183 </Layer> | |
| 184 </Layers> | |
| 185 </Frame> | |
| 186 | |
| 187 <Frame name="TurokIconTemplate" parent="UIParent" virtual="true" hidden="true" inherits="TurokTimerScripts"> | |
| 188 <Scripts> | |
| 189 <OnLoad inherit="prepend"> | |
| 190 -- not using parentArray because we want name info | |
| 191 self.textRegions = { | |
| 192 counter = self.spiral.counter, | |
| 193 subCounter = self.spiral.subCounter, | |
| 194 charges = self.spiral.charges | |
| 195 } | |
| 196 </OnLoad> | |
| 197 </Scripts> | |
| 198 <Frames> | |
| 199 <Cooldown name="$parentCooldownSpiral" parentKey="spiral" inherits="CooldownFrameTemplate"> | |
| 200 <SwipeTexture parentKey="spiralTex"> | |
| 201 <Color r="0" g="0" b="0" a="0.6" /> | |
| 202 </SwipeTexture> | |
| 203 <Anchors> | |
| 204 <Anchor relativeKey="$parent.icon" point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0" /> | |
| 205 <Anchor relativeKey="$parent.icon" point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" /> | |
| 206 </Anchors> | |
| 207 <Layers> | |
| 208 <Layer level="OVERLAY"> | |
| 209 <FontString inherits="TurokFontMed" name="$parentCounter" parentKey="counter" justifyH="RIGHT" justifyV="BOTTOM"> | |
| 210 <KeyValues> | |
| 211 <!-- [1] below 6 seconds remaining --> | |
| 212 <KeyValue key="anchor1" value="TOP" /> | |
| 213 <KeyValue key="anchor1_rel" value="TOP" /> | |
| 214 <!-- [2] default --> | |
| 215 <KeyValue key="anchor2" value="TOP" /> | |
| 216 <KeyValue key="anchor2_rel" value="TOP" /> | |
| 217 <!-- [3] > 100 sec remaining --> | |
| 218 <KeyValue key="anchor3" value="TOPRIGHT" /> | |
| 219 <KeyValue key="anchor3_rel" value="TOP" /> | |
| 220 </KeyValues> | |
| 221 <Size x="40" y="40" /> | |
| 222 <Anchors> | |
| 223 <Anchor point="TOPRIGHT" relativePoint="TOP" relativeKey="$parent.$parent.icon" x="0" y="4" /> | |
| 224 </Anchors> | |
| 225 </FontString> | |
| 226 <FontString inherits="TurokFontDetail" name="$parentSubCounter" parentKey="subCounter" justifyH="LEFT" text="subtext" justifyV="BOTTOM"> | |
| 227 <KeyValues> | |
| 228 <KeyValue key="anchor1" value="LEFT" /> | |
| 229 <KeyValue key="anchor1_rel" value="RIGHT" /> | |
| 230 <KeyValue key="anchor2" value="LEFT" /> | |
| 231 <KeyValue key="anchor2_rel" value="RIGHT" /> | |
| 232 <KeyValue key="anchor3" value="LEFT" /> | |
| 233 <KeyValue key="anchor3_rel" value="RIGHT" /> | |
| 234 </KeyValues> | |
| 235 <Size x="40" y="40" /> | |
| 236 <Color r="1" g="1" b="0" a="1" /> | |
| 237 <Anchors> | |
| 238 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.counter" x="0" y="1" /> | |
| 239 </Anchors> | |
| 240 </FontString> | |
| 241 <FontString inherits="TurokFontDetail" name="$parentCharges" parentKey="charges" justifyH="RIGHT" justifyV="BOTTOM" text="charges"> | |
| 242 <Size x="80" y="30" /> | |
| 243 <Color a="1" r="1" g="1" b="0" /> | |
| 244 <Anchors> | |
| 245 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" /> | |
| 246 </Anchors> | |
| 247 </FontString> | |
| 248 </Layer> | |
| 249 </Layers> | |
| 250 </Cooldown> | |
| 251 </Frames> | |
| 252 </Frame> | |
| 253 | |
| 254 <Frame name="TurokProgressbarTemplate" parent="UIParent" virtual="true" hidden="true" inherits="TurokTimerScripts"> | |
| 255 <Scripts> | |
| 256 <OnLoad inherit="prepend"> | |
| 257 self.textRegions = { | |
| 258 left = self.left, | |
| 259 right = self.right | |
| 260 } | |
| 261 </OnLoad> | |
| 262 </Scripts> | |
| 263 <Layers> | |
| 264 | |
| 265 <Layer level="BACKGROUND"> | |
| 266 | |
| 267 | |
| 268 <Texture name="$parentProgressBackground" parentKey="background" textureSubLevel="0" /> | |
| 269 </Layer> | |
| 270 <Layer level="ARTWORK"> | |
| 271 <Texture name="$parentProgressForeground" parentKey="foreground" textureSubLevel="1" /> | |
| 272 </Layer> | |
| 273 | |
| 274 <Layer level="OVERLAY"> | |
| 275 <FontString inherits="TurokFontDetail" name="$parentLeftText" parentKey="left" justifyH="LEFT"> | |
| 276 <Anchors> | |
| 277 <Anchor point="LEFT" /> | |
| 278 </Anchors> | |
| 279 </FontString> | |
| 280 <FontString inherits="TurokFontDetail" name="$parentRightText" parentKey="right" justifyH="RIGHT"> | |
| 281 <Anchors> | |
| 282 <Anchor point="RIGHT" /> | |
| 283 </Anchors> | |
| 284 </FontString> | |
| 285 </Layer> | |
| 286 </Layers> | |
| 287 </Frame> | |
| 288 | |
| 289 <!-- Collector Tray --> | |
| 290 <Frame name="TkContainerTemplate" virtual="true" parent="UIParent" alpha="1" movable="true"> | |
| 291 <Size x="700" y="200" /> | |
| 292 <Scripts> | |
| 293 <OnLoad> | |
| 294 self:RegisterForDrag('LeftButton') | |
| 295 self:EnableMouse(false) -- for now | |
| 296 </OnLoad> | |
| 297 <OnDragStart> | |
| 298 if self:GetEnableMouse() then | |
| 299 self.cx = self:GetLeft() | |
| 300 self.cy = self:GetTop() | |
| 301 self:StartMoving() | |
| 302 end | |
| 303 </OnDragStart> | |
| 304 <OnDragStop> | |
| 305 self:StopMovingOrSizing() | |
| 306 self.x = self.x + (self:GetLeft() - self.cx) | |
| 307 self.y = self.y + (self:GetTop() - self.cy) | |
| 308 self:SetPoint(self.anchor, self.parent, self.anchorTo, self.x, self.y) | |
| 309 </OnDragStop> | |
| 310 </Scripts> | |
| 311 <Layers> | |
| 312 <Layer level="BACKGROUND"> | |
| 313 <Texture name="$parentBackdrop" parentKey="ConfigBG" setAllPoints="true" hidden="true"> | |
| 314 <Color r="1" g="1" b="1" a="0.25" /> | |
| 315 </Texture> | |
| 316 </Layer> | |
| 317 <Layer level="OVERLAY"> | |
| 318 <FontString name="$parentNameTag" parentKey="NameText" inherits="TurokFont" justifyH="LEFT" justifyV="BOTTOM" hidden="true"> | |
| 319 <Anchors> | |
| 320 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="2" /> | |
| 321 </Anchors> | |
| 322 </FontString> | |
| 323 </Layer> | |
| 324 </Layers> | |
| 325 </Frame> | |
| 326 | |
| 327 </Ui> |
