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/"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/
4 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
5  
6 <Frame name="LazyRogueFormEditFrame" toplevel="true" enableMouse="true" resizable="true" movable="true" parent="UIParent" hidden="true">
7 <Size>
8 <AbsDimension x="500" y="430"/>
9 </Size>
10 <Anchors>
11 <Anchor point="CENTER"/>
12 </Anchors>
13  
14 <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
15 edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
16 <EdgeSize>
17 <AbsValue val="32"/>
18 </EdgeSize>
19 <TileSize>
20 <AbsValue val="32"/>
21 </TileSize>
22 <BackgroundInsets>
23 <AbsInset left="5" right="5" top="5" bottom="5"/>
24 </BackgroundInsets>
25 </Backdrop>
26  
27 <Layers>
28 <Layer level="ARTWORK">
29  
30 <FontString name="$parentTitle" inherits="GameFontHighlightLarge" justifyH="CENTER" text="LazyRogue Form Editor">
31 <Size>
32 <AbsDimension x="200" y="15"/>
33 </Size>
34 <Anchors>
35 <Anchor point="CENTER" relativeTo="$parent" relativePoint="TOP">
36 <Offset>
37 <AbsDimension x="0" y="-20"/>
38 </Offset>
39 </Anchor>
40 </Anchors>
41 </FontString>
42  
43 <FontString name="$parentFormNameDescr" inherits="GameFontHighlight" justifyH="LEFT" text="Editing form:">
44 <Size>
45 <AbsDimension x="85" y="18"/>
46 </Size>
47 <Anchors>
48 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
49 <Offset>
50 <AbsDimension x="15" y="-41"/>
51 </Offset>
52 </Anchor>
53 </Anchors>
54 </FontString>
55  
56 </Layer>
57 </Layers>
58  
59 <Frames>
60  
61 <Frame name="LR_Frame_Resize" virtual="true">
62 - <Scripts>
63 <OnMouseUp>
64 if ( this:GetParent().isResizing ) then
65 this:GetParent():StopMovingOrSizing();
66 LazyRogueFormScrollFrame:SetWidth(this:GetParent():GetWidth()-50);
67 LazyRogueFormEditFrameForm:SetWidth(LazyRogueFormScrollFrame:GetWidth()-50);
68 LazyRogueFormScrollFrame:SetHeight(this:GetParent():GetHeight()-110);
69 LazyRogueFormEditFrameForm:SetHeight(LazyRogueFormScrollFrame:GetHeight()-110);
70 LazyRogueFormScrollFrame:Show();
71 this:GetParent().isResizing = false;
72 end
73 </OnMouseUp>
74 <OnMouseDown>
75 if arg1 == "LeftButton" then
76 LazyRogueFormScrollFrame:Hide();
77 this:GetParent():SetMinResize(350,150);
78 this:GetParent():StartSizing("BOTTOMRIGHT");
79 this:GetParent().isResizing = true
80 end
81 </OnMouseDown>
82 </Scripts>
83 - <Size>
84 <AbsDimension x="16" y="16" />
85 </Size>
86 - <Anchors>
87 - <Anchor point="BOTTOMRIGHT">
88 - <Offset>
89 <AbsDimension x="-6" y="6" />
90 </Offset>
91 </Anchor>
92 </Anchors>
93 - <Layers>
94 - <Layer level="BACKGROUND">
95 - <Texture file="Interface\AddOns\LazyRogue\img\corner" alphaMode="ADD">
96 - <Anchors>
97 - <Anchor point="TOPLEFT">
98 - <Offset>
99 <AbsDimension x="0" y="0" />
100 </Offset>
101 </Anchor>
102 - <Anchor point="BOTTOMRIGHT">
103 - <Offset>
104 <AbsDimension x="0" y="0" />
105 </Offset>
106 </Anchor>
107 </Anchors>
108 </Texture>
109 </Layer>
110 </Layers>
111 </Frame>
112  
113  
114 <ScrollFrame name="LazyRogueFormScrollFrame" inherits="UIPanelScrollFrameTemplate" resizable="true" >
115 <Size>
116 <AbsDimension x="450" y="320"/>
117 </Size>
118 <Anchors>
119 <Anchor point="TOPLEFT">
120 <Offset>
121 <AbsDimension x="15" y="-70"/>
122 </Offset>
123 </Anchor>
124 </Anchors>
125  
126 <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
127 edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true" alpha="1.0">
128 <EdgeSize>
129 <AbsValue val="8"/>
130 </EdgeSize>
131 <TileSize>
132 <AbsValue val="8"/>
133 </TileSize>
134 <BackgroundInsets>
135 <AbsInset left="0" right="0" top="0" bottom="0"/>
136 </BackgroundInsets>
137 </Backdrop>
138  
139  
140 <ScrollChild>
141 <Frame name="$parentScrollChild" resizable="true" >
142 <Size>
143 <AbsDimension x="435" y="310"/>
144 </Size>
145 <Anchors>
146 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
147 <Offset>
148 <AbsDimension x="5" y="-5"/>
149 </Offset>
150 </Anchor>
151 </Anchors>
152 <Frames>
153  
154  
155 <EditBox name="LazyRogueFormEditFrameForm" letters="7000" resizable="true" enableMouse="true" autoFocus="true" multiLine="true">
156 <Size>
157 <AbsDimension x="435" y="310"/>
158 </Size>
159 <Anchors>
160 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
161 <Offset>
162 <AbsDimension x="5" y="-5"/>
163 </Offset>
164 </Anchor>
165 </Anchors>
166  
167 <Scripts>
168 <OnEscapePressed>
169 HideUIPanel(LazyRogueFormEditFrame)
170 HideUIPanel(LazyRogueFormHelp)
171 </OnEscapePressed>
172 <OnEnterPressed>
173 HideUIPanel(LazyRogueFormEditFrame)
174 HideUIPanel(LazyRogueFormHelp)
175 </OnEnterPressed>
176 <OnTabPressed>
177 LazyRogueFormEditFrameFormName:SetFocus()
178 </OnTabPressed>
179 <OnClick>
180 this:SetFocus()
181 </OnClick>
182 <OnShow>
183 LAZYROGUEHELP_SCROLLBAR_HACK2 = false
184 </OnShow>
185 <OnMouseUp>
186 LAZYROGUEHELP_SCROLLBAR_HACK2 = true
187 </OnMouseUp>
188 <OnTextChanged>
189 ScrollingEdit_OnTextChanged(LazyRogueFormScrollFrame)
190 </OnTextChanged>
191 <OnCursorChanged>
192 ScrollingEdit_OnCursorChanged(arg1, arg2-10, arg3, arg4)
193 </OnCursorChanged>
194 <OnUpdate>
195 if (LAZYROGUEHELP_SCROLLBAR_HACK2) then
196 ScrollingEdit_OnUpdate(LazyRogueFormScrollFrame)
197 end
198 </OnUpdate>
199  
200 </Scripts>
201 <FontString inherits="GameFontHighlight"/>
202 <Color r=".2" g=".2" b=".2" />
203 </EditBox>
204 </Frames>
205 </Frame>
206 </ScrollChild>
207 <Scripts>
208 <OnClick>
209 LazyRogueFormEditFrameForm:SetFocus()
210 </OnClick>
211 </Scripts>
212 </ScrollFrame>
213  
214  
215 <EditBox name="$parentFormName" letters="24" resizable="true" enableMouse="true">
216 <Size>
217 <AbsDimension x="150" y="25"/>
218 </Size>
219 <Anchors>
220 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
221 <Offset>
222 <AbsDimension x="110" y="-40"/>
223 </Offset>
224 </Anchor>
225 </Anchors>
226  
227 <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
228 edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true" alpha="1.0">
229 <EdgeSize>
230 <AbsValue val="4"/>
231 </EdgeSize>
232 <TileSize>
233 <AbsValue val="4"/>
234 </TileSize>
235 <BackgroundInsets>
236 <AbsInset left="0" right="0" top="0" bottom="0"/>
237 </BackgroundInsets>
238 </Backdrop>
239  
240 <Scripts>
241 <OnEscapePressed>
242 HideUIPanel(LazyRogueFormEditFrame)
243 HideUIPanel(LazyRogueFormHelp)
244 </OnEscapePressed>
245 <OnEnterPressed>
246 HideUIPanel(LazyRogueFormEditFrame)
247 HideUIPanel(LazyRogueFormHelp)
248 </OnEnterPressed>
249 <OnTabPressed>
250 LazyRogueFormEditFrameForm:SetFocus()
251 </OnTabPressed>
252 <OnClick>
253 this:SetFocus()
254 </OnClick>
255 </Scripts>
256 <FontString inherits="GameFontHighlight"/>
257 <Color r=".2" g=".2" b=".2" />
258 </EditBox>
259  
260  
261 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
262 <Anchors>
263 <Anchor point="TOPRIGHT">
264 <Offset>
265 <AbsDimension x="-5" y="-5"/>
266 </Offset>
267 </Anchor>
268 </Anchors>
269 <Scripts>
270 <OnClick>
271 HideUIPanel(LazyRogueFormEditFrame)
272 HideUIPanel(LazyRogueFormHelp)
273 </OnClick>
274 </Scripts>
275 </Button>
276  
277 <Button name="$parentHelpButton" inherits="GameMenuButtonTemplate" text="Help">
278 <Size>
279 <AbsDimension x="100" y="25"/>
280 </Size>
281 <Anchors>
282 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
283 <Offset>
284 <AbsDimension x="10" y="10"/>
285 </Offset>
286 </Anchor>
287 </Anchors>
288 <Scripts>
289 <OnClick>
290 if (LazyRogueFormHelp:IsVisible()) then
291 LazyRogueFormHelp:Hide()
292 else
293 LazyRogueFormHelp:Show()
294 end
295 </OnClick>
296 </Scripts>
297 </Button>
298  
299 <Button name="$parentCancelButton" inherits="GameMenuButtonTemplate" text="Cancel">
300 <Size>
301 <AbsDimension x="100" y="25"/>
302 </Size>
303 <Anchors>
304 <Anchor point="BOTTOMRIGHT">
305 <Offset>
306 <AbsDimension x="-10" y="10"/>
307 </Offset>
308 </Anchor>
309 </Anchors>
310 <Scripts>
311 <OnClick>
312 lazyr.lreb.cancelEdit = true
313 HideUIPanel(LazyRogueFormEditFrame)
314 HideUIPanel(LazyRogueFormHelp)
315 </OnClick>
316 </Scripts>
317 </Button>
318  
319 <Button name="$parentOkayButton" inherits="GameMenuButtonTemplate" text="Okay">
320 <Size>
321 <AbsDimension x="100" y="25"/>
322 </Size>
323 <Anchors>
324 <Anchor point="RIGHT" relativeTo="$parentCancelButton" relativePoint="LEFT">
325 <Offset>
326 <AbsDimension x="0" y="0"/>
327 </Offset>
328 </Anchor>
329 </Anchors>
330 <Scripts>
331 <OnClick>
332 HideUIPanel(LazyRogueFormEditFrame)
333 HideUIPanel(LazyRogueFormHelp)
334 </OnClick>
335 </Scripts>
336 </Button>
337  
338 </Frames>
339  
340 <Scripts>
341 <OnShow>
342 lazyr.lreb.OnShow()
343 </OnShow>
344 <OnHide>
345 lazyr.lreb.OnHide()
346 </OnHide>
347 <OnLoad>
348 this:RegisterForDrag("LeftButton")
349 </OnLoad>
350 <OnDragStart>
351 this:StartMoving()
352 </OnDragStart>
353 <OnDragStop>
354 this:StopMovingOrSizing()
355 </OnDragStop>
356 <OnMouseUp>
357 this:StopMovingOrSizing()
358 </OnMouseUp>
359 </Scripts>
360  
361 </Frame>
362  
363 <Frame name="LazyRogueFormHelp" enableMouse="true" movable="true" parent="UIParent" hidden="true">
364 <Size>
365 <AbsDimension x="400" y="480"/>
366 </Size>
367 <Anchors>
368 <Anchor point="LEFT"/>
369 <Offset>
370 <AbsDimension x="25" y="0"/>
371 </Offset>
372 </Anchors>
373  
374 <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground"
375 edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
376 <EdgeSize>
377 <AbsValue val="32"/>
378 </EdgeSize>
379 <TileSize>
380 <AbsValue val="32"/>
381 </TileSize>
382 <BackgroundInsets>
383 <AbsInset left="5" right="5" top="5" bottom="5"/>
384 </BackgroundInsets>
385 </Backdrop>
386  
387 <Scripts>
388 <OnLoad>
389 this:RegisterForDrag("LeftButton")
390 </OnLoad>
391 <OnDragStart>
392 this:StartMoving()
393 </OnDragStart>
394 <OnDragStop>
395 this:StopMovingOrSizing()
396 </OnDragStop>
397 <OnMouseUp>
398 this:StopMovingOrSizing()
399 </OnMouseUp>
400 </Scripts>
401  
402 <Layers>
403 <Layer level="BACKGROUND">
404 <FontString name="$parentTitle" inherits="GameFontHighlightLarge" justifyH="CENTER" text="LazyRogue Help">
405 <Size>
406 <AbsDimension x="150" y="18"/>
407 </Size>
408 <Anchors>
409 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
410 <Offset>
411 <AbsDimension x="20" y="-20"/>
412 </Offset>
413 </Anchor>
414 </Anchors>
415 </FontString>
416 </Layer>
417 </Layers>
418  
419 <Frames>
420 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
421 <Anchors>
422 <Anchor point="TOPRIGHT">
423 <Offset>
424 <AbsDimension x="-4" y="-4"/>
425 </Offset>
426 </Anchor>
427 </Anchors>
428 <Scripts>
429 <OnClick>
430 HideUIPanel(LazyRogueFormHelp)
431 </OnClick>
432 </Scripts>
433 </Button>
434  
435 <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
436 <Size>
437 <AbsDimension x="360" y="420"/>
438 </Size>
439 <Anchors>
440 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
441 <Offset>
442 <AbsDimension x="10" y="-50"/>
443 </Offset>
444 </Anchor>
445 </Anchors>
446  
447 <ScrollChild>
448 <Frame name="$parentScrollChild">
449 <Size>
450 <AbsDimension x="360" y="420"/>
451 </Size>
452 <Anchors>
453 <Anchor point="TOPLEFT">
454 <Offset>
455 <AbsDimension x="0" y="0"/>
456 </Offset>
457 </Anchor>
458 </Anchors>
459  
460 <Frames>
461 <EditBox name="$parentText" letters="4000" multiLine="true" enableMouse="true" autoFocus="false">
462 <Size>
463 <AbsDimension x="340" y="420"/>
464 </Size>
465 <Anchors>
466 <Anchor point="TOPLEFT">
467 <Offset>
468 <AbsDimension x="10" y="-10"/>
469 </Offset>
470 </Anchor>
471 </Anchors>
472 <Scripts>
473 <OnShow>
474 lazyr.PopulateHelpText()
475 LAZYROGUEHELP_SCROLLBAR_HACK = false
476 </OnShow>
477 <OnEscapePressed>
478 HideUIPanel(LazyRogueFormHelp)
479 </OnEscapePressed>
480 <OnMouseUp>
481 LAZYROGUEHELP_SCROLLBAR_HACK = true
482 </OnMouseUp>
483 <OnTextChanged>
484 ScrollingEdit_OnTextChanged(LazyRogueFormHelpScrollFrame)
485 </OnTextChanged>
486 <OnCursorChanged>
487 ScrollingEdit_OnCursorChanged(arg1, arg2-10, arg3, arg4)
488 </OnCursorChanged>
489 <OnUpdate>
490 if (LAZYROGUEHELP_SCROLLBAR_HACK) then
491 ScrollingEdit_OnUpdate(LazyRogueFormHelpScrollFrame)
492 end
493 </OnUpdate>
494 </Scripts>
495 <FontString inherits="GameFontHighlight"/>
496 </EditBox>
497 </Frames>
498 <Scripts>
499 <OnMouseUp>
500 LazyRogueFormHelpScrollFrameScrollChildText:SetFocus()
501 </OnMouseUp>
502 </Scripts>
503 </Frame>
504 </ScrollChild>
505 </ScrollFrame>
506  
507 </Frames>
508  
509 </Frame>
510  
511 </Ui>
512