annotate Turok/Modules/Utilities/Utilities.xml @ 6:a9b8b0866ece

clear out log jam
author Nenue
date Sun, 21 Feb 2016 08:32:53 -0500
parents
children
rev   line source
Nenue@6 1 <Ui>
Nenue@6 2 <Frame name="TkAlertContainer" parent="UIParent" movable="true">
Nenue@6 3 <Scripts>
Nenue@6 4 <OnDragStart>
Nenue@6 5 self.cx = self:GetLeft()
Nenue@6 6 self.cy = self:GetTop()
Nenue@6 7 self:StartMoving()
Nenue@6 8 </OnDragStart>
Nenue@6 9 <OnDragStop>
Nenue@6 10 self:StopMovingOrSizing()
Nenue@6 11 self.x = self.x + self:GetLeft() - self.cx
Nenue@6 12 self.y = self.y + self:GetTop() - self.cy
Nenue@6 13 self:ClearAllPoints()
Nenue@6 14 self:SetPoint(self.anchor, self.parent, self.anchorTo, self.x, self.y)
Nenue@6 15 </OnDragStop>
Nenue@6 16 </Scripts>
Nenue@6 17 <Anchors>
Nenue@6 18 <Anchor point="LEFT" x="20" y="0" />
Nenue@6 19 </Anchors>
Nenue@6 20 <Size x="300" y="100" />
Nenue@6 21 <Layers>
Nenue@6 22 <Layer level="BACKGROUND">
Nenue@6 23 <Texture setAllPoints="true" parentKey="configBG" hidden="true">
Nenue@6 24 <Color r="1" b="1" g="1" a="0.5" />
Nenue@6 25 </Texture>
Nenue@6 26 <Texture setAllPoints="true" parentKey="flashBG" alpha="0">
Nenue@6 27 </Texture>
Nenue@6 28 </Layer>
Nenue@6 29 </Layers>
Nenue@6 30 <Animations>
Nenue@6 31 <AnimationGroup parentKey="flashIn" setToFinalAlpha="true">
Nenue@6 32 <Alpha change="1" childKey="flashBG" parentKey="a1" duration=".3" order="1" />
Nenue@6 33 <Alpha change="-1" childKey="flashBG" parentKey="a2" duration=".6" order="2" />
Nenue@6 34 <Scripts>
Nenue@6 35 <OnPlay>
Nenue@6 36 self:GetParent().flashBG:Show()
Nenue@6 37 </OnPlay>
Nenue@6 38 <OnFinished>
Nenue@6 39 self:GetParent().flashBG:Hide()
Nenue@6 40 </OnFinished>
Nenue@6 41 </Scripts>
Nenue@6 42 </AnimationGroup>
Nenue@6 43 </Animations>
Nenue@6 44 <Frames>
Nenue@6 45 <Button parentKey="clear" name="$parentButton_C" inherits="TurokButton" hidden="true">
Nenue@6 46 <Size x="24" y="24" />
Nenue@6 47 <Anchors>
Nenue@6 48 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="-4" y="0" />
Nenue@6 49 </Anchors>
Nenue@6 50 <Scripts>
Nenue@6 51 <OnClick>
Nenue@6 52 self:GetParent():Clear(self:GetParent())
Nenue@6 53 </OnClick>
Nenue@6 54 </Scripts>
Nenue@6 55 </Button>
Nenue@6 56 <Button parentArray="tools" parentKey="close" name="$parentButton_Close" inherits="TurokButton" hidden="true">
Nenue@6 57 <Size x="64" y="24" />
Nenue@6 58 <Anchors>
Nenue@6 59 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="-4" />
Nenue@6 60 </Anchors>
Nenue@6 61 <Scripts>
Nenue@6 62 <OnClick>
Nenue@6 63 self:GetParent():Close()
Nenue@6 64 </OnClick>
Nenue@6 65 </Scripts>
Nenue@6 66 </Button>
Nenue@6 67 <Button parentArray="tools" name="$parentButton_Unlock" inherits="TurokButton" hidden="true">
Nenue@6 68 <Size>
Nenue@6 69 <AbsDimension y="24" />
Nenue@6 70 </Size>
Nenue@6 71 <Scripts>
Nenue@6 72 <OnClick>
Nenue@6 73 self:GetParent():Unlock()
Nenue@6 74 </OnClick>
Nenue@6 75 </Scripts>
Nenue@6 76 <Anchors>
Nenue@6 77 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.close" x="2" y="0" />
Nenue@6 78 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="-2" />
Nenue@6 79 </Anchors>
Nenue@6 80 </Button>
Nenue@6 81 </Frames>
Nenue@6 82 </Frame>
Nenue@6 83
Nenue@6 84 <Frame name="TkAlertFrame" hidden="true" virtual="true">
Nenue@6 85
Nenue@6 86 <Animations>
Nenue@6 87 <AnimationGroup name="flashIn" parentKey="flashIn" looping="NONE" ignoreFramerateThrottle="true" setToFinalAlpha="true">
Nenue@6 88 <Alpha name="a1" parentKey="a1" childKey="flash" duration=".1" fromAlpha="0" toAlpha="1" order="1" />
Nenue@6 89 <Alpha name="a2" parentKey="a2" childKey="flash" duration=".5" fromAlpha="1" toAlpha="0" order="2" />
Nenue@6 90 <Alpha name="a3" parentKey="a3" childKey="backdrop" duration=".1" fromAlpha="0" toAlpha="1" order="1" />
Nenue@6 91 <Scripts>
Nenue@6 92 <OnPlay>
Nenue@6 93 print(self:GetParent():GetParent():GetName())
Nenue@6 94 print(self:GetParent():GetParent().num_events)
Nenue@6 95 </OnPlay>
Nenue@6 96 <OnFinished>
Nenue@6 97 self:GetParent():Pin()
Nenue@6 98 </OnFinished>
Nenue@6 99 </Scripts>
Nenue@6 100 </AnimationGroup>
Nenue@6 101 <AnimationGroup name="fadeOut" parentKey="fadeOut" looping="NONE" ignoreFramerateThrottle="true">
Nenue@6 102 <Alpha startDelay="5" name="a1" parentKey="a1" duration="1.5" change="-1" order="1" />
Nenue@6 103 <Scripts>
Nenue@6 104 <OnFinished>
Nenue@6 105
Nenue@6 106 self:GetParent():Remove()
Nenue@6 107 </OnFinished>
Nenue@6 108 </Scripts>
Nenue@6 109 </AnimationGroup>
Nenue@6 110 <AnimationGroup name="sweepOver" parentKey="sweepOver" looping="NONE" ignoreFrameRateThrottle="true">
Nenue@6 111 <Alpha
Nenue@6 112 name="a1" parentKey="a1" childKey="flare" change="1" duration="0.15" order="1" />
Nenue@6 113 <Translation
Nenue@6 114 name="t1" parentKey="t1" childKey="flare" offsetX="200" offsetY="0" startDelay="0.2" duration=".4" order="1" />
Nenue@6 115 <Rotation
Nenue@6 116 name="r1" parentKey="r1" childKey="flare" degrees="180" duration="0.55" order="1" />
Nenue@6 117 <Alpha
Nenue@6 118 name="a2" parentKey="a2" childKey="flare" change="-1" duration="0.15" order="2" startDelay=".8" />
Nenue@6 119 <Scripts>
Nenue@6 120 <OnPlay>
Nenue@6 121 self:GetParent():GetParent().flare:Show()
Nenue@6 122 </OnPlay>
Nenue@6 123 <OnFinished>
Nenue@6 124 self:GetParent():GetParent().flare:Hide()
Nenue@6 125 </OnFinished>
Nenue@6 126 </Scripts>
Nenue@6 127 </AnimationGroup>
Nenue@6 128 </Animations>
Nenue@6 129 <Layers>
Nenue@6 130 <Layer level="BACKGROUND">
Nenue@6 131 <Texture setAllPoints="true" parentKey="backdrop" alpha="1" alphaMode="BLEND">
Nenue@6 132 <Color r="0" g="0" b="0" a="0.5" />
Nenue@6 133 </Texture>
Nenue@6 134 <Texture setAllPoints="true" parentKey="flash" alpha="0" alphaMode="ADD">
Nenue@6 135 <Color r="1" b="1" g="1" a="1" />
Nenue@6 136 <Gradient orientation="HORIZONTAL">
Nenue@6 137 <MinColor r="1" g="1" b="1" a="1" />
Nenue@6 138 <MaxColor r="1" g="1" b="1" a="0" />
Nenue@6 139 </Gradient>
Nenue@6 140 </Texture>
Nenue@6 141 <Texture parentKey="flare" file="Interface\Cooldown\star4" alphaMode="ADD">
Nenue@6 142 <Color r="0.3" g="0.6" b="1" a="0.8"/>
Nenue@6 143 <Size x="24" y="24" />
Nenue@6 144 <Anchors>
Nenue@6 145 <Anchor point="LEFT" />
Nenue@6 146 </Anchors>
Nenue@6 147 </Texture>
Nenue@6 148 </Layer>
Nenue@6 149 <Layer level="OVERLAY">
Nenue@6 150 <FontString inherits="TurokFont" parentKey="ename" justifyH="LEFT">
Nenue@6 151 <Anchors>
Nenue@6 152 <Anchor point="TOPLEFT" />
Nenue@6 153 </Anchors>
Nenue@6 154 </FontString>
Nenue@6 155 <FontString inherits="TurokFontDetail" parentKey="desc" justifyH="LEFT">
Nenue@6 156 <Anchors>
Nenue@6 157 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="ename" />
Nenue@6 158 </Anchors>
Nenue@6 159 </FontString>
Nenue@6 160 </Layer>
Nenue@6 161 </Layers>
Nenue@6 162 <Frames>
Nenue@6 163
Nenue@6 164 <Button parentArray="tools" name="$parentButton_Block" inherits="UIPanelSquareButton" hidden="true" >
Nenue@6 165 <Scripts>
Nenue@6 166 <OnClick>
Nenue@6 167 self:GetParent():Block(self)
Nenue@6 168 </OnClick>
Nenue@6 169 </Scripts>
Nenue@6 170 <Size x="30" y="30" />
Nenue@6 171 <Anchors>
Nenue@6 172 <Anchor point="TOPRIGHT" x="36" y="3" />
Nenue@6 173 </Anchors>
Nenue@6 174 </Button>
Nenue@6 175 </Frames>
Nenue@6 176 </Frame>
Nenue@6 177
Nenue@6 178 <Frame virtual="true" hidden="true" name="TkPetSwatchTemplate" enableMouse="true">
Nenue@6 179 <Layers>
Nenue@6 180 <Layer level="OVERLAY">
Nenue@6 181 <FontString inherits="TurokFont" name="PetName" parentKey="name" />
Nenue@6 182 </Layer>
Nenue@6 183 </Layers>
Nenue@6 184 </Frame>
Nenue@6 185
Nenue@6 186 <Frame virtual="true" hidden="true" name="TkPetSpellTemplate" enableMouse="true">
Nenue@6 187 <Scripts>
Nenue@6 188 <OnEnter>
Nenue@6 189 print(self:GetName(), self.spellID, 'enter')
Nenue@6 190 GameTooltip:SetOwner(self, 'ANCHOR_TOP')
Nenue@6 191 --GameTooltip:SetPetAction(self.spellID)
Nenue@6 192 GameTooltip:Show()
Nenue@6 193 </OnEnter>
Nenue@6 194 <OnLeave>
Nenue@6 195 print(self:GetName(), 'leave')
Nenue@6 196 GameTooltip:Hide()
Nenue@6 197 </OnLeave>
Nenue@6 198 </Scripts>
Nenue@6 199 <Size x="64" y="64" />
Nenue@6 200 <Layers>
Nenue@6 201 <Layer level="ARTWORK">
Nenue@6 202 <Texture name="Icon" parentKey="icon" setAllPoints="true">
Nenue@6 203 <Anchors>
Nenue@6 204 <Anchor point="CENTER" />
Nenue@6 205 </Anchors>
Nenue@6 206 </Texture>
Nenue@6 207 </Layer>
Nenue@6 208 <Layer level="OVERLAY">
Nenue@6 209 <Texture name="StrongWeak" parentKey="strongWeakHint">
Nenue@6 210 <Size x="32" y="32" />
Nenue@6 211 <Anchor>
Nenue@6 212 <Anchor point="CENTER" />
Nenue@6 213 </Anchor>
Nenue@6 214 </Texture>
Nenue@6 215 <FontString inherits="TurokFont" name="TurnsLeft" parentKey="turnsLeft" setAllPoints="true" />
Nenue@6 216 </Layer>
Nenue@6 217 <Layer level="HIGHLIGHT">
Nenue@6 218 <FontString inherits="TurokFontDetail" name="Description" parentKey="spellDesc" setAllPoints="true" />
Nenue@6 219 <FontString inherits="TurokFontDetail" name="Damage" parentKey="damageModifier" setAllPoints="true" />
Nenue@6 220 <Texture alphaMode="ADD" setAllPoints="true">
Nenue@6 221 <Color a="1" r="1" g="1" b="0" />
Nenue@6 222 </Texture>
Nenue@6 223 </Layer>
Nenue@6 224 </Layers>
Nenue@6 225 <Animations>
Nenue@6 226 <AnimationGroup name="popIn" parentKey="popIn" ignoreFrameRateThrottle="true" looping="NONE" setToFinalAlpha="true">
Nenue@6 227 <Scripts>
Nenue@6 228 <OnPlay>
Nenue@6 229 self:GetParent():Show()
Nenue@6 230 self:GetParent():SetAlpha(0)
Nenue@6 231 </OnPlay>
Nenue@6 232 </Scripts>
Nenue@6 233 <Alpha childKey="spellIcon" duration="0.4" change="1" order="1" />
Nenue@6 234 <Scale childKey="spellIcon" duration="0.4" fromScaleX="0.1" fromScaleY="0.1" toScaleX="1" toScaleY="1" order="1" />
Nenue@6 235 </AnimationGroup>
Nenue@6 236 <AnimationGroup name="popOut" parentKey="popOut" ignoreFramerateThrottle="true" looping="NONE" setToFinalAlpha="true">
Nenue@6 237 <Scripts>
Nenue@6 238 <OnFinished>
Nenue@6 239 self:GetParent():Hide()
Nenue@6 240 </OnFinished>
Nenue@6 241 </Scripts>
Nenue@6 242 <Alpha childKey="spellIcon" duration="0.4" change="-1" order="1" />
Nenue@6 243 <Scale childKey="spellIcon" duration="0.4" fromScaleX="1" toScaleX=".1" fromScaleY="1" toScaleY=".1" order="1" />
Nenue@6 244 </AnimationGroup>
Nenue@6 245 </Animations>
Nenue@6 246 </Frame>
Nenue@6 247
Nenue@6 248 <Include file="Raid.xml" />
Nenue@6 249 <Script file="Toast.lua" />
Nenue@6 250 <Script file="Raid.lua" />
Nenue@6 251 <Script file="PetBattle.lua" />
Nenue@6 252 </Ui>