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/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <Script file="global.lua"/> |
||
6 | |||
7 | <!-- Global options panel --> |
||
8 | <Frame name="BongosOptionsGlobal" inherits="BongosOptionsPanel" virtual="true"> |
||
9 | <Frames> |
||
10 | <CheckButton name="$parentLock" inherits="BongosCheckButtonTemplate" text="Lock Bar Positions"> |
||
11 | <Anchors> |
||
12 | <Anchor point="TOPLEFT"> |
||
13 | <Offset x="4" y="4"/> |
||
14 | </Anchor> |
||
15 | </Anchors> |
||
16 | <Scripts> |
||
17 | <OnClick> |
||
18 | Bongos_SetLock(this:GetChecked()); |
||
19 | </OnClick> |
||
20 | </Scripts> |
||
21 | </CheckButton> |
||
22 | |||
23 | <CheckButton name="$parentStickyBars" inherits="BongosCheckButtonTemplate" text="Enable Sticky Bars"> |
||
24 | <Anchors> |
||
25 | <Anchor point="TOP" relativeTo="$parentLock" relativePoint="BOTTOM"/> |
||
26 | </Anchors> |
||
27 | <Scripts> |
||
28 | <OnClick> |
||
29 | Bongos_SetStickyBars(this:GetChecked()); |
||
30 | </OnClick> |
||
31 | </Scripts> |
||
32 | </CheckButton> |
||
33 | |||
34 | <Slider name="$parentAlpha" inherits="BongosOptionsOpacitySlider"> |
||
35 | <Anchors> |
||
36 | <Anchor point="BOTTOMLEFT"> |
||
37 | <Offset x="6" y="20"/> |
||
38 | </Anchor> |
||
39 | </Anchors> |
||
40 | |||
41 | <Scripts> |
||
42 | <OnValueChanged> |
||
43 | if not this:GetParent().onShow then |
||
44 | BBar.ForAll(BBar.SetAlpha, this:GetValue()/100, 1); |
||
45 | end |
||
46 | getglobal(this:GetName() .. "ValText"):SetText( this:GetValue() ); |
||
47 | </OnValueChanged> |
||
48 | </Scripts> |
||
49 | </Slider> |
||
50 | |||
51 | <Slider name="$parentScale" inherits="BongosOptionsScaleSlider"> |
||
52 | <Anchors> |
||
53 | <Anchor point="BOTTOM" relativeTo="$parentAlpha" relativePoint="BOTTOM"> |
||
54 | <Offset x="0" y="40"/> |
||
55 | </Anchor> |
||
56 | </Anchors> |
||
57 | <Scripts> |
||
58 | <OnValueChanged> |
||
59 | if not this:GetParent().onShow then |
||
60 | BBar.ForAll(BBar.SetScale, this:GetValue()/100, 1); |
||
61 | end |
||
62 | getglobal(this:GetName() .. "ValText"):SetText( this:GetValue() ); |
||
63 | </OnValueChanged> |
||
64 | </Scripts> |
||
65 | </Slider> |
||
66 | </Frames> |
||
67 | |||
68 | <Scripts> |
||
69 | <OnLoad> |
||
70 | BOptionsGlobal_OnLoad(); |
||
71 | </OnLoad> |
||
72 | <OnShow> |
||
73 | BOptionsGlobal_OnShow(); |
||
74 | </OnShow> |
||
75 | </Scripts> |
||
76 | </Frame> |
||
77 | </Ui> |