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