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

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