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/..\FrameXML\UI.xsd">
4  
5 <Script file="actionBarGlobal.lua"/>
6  
7 <!-- Global Actionbar Settings Panel -->
8 <Frame name="BongosOptionsActionBar" inherits="BongosOptionsPanel" virtual="true">
9 <Frames>
10 <CheckButton name="$parentTooltips" inherits="BongosCheckButtonTemplate" text="Show Button Tooltips">
11 <Anchors>
12 <Anchor point="TOPLEFT">
13 <Offset x="4" y="6"/>
14 </Anchor>
15 </Anchors>
16 <Scripts>
17 <OnClick>
18 BActionSets_SetTooltips(this:GetChecked());
19 </OnClick>
20 </Scripts>
21 </CheckButton>
22  
23 <CheckButton name="$parentRange" inherits="BongosCheckButtonTemplate" text="Enable Range Coloring">
24 <Anchors>
25 <Anchor point="TOPLEFT" relativeTo="$parentTooltips" relativePoint="BOTTOMLEFT"/>
26 </Anchors>
27 <Scripts>
28 <OnClick>
29 BActionSets_SetColorOutOfRange(this:GetChecked());
30 </OnClick>
31 </Scripts>
32 </CheckButton>
33  
34 <!-- out of range coloring swatch thing -->
35 <Button name="$parentRangeColor" text="Out of Range Color">
36 <Size x="32" y="32"/>
37  
38 <Anchors>
39 <Anchor point="TOPLEFT" relativeTo="$parentRange" relativePoint="BOTTOMLEFT">
40 <Offset x="4" y="2"/>
41 </Anchor>
42 </Anchors>
43  
44 <Layers>
45 <Layer level="BACKGROUND">
46 <Texture name="$parentSwatchBackground">
47 <Size x="24" y="24"/>
48  
49 <Anchors>
50 <Anchor point="LEFT"/>
51 </Anchors>
52  
53 <Color r="0.5" g="0.5" b="0.5"/>
54 </Texture>
55 </Layer>
56 </Layers>
57  
58 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
59 <Size x="30" y="30"/>
60  
61 <Anchors>
62 <Anchor point="LEFT">
63 <Offset x="-3" y="0"/>
64 </Anchor>
65 </Anchors>
66 </NormalTexture>
67  
68 <ButtonText>
69 <Anchors>
70 <Anchor point="LEFT" relativeTo="$parentNormalTexture" relativePoint="RIGHT">
71 <Offset x="-2" y="0"/>
72 </Anchor>
73 </Anchors>
74 </ButtonText>
75  
76 <NormalFont font="GameFontNormalSmall" justifyH="RIGHT"/>
77 <HighlightFont font="GameFontHighlightSmall" justifyH="RIGHT"/>
78  
79 <Scripts>
80 <OnLoad>
81 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
82 </OnLoad>
83 <OnClick>
84 BOptionsRangeColor_OnClick();
85 </OnClick>
86 <OnHide>
87 this:UnlockHighlight();
88 </OnHide>
89 </Scripts>
90 </Button>
91  
92 <CheckButton name="$parentMacroText" inherits="BongosCheckButtonTemplate" text="Hide Macro Text">
93 <Anchors>
94 <Anchor point="TOPLEFT" relativeTo="$parentRangeColor" relativePoint="BOTTOMLEFT">
95 <Offset x="-3" y="0"/>
96 </Anchor>
97 </Anchors>
98 <Scripts>
99 <OnClick>
100 BActionSets_SetMacroText(not this:GetChecked());
101 </OnClick>
102 </Scripts>
103 </CheckButton>
104  
105 <CheckButton name="$parentHotkeysText" inherits="BongosCheckButtonTemplate" text="Hide Hotkeys">
106 <Anchors>
107 <Anchor point="TOP" relativeTo="$parentMacroText" relativePoint="BOTTOM"/>
108 </Anchors>
109 <Scripts>
110 <OnClick>
111 BActionSets_SetHotkeys(not this:GetChecked());
112 </OnClick>
113 </Scripts>
114 </CheckButton>
115  
116 <CheckButton name="$parentSelfCast" inherits="BongosCheckButtonTemplate" text="Automatic Selfcast">
117 <Anchors>
118 <Anchor point="TOP" relativeTo="$parentHotkeysText" relativePoint="BOTTOM"/>
119 </Anchors>
120 <Scripts>
121 <OnClick>
122 if this:GetChecked() then
123 SetCVar("autoSelfCast", 1);
124 else
125 SetCVar("autoSelfCast", 0);
126 end
127 </OnClick>
128 </Scripts>
129 </CheckButton>
130  
131 <Frame name="$parentAltCast" inherits="BongosOptionsDropDown">
132 <Anchors>
133 <Anchor point="TOPLEFT" relativeTo="$parentSelfCast" relativePoint="BOTTOMLEFT">
134 <Offset x="-14" y="0"/>
135 </Anchor>
136 </Anchors>
137 <Scripts>
138 <OnShow>
139 BOptionsAltCast_OnShow();
140 </OnShow>
141 </Scripts>
142 </Frame>
143  
144 <Slider name="$parentNumActionBars" inherits="BongosOptionsSlider" minValue="1" maxValue="120" valuestep="1">
145 <Anchors>
146 <Anchor point="BOTTOMLEFT">
147 <Offset x="6" y="16"/>
148 </Anchor>
149 </Anchors>
150 <Scripts>
151 <OnLoad>
152 getglobal(this:GetName() .. "Text"):SetText("ActionBars");
153 getglobal(this:GetName() .. "Low"):SetText(1);
154 getglobal(this:GetName() .. "High"):SetText(120);
155 </OnLoad>
156 <OnValueChanged>
157 if not this:GetParent().onShow then
158 BActionBar.SetNumber(this:GetValue())
159 end
160 getglobal(this:GetName() .. "ValText"):SetText(this:GetValue());
161 </OnValueChanged>
162 </Scripts>
163 </Slider>
164 </Frames>
165 <Scripts>
166 <OnLoad>
167 BOptionsActionBarGlobal_OnLoad();
168 </OnLoad>
169 <OnShow>
170 BOptionsActionBarGlobal_OnShow();
171 </OnShow>
172 </Scripts>
173 </Frame>
174 </Ui>