vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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/ ..\FrameXML\UI.xsd"> |
2 | |||
3 | <Script file="localization.lua"/> |
||
4 | <Script file="localization.cn.lua"/> |
||
5 | <Script file="localization.de.lua"/> |
||
6 | <Script file="localization.fr.lua"/> |
||
7 | <Script file="localization.kr.lua"/> |
||
8 | <Script file="localization.tw.lua"/> |
||
9 | <Script file="WIM_ChangeLog.lua"/> |
||
10 | <Script file="WIM.lua"/> |
||
11 | <Script file="WIM_Hooks.lua"/> |
||
12 | |||
13 | |||
14 | |||
15 | <Frame name="WIM_Core"> |
||
16 | <Scripts> |
||
17 | <OnLoad> |
||
18 | this:RegisterEvent("VARIABLES_LOADED"); |
||
19 | this:RegisterEvent("CHAT_MSG_AFK"); |
||
20 | this:RegisterEvent("CHAT_MSG_DND"); |
||
21 | this:RegisterEvent("CHAT_MSG_WHISPER"); |
||
22 | this:RegisterEvent("CHAT_MSG_WHISPER_INFORM"); |
||
23 | this:RegisterEvent("CHAT_MSG_SYSTEM"); |
||
24 | this:RegisterEvent("TRADE_SKILL_SHOW"); |
||
25 | this:RegisterEvent("CRAFT_SHOW"); |
||
26 | this:RegisterEvent("GUILD_ROSTER_UPDATE"); |
||
27 | this:RegisterEvent("FRIENDLIST_SHOW"); |
||
28 | this:RegisterEvent("FRIENDLIST_UPDATE"); |
||
29 | WIM_OnLoad(); |
||
30 | WIM_SetUpHooks(); |
||
31 | </OnLoad> |
||
32 | <OnEvent> |
||
33 | WIM_Incoming(event); |
||
34 | </OnEvent> |
||
35 | </Scripts> |
||
36 | </Frame> |
||
37 | |||
38 | <CheckButton name="WIM_ShortcutButtonTemplate" virtual="true"> |
||
39 | <Size> |
||
40 | <AbsDimension x="28" y="28"/> |
||
41 | </Size> |
||
42 | <Layers> |
||
43 | <Layer level="BACKGROUND"> |
||
44 | <Texture name="$parentIcon"/> |
||
45 | </Layer> |
||
46 | </Layers> |
||
47 | <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2"> |
||
48 | <Size> |
||
49 | <AbsDimension x="48" y="48"/> |
||
50 | </Size> |
||
51 | <Anchors> |
||
52 | <Anchor point="CENTER"> |
||
53 | <Offset> |
||
54 | <AbsDimension x="0" y="-1"/> |
||
55 | </Offset> |
||
56 | </Anchor> |
||
57 | </Anchors> |
||
58 | </NormalTexture> |
||
59 | <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/> |
||
60 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
61 | <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/> |
||
62 | <Scripts> |
||
63 | <OnLoad> |
||
64 | this:RegisterForClicks("LeftButtonUp"); |
||
65 | </OnLoad> |
||
66 | <OnClick> |
||
67 | this:SetChecked("0"); |
||
68 | WIM_ShorcutButton_Clicked(); |
||
69 | </OnClick> |
||
70 | <OnEnter> |
||
71 | if(WIM_Data.showToolTips == true) then |
||
72 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
73 | GameTooltip:SetText(this.tooltip); |
||
74 | end |
||
75 | </OnEnter> |
||
76 | <OnLeave> |
||
77 | GameTooltip:Hide(); |
||
78 | </OnLeave> |
||
79 | </Scripts> |
||
80 | </CheckButton> |
||
81 | |||
82 | |||
83 | <Frame name="WIM_msgFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" frameStrata="DIALOG" parent="UIParent" hidden="true" clampedToScreen="true"> |
||
84 | <Size> |
||
85 | <AbsDimension x="384" y="256"/> |
||
86 | </Size> |
||
87 | <Anchors> |
||
88 | <Anchor point="TOPLEFT"> |
||
89 | <Offset> |
||
90 | <AbsDimension x="25" y="-125"/> |
||
91 | </Offset> |
||
92 | </Anchor> |
||
93 | </Anchors> |
||
94 | <Backdrop bgFile="Interface\AddOns\WIM\Images\WIM_UI_BG" edgeFile="Interface\AddOns\WIM\Images\WIM_UI" tile="true"> |
||
95 | <BackgroundInsets> |
||
96 | <AbsInset left="64" right="64" top="64" bottom="64" /> |
||
97 | </BackgroundInsets> |
||
98 | <TileSize> |
||
99 | <AbsValue val="8" /> |
||
100 | </TileSize> |
||
101 | <EdgeSize> |
||
102 | <AbsValue val="64" /> |
||
103 | </EdgeSize> |
||
104 | </Backdrop> |
||
105 | <Layers> |
||
106 | <Layer level="BACKGROUND"> |
||
107 | <Texture name="$parentClassIcon" file="Interface\AddOns\WIM\Images\classBLANK"> |
||
108 | <Size> |
||
109 | <AbsDimension x="64" y="64"/> |
||
110 | </Size> |
||
111 | <Anchors> |
||
112 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> |
||
113 | <Offset> |
||
114 | <AbsDimension x="-10" y="12"/> |
||
115 | </Offset> |
||
116 | </Anchor> |
||
117 | </Anchors> |
||
118 | </Texture> |
||
119 | </Layer> |
||
120 | <Layer level="OVERLAY"> |
||
121 | <FontString name="$parentFrom" inherits="GameFontNormalLarge" text="abcdefghijklmnopqrstuvwxyz"> |
||
122 | <Anchors> |
||
123 | <Anchor point="TOPLEFT"> |
||
124 | <Offset> |
||
125 | <AbsDimension x="50" y="-6"/> |
||
126 | </Offset> |
||
127 | </Anchor> |
||
128 | </Anchors> |
||
129 | </FontString> |
||
130 | <FontString name="$parentCharacterDetails" inherits="GameFontNormal" text=""> |
||
131 | <Anchors> |
||
132 | <Anchor point="TOP"> |
||
133 | <Offset> |
||
134 | <AbsDimension x="0" y="-30"/> |
||
135 | </Offset> |
||
136 | </Anchor> |
||
137 | </Anchors> |
||
138 | </FontString> |
||
139 | </Layer> |
||
140 | </Layers> |
||
141 | <Frames> |
||
142 | <Button name="$parentExitButton"> |
||
143 | <Size> |
||
144 | <AbsDimension x="32" y="32"/> |
||
145 | </Size> |
||
146 | <Anchors> |
||
147 | <Anchor point="TOPRIGHT"> |
||
148 | <Offset> |
||
149 | <AbsDimension x="4" y="1"/> |
||
150 | </Offset> |
||
151 | </Anchor> |
||
152 | </Anchors> |
||
153 | <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/> |
||
154 | <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/> |
||
155 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight"/> |
||
156 | <Scripts> |
||
157 | <OnLoad> |
||
158 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
159 | </OnLoad> |
||
160 | <OnClick> |
||
161 | if(IsShiftKeyDown()) then |
||
162 | WIM_CloseConvo(this:GetParent().theUser); |
||
163 | else |
||
164 | this:GetParent():Hide(); |
||
165 | end |
||
166 | </OnClick> |
||
167 | <OnEnter> |
||
168 | if(WIM_Data.showToolTips == true) then |
||
169 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
170 | GameTooltip:SetText("Shift & Left-Click to end conversation."); |
||
171 | GameTooltip:SetPoint("BOTTOMRIGHT", this, "TOPRIGHT", 0, 0); |
||
172 | end |
||
173 | </OnEnter> |
||
174 | <OnLeave> |
||
175 | GameTooltip:Hide(); |
||
176 | </OnLeave> |
||
177 | </Scripts> |
||
178 | </Button> |
||
179 | <Button name="$parentHistoryButton" hidden="true"> |
||
180 | <Size> |
||
181 | <AbsDimension x="19" y="19"/> |
||
182 | </Size> |
||
183 | <Anchors> |
||
184 | <Anchor point="TOPRIGHT" relativeTo="$parentExitButton" relativePoint="TOPLEFT"> |
||
185 | <Offset> |
||
186 | <AbsDimension x="2" y="-6"/> |
||
187 | </Offset> |
||
188 | </Anchor> |
||
189 | </Anchors> |
||
190 | <NormalTexture file="Interface\Buttons\UI-GuildButton-PublicNote-Up"/> |
||
191 | <Scripts> |
||
192 | <OnLoad> |
||
193 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
194 | </OnLoad> |
||
195 | <OnClick> |
||
196 | WIM_HistoryView_Name_Selected = this:GetParent().theUser; |
||
197 | WIM_HistoryView_Filter_Selected = ""; |
||
198 | if(WIM_HistoryFrame:IsVisible()) then |
||
199 | WIM_HistoryViewNameScrollBar_Update(); |
||
200 | WIM_HistoryViewFiltersScrollBar_Update(); |
||
201 | else |
||
202 | WIM_HistoryFrame:Show(); |
||
203 | end |
||
204 | </OnClick> |
||
205 | <OnEnter> |
||
206 | if(WIM_Data.showToolTips == true) then |
||
207 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
208 | GameTooltip:SetText("Click to view message history."); |
||
209 | GameTooltip:SetPoint("BOTTOMRIGHT", this, "TOPRIGHT", 0, 0); |
||
210 | end |
||
211 | </OnEnter> |
||
212 | <OnLeave> |
||
213 | GameTooltip:Hide(); |
||
214 | </OnLeave> |
||
215 | </Scripts> |
||
216 | </Button> |
||
217 | |||
218 | |||
219 | <Button name="$parentScrollUp"> |
||
220 | <Size> |
||
221 | <AbsDimension x="32" y="32"/> |
||
222 | </Size> |
||
223 | <Anchors> |
||
224 | <Anchor point="TOPRIGHT"> |
||
225 | <Offset> |
||
226 | <AbsDimension x="-4" y="-39"/> |
||
227 | </Offset> |
||
228 | </Anchor> |
||
229 | </Anchors> |
||
230 | <NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Up"/> |
||
231 | <PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Down"/> |
||
232 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/> |
||
233 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Highlight"/> |
||
234 | <Scripts> |
||
235 | <OnLoad> |
||
236 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
237 | </OnLoad> |
||
238 | <OnClick> |
||
239 | if( IsShiftKeyDown() ) then |
||
240 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageUp(); |
||
241 | else |
||
242 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollUp(); |
||
243 | end |
||
244 | WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame")); |
||
245 | </OnClick> |
||
246 | </Scripts> |
||
247 | </Button> |
||
248 | <Button name="$parentScrollDown"> |
||
249 | <Size> |
||
250 | <AbsDimension x="32" y="32"/> |
||
251 | </Size> |
||
252 | <Anchors> |
||
253 | <Anchor point="BOTTOMRIGHT"> |
||
254 | <Offset> |
||
255 | <AbsDimension x="-4" y="24"/> |
||
256 | </Offset> |
||
257 | </Anchor> |
||
258 | </Anchors> |
||
259 | <NormalTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"/> |
||
260 | <PushedTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Down"/> |
||
261 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
||
262 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight"/> |
||
263 | <Scripts> |
||
264 | <OnLoad> |
||
265 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
266 | </OnLoad> |
||
267 | <OnClick> |
||
268 | if( IsShiftKeyDown() ) then |
||
269 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):PageDown(); |
||
270 | else |
||
271 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):ScrollDown(); |
||
272 | end |
||
273 | WIM_UpdateScrollBars(getglobal(this:GetParent():GetName().."ScrollingMessageFrame")); |
||
274 | </OnClick> |
||
275 | </Scripts> |
||
276 | </Button> |
||
277 | |||
278 | <ScrollingMessageFrame name="$parentScrollingMessageFrame" enableMouse="true" fade="false" maxLines="128" movable="true"> |
||
279 | <Anchors> |
||
280 | <Anchor point="TOPLEFT"> |
||
281 | <Offset> |
||
282 | <AbsDimension x="24" y="-46" /> |
||
283 | </Offset> |
||
284 | </Anchor> |
||
285 | <Anchor point="BOTTOMRIGHT"> |
||
286 | <Offset> |
||
287 | <AbsDimension x="-32" y="39" /> |
||
288 | </Offset> |
||
289 | </Anchor> |
||
290 | </Anchors> |
||
291 | <FontString font="Fonts\FRIZQT__.TTF" justifyH="LEFT"> |
||
292 | <FontHeight> |
||
293 | <AbsValue val="12" /> |
||
294 | </FontHeight> |
||
295 | <Color r="1" g="0.8196079" b="0" /> |
||
296 | <Shadow> |
||
297 | <Color r="0" g="0" b="0" /> |
||
298 | <Offset> |
||
299 | <AbsDimension x="1" y="-1" /> |
||
300 | </Offset> |
||
301 | </Shadow> |
||
302 | </FontString> |
||
303 | <TextInsets> |
||
304 | <AbsInset left="0" right="10" top="0" bottom="0" /> |
||
305 | </TextInsets> |
||
306 | <Scripts> |
||
307 | <OnMouseWheel> |
||
308 | if(arg1 > 0) then |
||
309 | if( IsShiftKeyDown() ) then |
||
310 | this:PageUp(); |
||
311 | else |
||
312 | this:ScrollUp(); |
||
313 | end |
||
314 | else |
||
315 | if( IsShiftKeyDown() ) then |
||
316 | this:PageDown(); |
||
317 | else |
||
318 | this:ScrollDown(); |
||
319 | end |
||
320 | end |
||
321 | </OnMouseWheel> |
||
322 | <OnHyperlinkClick> |
||
323 | ChatFrame_OnHyperlinkShow(arg1, arg2, arg3); |
||
324 | </OnHyperlinkClick> |
||
325 | <OnMessageScrollChanged> |
||
326 | WIM_UpdateScrollBars(this); |
||
327 | </OnMessageScrollChanged> |
||
328 | <OnMouseDown> |
||
329 | this:GetParent():StartMoving(); |
||
330 | this:GetParent().isMoving = true; |
||
331 | this:GetParent().prevLeft = this:GetParent():GetLeft(); |
||
332 | this:GetParent().prevTop = this:GetParent():GetTop(); |
||
333 | </OnMouseDown> |
||
334 | <OnMouseUp> |
||
335 | this:GetParent():StopMovingOrSizing(); |
||
336 | this:GetParent().isMoving = false; |
||
337 | if(this:GetParent().prevLeft == this:GetParent():GetLeft() and this:GetParent().prevTop == this:GetParent():GetTop()) then |
||
338 | --[ Frame was clicked not dragged |
||
339 | if(WIM_EditBoxInFocus == nil) then |
||
340 | getglobal(this:GetParent():GetName().."MsgBox"):SetFocus(); |
||
341 | else |
||
342 | if(WIM_EditBoxInFocus:GetName() == this:GetParent():GetName().."MsgBox") then |
||
343 | getglobal(this:GetParent():GetName().."MsgBox"):Hide(); |
||
344 | getglobal(this:GetParent():GetName().."MsgBox"):Show(); |
||
345 | else |
||
346 | getglobal(this:GetParent():GetName().."MsgBox"):SetFocus(); |
||
347 | end |
||
348 | end |
||
349 | end |
||
350 | </OnMouseUp> |
||
351 | </Scripts> |
||
352 | </ScrollingMessageFrame> |
||
353 | <EditBox name="$parentMsgBox" enableMouse="true" ignoreArrows="true" frameStrata="DIALOG" toplevel="true" historyLines="32" letters="255" autoFocus="false"> |
||
354 | <Anchors> |
||
355 | <Anchor point="TOPLEFT" relativeTo="$parentScrollingMessageFrame" relativePoint="BOTTOMLEFT"> |
||
356 | <Offset> |
||
357 | <AbsDimension x="-2" y="-5" /> |
||
358 | </Offset> |
||
359 | </Anchor> |
||
360 | <Anchor point="BOTTOMRIGHT"> |
||
361 | <Offset> |
||
362 | <AbsDimension x="-10" y="0" /> |
||
363 | </Offset> |
||
364 | </Anchor> |
||
365 | </Anchors> |
||
366 | <FontString font="Fonts\ARIALN.TTF"> |
||
367 | <FontHeight> |
||
368 | <AbsValue val="14" /> |
||
369 | </FontHeight> |
||
370 | <Color r="1" g="1" b="1" /> |
||
371 | <Shadow> |
||
372 | <Color r="0" g="0" b="0" /> |
||
373 | <Offset> |
||
374 | <AbsDimension x="1" y="-1" /> |
||
375 | </Offset> |
||
376 | </Shadow> |
||
377 | </FontString> |
||
378 | <Scripts> |
||
379 | <OnEnterPressed> |
||
380 | local _, tParent = this:GetParent(); |
||
381 | SendChatMessage(this:GetText(), "WHISPER", nil, this:GetParent().theUser); |
||
382 | |||
383 | this:AddHistoryLine(this:GetText()); |
||
384 | this:SetText(""); |
||
385 | if(not WIM_Data.keepFocus) then |
||
386 | this:Hide(); |
||
387 | this:Show(); |
||
388 | end |
||
389 | </OnEnterPressed> |
||
390 | <OnEscapePressed> |
||
391 | this:SetText(""); |
||
392 | this:Hide(); |
||
393 | this:Show(); |
||
394 | </OnEscapePressed> |
||
395 | <OnTabPressed> |
||
396 | --cycle through windows |
||
397 | </OnTabPressed> |
||
398 | <OnEditFocusGained> |
||
399 | WIM_EditBoxInFocus = this; |
||
400 | </OnEditFocusGained> |
||
401 | <OnEditFocusLost> |
||
402 | WIM_EditBoxInFocus = nil; |
||
403 | </OnEditFocusLost> |
||
404 | </Scripts> |
||
405 | </EditBox> |
||
406 | |||
407 | <Frame name="$parentShortcutFrame"> |
||
408 | <Size> |
||
409 | <AbsDimension x="100" y="100" /> |
||
410 | </Size> |
||
411 | <Anchors> |
||
412 | <Anchor point="TOPLEFT" relativeTo="$parentScrollUp" relativePoint="BOTTOMLEFT"> |
||
413 | <Offset> |
||
414 | <AbsDimension x="8" y="0" /> |
||
415 | </Offset> |
||
416 | </Anchor> |
||
417 | </Anchors> |
||
418 | <Frames> |
||
419 | <CheckButton name="$parentButton1" inherits="WIM_ShortcutButtonTemplate"> |
||
420 | <Anchors> |
||
421 | <Anchor point="TOPLEFT"> |
||
422 | <Offset> |
||
423 | <AbsDimension x="0" y="0"/> |
||
424 | </Offset> |
||
425 | </Anchor> |
||
426 | </Anchors> |
||
427 | </CheckButton> |
||
428 | <CheckButton name="$parentButton2" inherits="WIM_ShortcutButtonTemplate"> |
||
429 | <Anchors> |
||
430 | <Anchor point="TOPLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMLEFT"> |
||
431 | <Offset> |
||
432 | <AbsDimension x="0" y="-2"/> |
||
433 | </Offset> |
||
434 | </Anchor> |
||
435 | </Anchors> |
||
436 | </CheckButton> |
||
437 | <CheckButton name="$parentButton3" inherits="WIM_ShortcutButtonTemplate"> |
||
438 | <Anchors> |
||
439 | <Anchor point="TOPLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMLEFT"> |
||
440 | <Offset> |
||
441 | <AbsDimension x="0" y="-2"/> |
||
442 | </Offset> |
||
443 | </Anchor> |
||
444 | </Anchors> |
||
445 | </CheckButton> |
||
446 | <CheckButton name="$parentButton4" inherits="WIM_ShortcutButtonTemplate"> |
||
447 | <Anchors> |
||
448 | <Anchor point="TOPLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMLEFT"> |
||
449 | <Offset> |
||
450 | <AbsDimension x="0" y="-2"/> |
||
451 | </Offset> |
||
452 | </Anchor> |
||
453 | </Anchors> |
||
454 | </CheckButton> |
||
455 | <CheckButton name="$parentButton5" inherits="WIM_ShortcutButtonTemplate"> |
||
456 | <Anchors> |
||
457 | <Anchor point="TOPLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMLEFT"> |
||
458 | <Offset> |
||
459 | <AbsDimension x="0" y="-2"/> |
||
460 | </Offset> |
||
461 | </Anchor> |
||
462 | </Anchors> |
||
463 | </CheckButton> |
||
464 | </Frames> |
||
465 | </Frame> |
||
466 | <Frame name="$parentIgnoreConfirm" hidden="true" frameStrata="DIALOG"> |
||
467 | <Anchors> |
||
468 | <Anchor point="TOPLEFT" relativeTo="$parentScrollingMessageFrame" relativePoint="TOPLEFT"> |
||
469 | <Offset> |
||
470 | <AbsDimension x="-8" y="2" /> |
||
471 | </Offset> |
||
472 | </Anchor> |
||
473 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentScrollingMessageFrame" relativePoint="BOTTOMRIGHT"> |
||
474 | <Offset> |
||
475 | <AbsDimension x="-2" y="-10" /> |
||
476 | </Offset> |
||
477 | </Anchor> |
||
478 | </Anchors> |
||
479 | <Layers> |
||
480 | <Layer level="OVERLAY"> |
||
481 | <FontString name="$parentText" inherits="GameFontNormalLarge" text="Are you sure you want to ignore this user?"> |
||
482 | <Anchors> |
||
483 | <Anchor point="CENTER"> |
||
484 | <Offset> |
||
485 | <AbsDimension x="0" y="30"/> |
||
486 | </Offset> |
||
487 | </Anchor> |
||
488 | </Anchors> |
||
489 | </FontString> |
||
490 | </Layer> |
||
491 | </Layers> |
||
492 | <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
||
493 | <BackgroundInsets> |
||
494 | <AbsInset left="3" right="3" top="6" bottom="6" /> |
||
495 | </BackgroundInsets> |
||
496 | <TileSize> |
||
497 | <AbsValue val="8" /> |
||
498 | </TileSize> |
||
499 | <EdgeSize> |
||
500 | <AbsValue val="8" /> |
||
501 | </EdgeSize> |
||
502 | </Backdrop> |
||
503 | <Frames> |
||
504 | <Button name="$parentYes" inherits="UIPanelButtonTemplate" text="Yes"> |
||
505 | <Size> |
||
506 | <AbsDimension x="50" y="25"/> |
||
507 | </Size> |
||
508 | <Anchors> |
||
509 | <Anchor point="CENTER"> |
||
510 | <Offset> |
||
511 | <AbsDimension x="-30" y="-10"/> |
||
512 | </Offset> |
||
513 | </Anchor> |
||
514 | </Anchors> |
||
515 | <Scripts> |
||
516 | <OnClick> |
||
517 | PlaySound("igMainMenuClose"); |
||
518 | AddIgnore(this:GetParent():GetParent().theUser); |
||
519 | this:GetParent():Hide(); |
||
520 | </OnClick> |
||
521 | </Scripts> |
||
522 | </Button> |
||
523 | <Button name="$parentNo" inherits="UIPanelButtonTemplate" text="No"> |
||
524 | <Size> |
||
525 | <AbsDimension x="50" y="25"/> |
||
526 | </Size> |
||
527 | <Anchors> |
||
528 | <Anchor point="CENTER"> |
||
529 | <Offset> |
||
530 | <AbsDimension x="30" y="-10"/> |
||
531 | </Offset> |
||
532 | </Anchor> |
||
533 | </Anchors> |
||
534 | <Scripts> |
||
535 | <OnClick> |
||
536 | PlaySound("igMainMenuClose"); |
||
537 | this:GetParent():Hide(); |
||
538 | </OnClick> |
||
539 | </Scripts> |
||
540 | </Button> |
||
541 | </Frames> |
||
542 | <Scripts> |
||
543 | <OnShow> |
||
544 | PlaySound("igMainMenuOpen"); |
||
545 | getglobal(this:GetName().."Text"):SetText("Are you sure you want to\nignore this user?"); |
||
546 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):SetFrameStrata("LOW"); |
||
547 | </OnShow> |
||
548 | <OnHide> |
||
549 | getglobal(this:GetParent():GetName().."ScrollingMessageFrame"):SetFrameStrata("DIALOG"); |
||
550 | </OnHide> |
||
551 | </Scripts> |
||
552 | </Frame> |
||
553 | </Frames> |
||
554 | <Scripts> |
||
555 | <OnLoad> |
||
556 | tinsert(UISpecialFrames,this:GetName()); |
||
557 | this:RegisterForDrag("LeftButton"); |
||
558 | </OnLoad> |
||
559 | <OnDragStart> |
||
560 | this:StartMoving(); |
||
561 | this.isMoving = true; |
||
562 | </OnDragStart> |
||
563 | <OnDragStop> |
||
564 | this:StopMovingOrSizing(); |
||
565 | this.isMoving = false; |
||
566 | </OnDragStop> |
||
567 | <OnShow> |
||
568 | local user = this.theUser; |
||
569 | WIM_Windows[user].newMSG = false; |
||
570 | WIM_Windows[user].is_visible = true; |
||
571 | if(WIM_Data.autoFocus == true) then |
||
572 | getglobal(this:GetName().."MsgBox"):SetFocus(); |
||
573 | end |
||
574 | WIM_LoadShortcutFrame(); |
||
575 | </OnShow> |
||
576 | <OnHide> |
||
577 | getglobal(this:GetName().."IgnoreConfirm"):Hide(); |
||
578 | local user = this.theUser; |
||
579 | WIM_Windows[user].is_visible = false; |
||
580 | WIM_Windows[user].newMSG = false; |
||
581 | </OnHide> |
||
582 | </Scripts> |
||
583 | </Frame> |
||
584 | |||
585 | |||
586 | </Ui> |