vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
2 <Script file="CTRA_Spy.lua"/>
3 <Frame name="CTRA_Spy">
4 <Scripts>
5 <OnLoad>
6 ctraSpy_onLoad();
7 </OnLoad>
8 <OnEvent>
9 ctraSpy_onEvent(event);
10 </OnEvent>
11 </Scripts>
12 </Frame>
13 <Frame name="CTRA_SpyOptionsFrame" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent">
14 <Size>
15 <AbsDimension x="220" y="240"/>
16 </Size>
17 <Anchors>
18 <Anchor point="CENTER"/>
19 </Anchors>
20 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
21 <BackgroundInsets>
22 <AbsInset left="11" right="12" top="12" bottom="11"/>
23 </BackgroundInsets>
24 <TileSize>
25 <AbsValue val="32"/>
26 </TileSize>
27 <EdgeSize>
28 <AbsValue val="32"/>
29 </EdgeSize>
30 </Backdrop>
31 <Layers>
32 <Layer level="ARTWORK">
33 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
34 <Size>
35 <AbsDimension x="256" y="64"/>
36 </Size>
37 <Anchors>
38 <Anchor point="TOP">
39 <Offset>
40 <AbsDimension x="0" y="12"/>
41 </Offset>
42 </Anchor>
43 </Anchors>
44 </Texture>
45 <FontString inherits="GameFontNormal" text="CTRA Spy Options">
46 <Anchors>
47 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
48 <Offset>
49 <AbsDimension x="0" y="-14"/>
50 </Offset>
51 </Anchor>
52 </Anchors>
53 </FontString>
54 <FontString name="$parentEnable" inherits="GameFontNormal" text="Enable CTRA Spy">
55 <Anchors>
56 <Anchor point="LEFT" relativePoint="TOPLEFT">
57 <Offset>
58 <AbsDimension x="60" y="-50"/>
59 </Offset>
60 </Anchor>
61 </Anchors>
62 </FontString>
63 <FontString name="$parentPlaySounds" inherits="GameFontNormal" text="Play Sounds">
64 <Anchors>
65 <Anchor point="LEFT" relativePoint="TOPLEFT">
66 <Offset>
67 <AbsDimension x="60" y="-70"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 </FontString>
72 <FontString name="$parentShowChat" inherits="GameFontNormal" text="Show Chat Messages">
73 <Anchors>
74 <Anchor point="LEFT" relativePoint="TOPLEFT">
75 <Offset>
76 <AbsDimension x="60" y="-90"/>
77 </Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 <FontString name="$parentResistances" inherits="GameFontNormal" text="Resistance Checks">
82 <Anchors>
83 <Anchor point="LEFT" relativePoint="TOPLEFT">
84 <Offset>
85 <AbsDimension x="60" y="-110"/>
86 </Offset>
87 </Anchor>
88 </Anchors>
89 </FontString>
90 <FontString name="$parentReagents" inherits="GameFontNormal" text="Reagents Checks">
91 <Anchors>
92 <Anchor point="LEFT" relativePoint="TOPLEFT">
93 <Offset>
94 <AbsDimension x="60" y="-130"/>
95 </Offset>
96 </Anchor>
97 </Anchors>
98 </FontString>
99 <FontString name="$parentDurability" inherits="GameFontNormal" text="Durability Checks">
100 <Anchors>
101 <Anchor point="LEFT" relativePoint="TOPLEFT">
102 <Offset>
103 <AbsDimension x="60" y="-150"/>
104 </Offset>
105 </Anchor>
106 </Anchors>
107 </FontString>
108 <FontString name="$parentItems" inherits="GameFontNormal" text="Item Checks">
109 <Anchors>
110 <Anchor point="LEFT" relativePoint="TOPLEFT">
111 <Offset>
112 <AbsDimension x="60" y="-170"/>
113 </Offset>
114 </Anchor>
115 </Anchors>
116 </FontString>
117 </Layer>
118 </Layers>
119 <Frames>
120 <Frame name="$parentDrag">
121 <Size>
122 <AbsDimension x="150" y="32"/>
123 </Size>
124 <Anchors>
125 <Anchor point="TOP">
126 <Offset>
127 <AbsDimension x="-12" y="12"/>
128 </Offset>
129 </Anchor>
130 </Anchors>
131 <Scripts>
132 <OnMouseDown>
133 if ( arg1 == "LeftButton" ) then
134 this:GetParent():StartMoving();
135 elseif ( arg1 == "RightButton" ) then
136 this:GetParent():ClearAllPoints();
137 this:GetParent():SetPoint("CENTER", "UIParent", "CENTER");
138 end
139 </OnMouseDown>
140 <OnMouseUp>
141 this:GetParent():StopMovingOrSizing();
142 </OnMouseUp>
143 <OnEnter>
144 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
145 GameTooltip:SetText("Left-click to drag\nRight-click to reset");
146 </OnEnter>
147 <OnLeave>
148 GameTooltip:Hide();
149 </OnLeave>
150 </Scripts>
151 </Frame>
152 <Button name="$parentCloseButton" hidden="false" inherits="GameMenuButtonTemplate" text="Okay">
153 <Size>
154 <AbsDimension x="100" y="25"/>
155 </Size>
156 <Anchors>
157 <Anchor point="BOTTOM">
158 <Offset>
159 <AbsDimension x="0" y="15"/>
160 </Offset>
161 </Anchor>
162 </Anchors>
163 <Scripts>
164 <OnClick>
165 HideUIPanel(this:GetParent());
166 </OnClick>
167 </Scripts>
168 </Button>
169 <CheckButton name="$parentEnableCB" id="1" hidden="false" inherits="OptionsCheckButtonTemplate">
170 <Anchors>
171 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentEnable">
172 <Offset>
173 <AbsDimension x="-5" y="0"/>
174 </Offset>
175 </Anchor>
176 </Anchors>
177 <HitRectInsets>
178 <AbsInset left="0" right="0" top="0" bottom="0"/>
179 </HitRectInsets>
180 <Size>
181 <AbsDimension x="24" y="24"/>
182 </Size>
183 <Scripts>
184 <OnClick>
185 ctraSpyOptions_onClick(1, this:GetChecked());
186 </OnClick>
187 </Scripts>
188 </CheckButton>
189 <CheckButton name="$parentPlaySoundsCB" id="2" hidden="false" inherits="OptionsCheckButtonTemplate">
190 <Anchors>
191 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentPlaySounds">
192 <Offset>
193 <AbsDimension x="-5" y="0"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 <HitRectInsets>
198 <AbsInset left="0" right="0" top="0" bottom="0"/>
199 </HitRectInsets>
200 <Size>
201 <AbsDimension x="24" y="24"/>
202 </Size>
203 <Scripts>
204 <OnClick>
205 ctraSpyOptions_onClick(2, this:GetChecked());
206 </OnClick>
207 </Scripts>
208 </CheckButton>
209 <CheckButton name="$parentShowChatCB" id="3" hidden="false" inherits="OptionsCheckButtonTemplate">
210 <Anchors>
211 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentShowChat">
212 <Offset>
213 <AbsDimension x="-5" y="0"/>
214 </Offset>
215 </Anchor>
216 </Anchors>
217 <HitRectInsets>
218 <AbsInset left="0" right="0" top="0" bottom="0"/>
219 </HitRectInsets>
220 <Size>
221 <AbsDimension x="24" y="24"/>
222 </Size>
223 <Scripts>
224 <OnClick>
225 ctraSpyOptions_onClick(3, this:GetChecked());
226 </OnClick>
227 </Scripts>
228 </CheckButton>
229 <CheckButton name="$parentResistancesCB" id="4" hidden="false" inherits="OptionsCheckButtonTemplate">
230 <Anchors>
231 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentResistances">
232 <Offset>
233 <AbsDimension x="-5" y="0"/>
234 </Offset>
235 </Anchor>
236 </Anchors>
237 <HitRectInsets>
238 <AbsInset left="0" right="0" top="0" bottom="0"/>
239 </HitRectInsets>
240 <Size>
241 <AbsDimension x="24" y="24"/>
242 </Size>
243 <Scripts>
244 <OnClick>
245 ctraSpyOptions_onClick(4, this:GetChecked());
246 </OnClick>
247 </Scripts>
248 </CheckButton>
249 <CheckButton name="$parentReagentsCB" id="5" hidden="false" inherits="OptionsCheckButtonTemplate">
250 <Anchors>
251 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentReagents">
252 <Offset>
253 <AbsDimension x="-5" y="0"/>
254 </Offset>
255 </Anchor>
256 </Anchors>
257 <HitRectInsets>
258 <AbsInset left="0" right="0" top="0" bottom="0"/>
259 </HitRectInsets>
260 <Size>
261 <AbsDimension x="24" y="24"/>
262 </Size>
263 <Scripts>
264 <OnClick>
265 ctraSpyOptions_onClick(5, this:GetChecked());
266 </OnClick>
267 </Scripts>
268 </CheckButton>
269 <CheckButton name="$parentDurabilityCB" id="6" hidden="false" inherits="OptionsCheckButtonTemplate">
270 <Anchors>
271 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDurability">
272 <Offset>
273 <AbsDimension x="-5" y="0"/>
274 </Offset>
275 </Anchor>
276 </Anchors>
277 <HitRectInsets>
278 <AbsInset left="0" right="0" top="0" bottom="0"/>
279 </HitRectInsets>
280 <Size>
281 <AbsDimension x="24" y="24"/>
282 </Size>
283 <Scripts>
284 <OnClick>
285 ctraSpyOptions_onClick(6, this:GetChecked());
286 </OnClick>
287 </Scripts>
288 </CheckButton>
289 <CheckButton name="$parentItemsCB" id="7" hidden="false" inherits="OptionsCheckButtonTemplate">
290 <Anchors>
291 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentItems">
292 <Offset>
293 <AbsDimension x="-5" y="0"/>
294 </Offset>
295 </Anchor>
296 </Anchors>
297 <HitRectInsets>
298 <AbsInset left="0" right="0" top="0" bottom="0"/>
299 </HitRectInsets>
300 <Size>
301 <AbsDimension x="24" y="24"/>
302 </Size>
303 <Scripts>
304 <OnClick>
305 ctraSpyOptions_onClick(7, this:GetChecked());
306 </OnClick>
307 </Scripts>
308 </CheckButton>
309 </Frames>
310 <Scripts>
311 <OnLoad>
312 this:RegisterEvent("PLAYER_ENTERING_WORLD");
313 </OnLoad>
314 <OnEvent>
315 ctraSpyOptions_initialize();
316 </OnEvent>
317 <OnShow>
318 PlaySound("UChatScrollButton");
319 </OnShow>
320 <OnHide>
321 PlaySound("UChatScrollButton");
322 </OnHide>
323 </Scripts>
324 </Frame>
325 </Ui>