vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <!-- |
2 | KLHThreatMeter KTM_OptionsFrame.xml |
||
3 | |||
4 | A GUI for viewing and editing options for the main KTM GUI. The options are |
||
5 | divided into three sections, General, Self and Raid. Each section has its own |
||
6 | frame and components; only one frame is visible at a time. There is also a |
||
7 | controls frame for changing frames and closing the options GUI. |
||
8 | --> |
||
9 | |||
10 | <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
11 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> |
||
12 | |||
13 | <!-- The font used by the check buttons --> |
||
14 | <FontString name="KLHTM_OptionsDefaultFont" inherits="GameFontNormal" virtual="true"> |
||
15 | <Color r="1.0" g="1.0" b="1.0"/> |
||
16 | </FontString> |
||
17 | |||
18 | <!-- The font used by most strings --> |
||
19 | <FontString name="KLHTM_OptionsStringFont" inherits="KLHTM_OptionsDefaultFont" virtual="true"/> |
||
20 | |||
21 | <!-- The font used by the headings --> |
||
22 | <FontString name="KLHTM_OptionsHeaderFont" inherits="KLHTM_OptionsDefaultFont" virtual="true"> |
||
23 | <Color r="1.0" g="0.82" b="0"/> |
||
24 | </FontString> |
||
25 | |||
26 | |||
27 | <!-- a layout frame for header strings --> |
||
28 | <Frame name="KLHTM_OptionsHeaderTemplate" virtual="true"> |
||
29 | <Size> |
||
30 | <AbsDimension x="100" y="16"/> |
||
31 | </Size> |
||
32 | <Layers> |
||
33 | <Layer level="BORDER"> |
||
34 | <FontString name="$parentText" inherits="KLHTM_OptionsHeaderFont"> |
||
35 | <Anchors> |
||
36 | <Anchor point="TOPLEFT"/> |
||
37 | </Anchors> |
||
38 | </FontString> |
||
39 | </Layer> |
||
40 | </Layers> |
||
41 | </Frame> |
||
42 | |||
43 | <!-- a template for all the check buttons --> |
||
44 | <CheckButton name="KLHTM_CheckButtonTemplate" virtual="true"> |
||
45 | <Size> |
||
46 | <AbsDimension x="20" y="20"/> |
||
47 | </Size> |
||
48 | <Layers> |
||
49 | <Layer level="ARTWORK"> |
||
50 | <FontString name="$parentText" inherits="KLHTM_OptionsStringFont"> |
||
51 | <Anchors> |
||
52 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
53 | <Offset> |
||
54 | <AbsDimension x="-2" y="0"/> |
||
55 | </Offset> |
||
56 | </Anchor> |
||
57 | </Anchors> |
||
58 | </FontString> |
||
59 | </Layer> |
||
60 | </Layers> |
||
61 | <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/> |
||
62 | <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/> |
||
63 | <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/> |
||
64 | <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/> |
||
65 | <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/> |
||
66 | </CheckButton> |
||
67 | |||
68 | <!-- a template for the control buttons --> |
||
69 | <Button name="KLHTM_OptionsButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true"> |
||
70 | <Size> |
||
71 | <AbsDimension x="73" y="22"/> |
||
72 | </Size> |
||
73 | </Button> |
||
74 | |||
75 | <!-- a template for sliders --> |
||
76 | <Slider name="KLHTM_OptionsSliderTemplate" orientation="HORIZONTAL" enableMouse="true" virtual="true"> |
||
77 | <Size> |
||
78 | <AbsDimension x="140" y="18"/> |
||
79 | </Size> |
||
80 | <HitRectInsets> |
||
81 | <AbsInset left="0" right="0" top="-5" bottom="-5"/> |
||
82 | </HitRectInsets> |
||
83 | <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
||
84 | <EdgeSize> |
||
85 | <AbsValue val="8"/> |
||
86 | </EdgeSize> |
||
87 | <TileSize> |
||
88 | <AbsValue val="8"/> |
||
89 | </TileSize> |
||
90 | <BackgroundInsets> |
||
91 | <AbsInset left="3" right="3" top="6" bottom="6"/> |
||
92 | </BackgroundInsets> |
||
93 | </Backdrop> |
||
94 | <Layers> |
||
95 | <Layer level="ARTWORK"> |
||
96 | <!-- A description of the slider --> |
||
97 | <FontString name="$parentText" inherits="KLHTM_OptionsStringFont"> |
||
98 | <Anchors> |
||
99 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
||
100 | <Offset> |
||
101 | <AbsDimension x="0" y="2"/> |
||
102 | </Offset> |
||
103 | </Anchor> |
||
104 | </Anchors> |
||
105 | </FontString> |
||
106 | <!-- The current value --> |
||
107 | <FontString name="$parentValue" inherits="KLHTM_OptionsStringFont"> |
||
108 | <Anchors> |
||
109 | <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"> |
||
110 | <Offset> |
||
111 | <AbsDimension x="0" y="2"/> |
||
112 | </Offset> |
||
113 | </Anchor> |
||
114 | </Anchors> |
||
115 | </FontString> |
||
116 | </Layer> |
||
117 | </Layers> |
||
118 | <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> |
||
119 | <Size> |
||
120 | <AbsDimension x="32" y="32"/> |
||
121 | </Size> |
||
122 | </ThumbTexture> |
||
123 | </Slider> |
||
124 | |||
125 | <!-- a template for the main subframes - ie self, raid, general etc --> |
||
126 | <Frame name="KLHTM_OptionsFrameTemplate" virtual="true"> |
||
127 | <Size> |
||
128 | <AbsDimension x="250" y="150"/> |
||
129 | </Size> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentTitle"> |
||
132 | <Offset x="0" y="-5"/> |
||
133 | </Anchor> |
||
134 | </Anchors> |
||
135 | </Frame> |
||
136 | |||
137 | <!-- The base frame for the options gui --> |
||
138 | <Frame name="KLHTM_OptionsFrame" parent="UIParent" hidden="true" enableMouse="true" movable="true" toplevel="true"> |
||
139 | <Anchors> |
||
140 | <Anchor point="CENTER"/> |
||
141 | </Anchors> |
||
142 | <Size> |
||
143 | <AbsDimension x="300" y="240"/> |
||
144 | </Size> |
||
145 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
146 | <EdgeSize> |
||
147 | <AbsValue val="16"/> |
||
148 | </EdgeSize> |
||
149 | <TileSize> |
||
150 | <AbsValue val="16"/> |
||
151 | </TileSize> |
||
152 | <BackgroundInsets> |
||
153 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
154 | </BackgroundInsets> |
||
155 | </Backdrop> |
||
156 | <Scripts> |
||
157 | <OnDragStart> |
||
158 | KLHTM_OptionsFrame:StartMoving(); |
||
159 | </OnDragStart> |
||
160 | <OnDragStop> |
||
161 | KLHTM_OptionsFrame:StopMovingOrSizing(); |
||
162 | </OnDragStop> |
||
163 | </Scripts> |
||
164 | <Frames> |
||
165 | |||
166 | <!-- Title bar --> |
||
167 | <Frame name="$parentTitle"> |
||
168 | <Size> |
||
169 | <AbsDimension x="290" y="15"/> |
||
170 | </Size> |
||
171 | <Anchors> |
||
172 | <Anchor point="TOPLEFT"> |
||
173 | <Offset x="5" y="-5"/> |
||
174 | </Anchor> |
||
175 | <Anchor point="TOPRIGHT"> |
||
176 | <Offset x="-5" y="-5"/> |
||
177 | </Anchor> |
||
178 | </Anchors> |
||
179 | <Layers> |
||
180 | <Layer level="BORDER"> |
||
181 | <!-- The title bar background --> |
||
182 | <Texture name="$parentBackground"> |
||
183 | <Anchors> |
||
184 | <Anchor point="TOPLEFT"> |
||
185 | <Offset x="-1" y="1"/> |
||
186 | </Anchor> |
||
187 | <Anchor point="BOTTOMRIGHT"> |
||
188 | <Offset x="1" y="0"/> |
||
189 | </Anchor> |
||
190 | </Anchors> |
||
191 | <Color r="1.0" g="1.0" b="1.0" a="1.0"/> |
||
192 | </Texture> |
||
193 | <!-- title bar text --> |
||
194 | <FontString name="$parentText" inherits="GameFontNormal"> |
||
195 | <Anchors> |
||
196 | <Anchor point="CENTER"/> |
||
197 | </Anchors> |
||
198 | <FontHeight> |
||
199 | <AbsValue val="10"/> |
||
200 | </FontHeight> |
||
201 | </FontString> |
||
202 | </Layer> |
||
203 | <Layer level="BACKGROUND"> |
||
204 | <!-- a dividing line between the title bar and the options --> |
||
205 | <Texture name="$parentLine" file="Interface\TradeSkillFrame\UI-TradeSkill-SkillBorder"> |
||
206 | <Anchors> |
||
207 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
||
208 | <Offset> |
||
209 | <AbsDimension x="-1" y="3"/> |
||
210 | </Offset> |
||
211 | </Anchor> |
||
212 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
213 | <Offset> |
||
214 | <AbsDimension x="1" y="-4"/> |
||
215 | </Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | <TexCoords left="0.1" right="1.0" top="0" bottom="0.25"/> |
||
219 | </Texture> |
||
220 | </Layer> |
||
221 | </Layers> |
||
222 | </Frame> |
||
223 | |||
224 | <!-- General options --> |
||
225 | <Frame name="$parentGeneral" inherits="KLHTM_OptionsFrameTemplate"> |
||
226 | |||
227 | <Frames> |
||
228 | <!-- minimised button visibility --> |
||
229 | <Frame name="$parentMinimisedHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
230 | <Anchors> |
||
231 | <Anchor point="TOPLEFT"/> |
||
232 | </Anchors> |
||
233 | </Frame> |
||
234 | |||
235 | <CheckButton name="$parentMinimisedPin" inherits="KLHTM_CheckButtonTemplate"> |
||
236 | <Anchors> |
||
237 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedHeader" relativePoint="BOTTOMLEFT"> |
||
238 | <Offset x="0" y="0"/> |
||
239 | </Anchor> |
||
240 | </Anchors> |
||
241 | <Scripts> |
||
242 | <OnClick> KLHTM_OptionsGeneral_OnClick("MinimisedPin"); </OnClick> |
||
243 | </Scripts> |
||
244 | </CheckButton> |
||
245 | |||
246 | <CheckButton name="$parentMinimisedOptions" inherits="KLHTM_CheckButtonTemplate"> |
||
247 | <Anchors> |
||
248 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedPin" relativePoint="BOTTOMLEFT"> |
||
249 | <Offset x="0" y="0"/> |
||
250 | </Anchor> |
||
251 | </Anchors> |
||
252 | <Scripts> |
||
253 | <OnClick> KLHTM_OptionsGeneral_OnClick("MinimisedOptions"); </OnClick> |
||
254 | </Scripts> |
||
255 | </CheckButton> |
||
256 | |||
257 | <CheckButton name="$parentMinimisedView" inherits="KLHTM_CheckButtonTemplate"> |
||
258 | <Anchors> |
||
259 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedOptions" relativePoint="BOTTOMLEFT"> |
||
260 | <Offset x="0" y="0"/> |
||
261 | </Anchor> |
||
262 | </Anchors> |
||
263 | <Scripts> |
||
264 | <OnClick> KLHTM_OptionsGeneral_OnClick("MinimisedView"); </OnClick> |
||
265 | </Scripts> |
||
266 | </CheckButton> |
||
267 | |||
268 | <CheckButton name="$parentMinimisedMasterTarget" inherits="KLHTM_CheckButtonTemplate"> |
||
269 | <Anchors> |
||
270 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedView" relativePoint="BOTTOMLEFT"> |
||
271 | <Offset x="0" y="0"/> |
||
272 | </Anchor> |
||
273 | </Anchors> |
||
274 | <Scripts> |
||
275 | <OnClick> KLHTM_OptionsGeneral_OnClick("MinimisedMasterTarget"); </OnClick> |
||
276 | </Scripts> |
||
277 | </CheckButton> |
||
278 | |||
279 | <CheckButton name="$parentMinimisedClearThreat" inherits="KLHTM_CheckButtonTemplate"> |
||
280 | <Anchors> |
||
281 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedMasterTarget" relativePoint="BOTTOMLEFT"> |
||
282 | <Offset x="0" y="0"/> |
||
283 | </Anchor> |
||
284 | </Anchors> |
||
285 | <Scripts> |
||
286 | <OnClick> KLHTM_OptionsGeneral_OnClick("MinimisedClearThreat"); </OnClick> |
||
287 | </Scripts> |
||
288 | </CheckButton> |
||
289 | |||
290 | <!-- Maximised button visibility --> |
||
291 | <Frame name="$parentMaximisedHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
292 | <Anchors> |
||
293 | <Anchor point="TOPLEFT"> |
||
294 | <Offset x="135" y="0"/> |
||
295 | </Anchor> |
||
296 | </Anchors> |
||
297 | </Frame> |
||
298 | |||
299 | <CheckButton name="$parentMaximisedPin" inherits="KLHTM_CheckButtonTemplate"> |
||
300 | <Anchors> |
||
301 | <Anchor point="TOPLEFT" relativeTo="$parentMaximisedHeader" relativePoint="BOTTOMLEFT"> |
||
302 | <Offset x="0" y="0"/> |
||
303 | </Anchor> |
||
304 | </Anchors> |
||
305 | <Scripts> |
||
306 | <OnClick> KLHTM_OptionsGeneral_OnClick("MaximisedPin"); </OnClick> |
||
307 | </Scripts> |
||
308 | </CheckButton> |
||
309 | |||
310 | <CheckButton name="$parentMaximisedView" inherits="KLHTM_CheckButtonTemplate"> |
||
311 | <Anchors> |
||
312 | <Anchor point="TOPLEFT" relativeTo="$parentMaximisedPin" relativePoint="BOTTOMLEFT"> |
||
313 | <Offset x="0" y="0"/> |
||
314 | </Anchor> |
||
315 | </Anchors> |
||
316 | <Scripts> |
||
317 | <OnClick> KLHTM_OptionsGeneral_OnClick("MaximisedView"); </OnClick> |
||
318 | </Scripts> |
||
319 | </CheckButton> |
||
320 | |||
321 | <CheckButton name="$parentMaximisedMasterTarget" inherits="KLHTM_CheckButtonTemplate"> |
||
322 | <Anchors> |
||
323 | <Anchor point="TOPLEFT" relativeTo="$parentMaximisedView" relativePoint="BOTTOMLEFT"> |
||
324 | <Offset x="0" y="0"/> |
||
325 | </Anchor> |
||
326 | </Anchors> |
||
327 | <Scripts> |
||
328 | <OnClick> KLHTM_OptionsGeneral_OnClick("MaximisedMasterTarget"); </OnClick> |
||
329 | </Scripts> |
||
330 | </CheckButton> |
||
331 | |||
332 | <CheckButton name="$parentMaximisedClearThreat" inherits="KLHTM_CheckButtonTemplate"> |
||
333 | <Anchors> |
||
334 | <Anchor point="TOPLEFT" relativeTo="$parentMaximisedMasterTarget" relativePoint="BOTTOMLEFT"> |
||
335 | <Offset x="0" y="0"/> |
||
336 | </Anchor> |
||
337 | </Anchors> |
||
338 | <Scripts> |
||
339 | <OnClick> KLHTM_OptionsGeneral_OnClick("MaximisedClearThreat"); </OnClick> |
||
340 | </Scripts> |
||
341 | </CheckButton> |
||
342 | |||
343 | <!-- other options --> |
||
344 | <Frame name="$parentHeaderOther" inherits="KLHTM_OptionsHeaderTemplate"> |
||
345 | <Anchors> |
||
346 | <Anchor point="TOPLEFT" relativeTo="$parentMaximisedClearThreat" relativePoint="BOTTOMLEFT"> |
||
347 | <Offset x="0" y="-10"/> |
||
348 | </Anchor> |
||
349 | </Anchors> |
||
350 | </Frame> |
||
351 | |||
352 | <!-- Global scale --> |
||
353 | <Slider name="$parentScale" inherits="KLHTM_OptionsSliderTemplate"> |
||
354 | <Anchors> |
||
355 | <Anchor point="TOPLEFT" relativeTo="$parentHeaderOther" relativePoint="BOTTOMLEFT"> |
||
356 | <Offset x="2" y="-2"/> |
||
357 | </Anchor> |
||
358 | </Anchors> |
||
359 | <Scripts> |
||
360 | <OnValueChanged> |
||
361 | KLHTM_OptionsGeneral_OnValueChanged("Scale"); |
||
362 | </OnValueChanged> |
||
363 | </Scripts> |
||
364 | </Slider> |
||
365 | |||
366 | </Frames> |
||
367 | </Frame> |
||
368 | |||
369 | <!-- Self view options --> |
||
370 | <Frame name="$parentSelf" inherits="KLHTM_OptionsFrameTemplate"> |
||
371 | <Frames> |
||
372 | |||
373 | <!-- Column visibility --> |
||
374 | <Frame name="$parentColumnHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
375 | <Anchors> |
||
376 | <Anchor point="TOPLEFT"/> |
||
377 | </Anchors> |
||
378 | </Frame> |
||
379 | |||
380 | <CheckButton name="$parentColumnHits" inherits="KLHTM_CheckButtonTemplate"> |
||
381 | <Anchors> |
||
382 | <Anchor point="TOPLEFT" relativeTo="$parentColumnHeader" relativePoint="BOTTOMLEFT"> |
||
383 | <Offset x="0" y="0"/> |
||
384 | </Anchor> |
||
385 | </Anchors> |
||
386 | <Scripts> |
||
387 | <OnClick> KLHTM_OptionsSelf_OnClick("ColumnHits"); </OnClick> |
||
388 | </Scripts> |
||
389 | </CheckButton> |
||
390 | |||
391 | <CheckButton name="$parentColumnRage" inherits="KLHTM_CheckButtonTemplate"> |
||
392 | <Anchors> |
||
393 | <Anchor point="TOPLEFT" relativeTo="$parentColumnHits" relativePoint="BOTTOMLEFT"> |
||
394 | <Offset x="0" y="0"/> |
||
395 | </Anchor> |
||
396 | </Anchors> |
||
397 | <Scripts> |
||
398 | <OnClick> KLHTM_OptionsSelf_OnClick("ColumnRage"); </OnClick> |
||
399 | </Scripts> |
||
400 | </CheckButton> |
||
401 | |||
402 | <CheckButton name="$parentColumnDamage" inherits="KLHTM_CheckButtonTemplate"> |
||
403 | <Anchors> |
||
404 | <Anchor point="TOPLEFT" relativeTo="$parentColumnRage" relativePoint="BOTTOMLEFT"> |
||
405 | <Offset x="0" y="0"/> |
||
406 | </Anchor> |
||
407 | </Anchors> |
||
408 | <Scripts> |
||
409 | <OnClick> KLHTM_OptionsSelf_OnClick("ColumnDamage"); </OnClick> |
||
410 | </Scripts> |
||
411 | </CheckButton> |
||
412 | |||
413 | <CheckButton name="$parentColumnThreat" inherits="KLHTM_CheckButtonTemplate"> |
||
414 | <Anchors> |
||
415 | <Anchor point="TOPLEFT" relativeTo="$parentColumnDamage" relativePoint="BOTTOMLEFT"> |
||
416 | <Offset x="0" y="0"/> |
||
417 | </Anchor> |
||
418 | </Anchors> |
||
419 | <Scripts> |
||
420 | <OnClick> KLHTM_OptionsSelf_OnClick("ColumnThreat"); </OnClick> |
||
421 | </Scripts> |
||
422 | </CheckButton> |
||
423 | |||
424 | <CheckButton name="$parentColumnThreatPercent" inherits="KLHTM_CheckButtonTemplate"> |
||
425 | <Anchors> |
||
426 | <Anchor point="TOPLEFT" relativeTo="$parentColumnThreat" relativePoint="BOTTOMLEFT"> |
||
427 | <Offset x="0" y="0"/> |
||
428 | </Anchor> |
||
429 | </Anchors> |
||
430 | <Scripts> |
||
431 | <OnClick> KLHTM_OptionsSelf_OnClick("ColumnThreatPercent"); </OnClick> |
||
432 | </Scripts> |
||
433 | </CheckButton> |
||
434 | |||
435 | <!-- Other options --> |
||
436 | <Frame name="$parentOtherHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
437 | <Anchors> |
||
438 | <Anchor point="TOPLEFT"> |
||
439 | <Offset x="135" y="0"/> |
||
440 | </Anchor> |
||
441 | </Anchors> |
||
442 | </Frame> |
||
443 | |||
444 | <!-- Show threat when minimised --> |
||
445 | <CheckButton name="$parentMinimisedThreat" inherits="KLHTM_CheckButtonTemplate"> |
||
446 | <Anchors> |
||
447 | <Anchor point="TOPLEFT" relativeTo="$parentOtherHeader" relativePoint="BOTTOMLEFT"/> |
||
448 | </Anchors> |
||
449 | <Scripts> |
||
450 | <OnClick> KLHTM_OptionsSelf_OnClick("MinimisedThreat"); </OnClick> |
||
451 | </Scripts> |
||
452 | </CheckButton> |
||
453 | |||
454 | <!-- Hide zero rows --> |
||
455 | <CheckButton name="$parentHideZero" inherits="KLHTM_CheckButtonTemplate"> |
||
456 | <Anchors> |
||
457 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedThreat" relativePoint="BOTTOMLEFT"> |
||
458 | <Offset x="0" y="0"/> |
||
459 | </Anchor> |
||
460 | </Anchors> |
||
461 | <Scripts> |
||
462 | <OnClick> KLHTM_OptionsSelf_OnClick("HideZero"); </OnClick> |
||
463 | <OnEnter> KLHTM_Options_OnEnter("selfhide"); </OnEnter> |
||
464 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
465 | </Scripts> |
||
466 | </CheckButton> |
||
467 | |||
468 | <!-- Abbreviate large numbers --> |
||
469 | <CheckButton name="$parentAbbreviate" inherits="KLHTM_CheckButtonTemplate"> |
||
470 | <Anchors> |
||
471 | <Anchor point="TOPLEFT" relativeTo="$parentHideZero" relativePoint="BOTTOMLEFT"> |
||
472 | <Offset x="0" y="0"/> |
||
473 | </Anchor> |
||
474 | </Anchors> |
||
475 | <Scripts> |
||
476 | <OnClick> KLHTM_OptionsSelf_OnClick("Abbreviate"); </OnClick> |
||
477 | <OnEnter> KLHTM_Options_OnEnter("abbreviate"); </OnEnter> |
||
478 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
479 | </Scripts> |
||
480 | </CheckButton> |
||
481 | </Frames> |
||
482 | </Frame> |
||
483 | |||
484 | <!-- Raid view options --> |
||
485 | <Frame name="$parentRaid" inherits="KLHTM_OptionsFrameTemplate"> |
||
486 | <Frames> |
||
487 | |||
488 | <!-- Column Visibility --> |
||
489 | <Frame name="$parentColumnHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
490 | <Anchors> |
||
491 | <Anchor point="TOPLEFT"/> |
||
492 | </Anchors> |
||
493 | </Frame> |
||
494 | |||
495 | <CheckButton name="$parentColumnThreat" inherits="KLHTM_CheckButtonTemplate"> |
||
496 | <Anchors> |
||
497 | <Anchor point="TOPLEFT" relativeTo="$parentColumnHeader" relativePoint="BOTTOMLEFT"> |
||
498 | <Offset x="0" y="0"/> |
||
499 | </Anchor> |
||
500 | </Anchors> |
||
501 | <Scripts> |
||
502 | <OnClick> KLHTM_OptionsRaid_OnClick("ColumnThreat"); </OnClick> |
||
503 | </Scripts> |
||
504 | </CheckButton> |
||
505 | |||
506 | <CheckButton name="$parentColumnThreatPercent" inherits="KLHTM_CheckButtonTemplate"> |
||
507 | <Anchors> |
||
508 | <Anchor point="TOPLEFT" relativeTo="$parentColumnThreat" relativePoint="BOTTOMLEFT"> |
||
509 | <Offset x="0" y="0"/> |
||
510 | </Anchor> |
||
511 | </Anchors> |
||
512 | <Scripts> |
||
513 | <OnClick> KLHTM_OptionsRaid_OnClick("ColumnThreatPercent"); </OnClick> |
||
514 | </Scripts> |
||
515 | </CheckButton> |
||
516 | |||
517 | <!-- Minimised string visibility --> |
||
518 | <Frame name="$parentMinimisedHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
519 | <Anchors> |
||
520 | <Anchor point="TOPLEFT" relativeTo="$parentColumnThreatPercent" relativePoint="BOTTOMLEFT"> |
||
521 | <Offset x="0" y="-10"/> |
||
522 | </Anchor> |
||
523 | </Anchors> |
||
524 | </Frame> |
||
525 | |||
526 | <CheckButton name="$parentMinimisedRank" inherits="KLHTM_CheckButtonTemplate"> |
||
527 | <Anchors> |
||
528 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedHeader" relativePoint="BOTTOMLEFT"> |
||
529 | <Offset x="0" y="-4"/> |
||
530 | </Anchor> |
||
531 | </Anchors> |
||
532 | <Scripts> |
||
533 | <OnClick> KLHTM_OptionsRaid_OnClick("MinimisedRank"); </OnClick> |
||
534 | </Scripts> |
||
535 | </CheckButton> |
||
536 | |||
537 | <CheckButton name="$parentMinimisedThreatPercent" inherits="KLHTM_CheckButtonTemplate"> |
||
538 | <Anchors> |
||
539 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedRank" relativePoint="BOTTOMLEFT"> |
||
540 | <Offset x="0" y="0"/> |
||
541 | </Anchor> |
||
542 | </Anchors> |
||
543 | <Scripts> |
||
544 | <OnClick> KLHTM_OptionsRaid_OnClick("MinimisedThreatPercent"); </OnClick> |
||
545 | </Scripts> |
||
546 | </CheckButton> |
||
547 | |||
548 | <CheckButton name="$parentMinimisedDeficit" inherits="KLHTM_CheckButtonTemplate"> |
||
549 | <Anchors> |
||
550 | <Anchor point="TOPLEFT" relativeTo="$parentMinimisedThreatPercent" relativePoint="BOTTOMLEFT"> |
||
551 | <Offset x="0" y="0"/> |
||
552 | </Anchor> |
||
553 | </Anchors> |
||
554 | <Scripts> |
||
555 | <OnClick> KLHTM_OptionsRaid_OnClick("MinimisedDeficit"); </OnClick> |
||
556 | </Scripts> |
||
557 | </CheckButton> |
||
558 | |||
559 | <!-- Other options --> |
||
560 | <Frame name="$parentOtherHeader" inherits="KLHTM_OptionsHeaderTemplate"> |
||
561 | <Anchors> |
||
562 | <Anchor point="TOPLEFT"> |
||
563 | <Offset x="135" y="0"/> |
||
564 | </Anchor> |
||
565 | </Anchors> |
||
566 | </Frame> |
||
567 | |||
568 | <!-- rows --> |
||
569 | <Slider name="$parentRows" inherits="KLHTM_OptionsSliderTemplate"> |
||
570 | <Anchors> |
||
571 | <Anchor point="TOPLEFT" relativeTo="$parentOtherHeader" relativePoint="BOTTOMLEFT"> |
||
572 | <Offset x="0" y="-2"/> |
||
573 | </Anchor> |
||
574 | </Anchors> |
||
575 | <Scripts> |
||
576 | <OnValueChanged> KLHTM_OptionsRaid_OnValueChanged("Rows"); </OnValueChanged> |
||
577 | <OnEnter> KLHTM_Options_OnEnter("rows"); </OnEnter> |
||
578 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
579 | </Scripts> |
||
580 | </Slider> |
||
581 | |||
582 | <!-- Hide zero rows --> |
||
583 | <CheckButton name="$parentHideZero" inherits="KLHTM_CheckButtonTemplate"> |
||
584 | <Anchors> |
||
585 | <Anchor point="TOPLEFT" relativeTo="$parentRows" relativePoint="BOTTOMLEFT"> |
||
586 | <Offset x="0" y="-14"/> |
||
587 | </Anchor> |
||
588 | </Anchors> |
||
589 | <Scripts> |
||
590 | <OnClick> KLHTM_OptionsRaid_OnClick("HideZero"); </OnClick> |
||
591 | <OnEnter> KLHTM_Options_OnEnter("raidhide"); </OnEnter> |
||
592 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
593 | </Scripts> |
||
594 | </CheckButton> |
||
595 | |||
596 | <!-- Resize --> |
||
597 | <CheckButton name="$parentResize" inherits="KLHTM_CheckButtonTemplate"> |
||
598 | <Anchors> |
||
599 | <Anchor point="TOPLEFT" relativeTo="$parentHideZero" relativePoint="BOTTOMLEFT"> |
||
600 | <Offset x="0" y="0"/> |
||
601 | </Anchor> |
||
602 | </Anchors> |
||
603 | <Scripts> |
||
604 | <OnClick> KLHTM_OptionsRaid_OnClick("Resize"); </OnClick> |
||
605 | <OnEnter> KLHTM_Options_OnEnter("resize"); </OnEnter> |
||
606 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
607 | </Scripts> |
||
608 | </CheckButton> |
||
609 | |||
610 | <!-- Abbreviate large numbers --> |
||
611 | <CheckButton name="$parentAbbreviate" inherits="KLHTM_CheckButtonTemplate"> |
||
612 | <Anchors> |
||
613 | <Anchor point="TOPLEFT" relativeTo="$parentResize" relativePoint="BOTTOMLEFT"> |
||
614 | <Offset x="0" y="0"/> |
||
615 | </Anchor> |
||
616 | </Anchors> |
||
617 | <Scripts> |
||
618 | <OnClick> KLHTM_OptionsRaid_OnClick("Abbreviate"); </OnClick> |
||
619 | <OnEnter> KLHTM_Options_OnEnter("abbreviate"); </OnEnter> |
||
620 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
621 | </Scripts> |
||
622 | </CheckButton> |
||
623 | |||
624 | <!-- Show aggro gain --> |
||
625 | <CheckButton name="$parentAggroGain" inherits="KLHTM_CheckButtonTemplate"> |
||
626 | <Anchors> |
||
627 | <Anchor point="TOPLEFT" relativeTo="$parentAbbreviate" relativePoint="BOTTOMLEFT"> |
||
628 | <Offset x="0" y="0"/> |
||
629 | </Anchor> |
||
630 | </Anchors> |
||
631 | <Scripts> |
||
632 | <OnClick> KLHTM_OptionsRaid_OnClick("AggroGain"); </OnClick> |
||
633 | <OnEnter> KLHTM_Options_OnEnter("aggro"); </OnEnter> |
||
634 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
635 | </Scripts> |
||
636 | </CheckButton> |
||
637 | |||
638 | <!-- Hide bottom bar --> |
||
639 | <CheckButton name="$parentHideBottom" inherits="KLHTM_CheckButtonTemplate"> |
||
640 | <Anchors> |
||
641 | <Anchor point="TOPLEFT" relativeTo="$parentAggroGain" relativePoint="BOTTOMLEFT"> |
||
642 | <Offset x="0" y="0"/> |
||
643 | </Anchor> |
||
644 | </Anchors> |
||
645 | <Scripts> |
||
646 | <OnClick> KLHTM_OptionsRaid_OnClick("HideBottom"); </OnClick> |
||
647 | <OnEnter> KLHTM_Options_OnEnter("bottom"); </OnEnter> |
||
648 | <OnLeave> KLHTM_Options_OnLeave(); </OnLeave> |
||
649 | </Scripts> |
||
650 | </CheckButton> |
||
651 | </Frames> |
||
652 | </Frame> |
||
653 | |||
654 | <!-- Controls --> |
||
655 | <Frame name="$parentControls"> |
||
656 | <Size> |
||
657 | <AbsDimension x="290" y="25"/> |
||
658 | </Size> |
||
659 | <Anchors> |
||
660 | <Anchor point="BOTTOMLEFT"> |
||
661 | <Offset x="5" y="5"/> |
||
662 | </Anchor> |
||
663 | <Anchor point="BOTTOMRIGHT"> |
||
664 | <Offset x="-5" y="5"/> |
||
665 | </Anchor> |
||
666 | </Anchors> |
||
667 | <Layers> |
||
668 | <Layer level="BACKGROUND"> |
||
669 | <!-- a dividing line between the buttons and the options --> |
||
670 | <Texture name="$parentLine" file="Interface\TradeSkillFrame\UI-TradeSkill-SkillBorder"> |
||
671 | <Anchors> |
||
672 | <Anchor point="TOPLEFT"> |
||
673 | <Offset> |
||
674 | <AbsDimension x="-1" y="6"/> |
||
675 | </Offset> |
||
676 | </Anchor> |
||
677 | <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT"> |
||
678 | <Offset> |
||
679 | <AbsDimension x="1" y="-1"/> |
||
680 | </Offset> |
||
681 | </Anchor> |
||
682 | </Anchors> |
||
683 | <TexCoords left="0.1" right="1.0" top="0" bottom="0.25"/> |
||
684 | </Texture> |
||
685 | </Layer> |
||
686 | </Layers> |
||
687 | <Frames> |
||
688 | <!-- Subframe selection --> |
||
689 | <Button name="$parentGeneral" inherits="KLHTM_OptionsButtonTemplate"> |
||
690 | <Anchors> |
||
691 | <Anchor point="TOPLEFT"/> |
||
692 | </Anchors> |
||
693 | <Scripts> |
||
694 | <OnClick> |
||
695 | KLHTM_OptionsButton_OnClick("General") |
||
696 | </OnClick> |
||
697 | </Scripts> |
||
698 | </Button> |
||
699 | <Button name="$parentSelf" inherits="KLHTM_OptionsButtonTemplate"> |
||
700 | <Anchors> |
||
701 | <Anchor point="LEFT" relativeTo="$parentGeneral" relativePoint="RIGHT"/> |
||
702 | </Anchors> |
||
703 | <Scripts> |
||
704 | <OnClick> |
||
705 | KLHTM_OptionsButton_OnClick("Self") |
||
706 | </OnClick> |
||
707 | </Scripts> |
||
708 | </Button> |
||
709 | <Button name="$parentRaid" inherits="KLHTM_OptionsButtonTemplate"> |
||
710 | <Anchors> |
||
711 | <Anchor point="LEFT" relativeTo="$parentSelf" relativePoint="RIGHT"/> |
||
712 | </Anchors> |
||
713 | <Scripts> |
||
714 | <OnClick> |
||
715 | KLHTM_OptionsButton_OnClick("Raid") |
||
716 | </OnClick> |
||
717 | </Scripts> |
||
718 | </Button> |
||
719 | <!-- close button --> |
||
720 | <Button name="$parentClose" inherits="KLHTM_OptionsButtonTemplate"> |
||
721 | <Anchors> |
||
722 | <Anchor point="LEFT" relativeTo="$parentRaid" relativePoint="RIGHT"/> |
||
723 | </Anchors> |
||
724 | <Scripts> |
||
725 | <OnClick> |
||
726 | KLHTM_OptionsButton_OnClick("Close") |
||
727 | </OnClick> |
||
728 | </Scripts> |
||
729 | </Button> |
||
730 | </Frames> |
||
731 | </Frame> |
||
732 | </Frames> |
||
733 | </Frame> |
||
734 | </Ui> |