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/"> |
2 | |||
3 | <Frame name="GB_OptionsBGTemplate" hidden="false" virtual="true"> |
||
4 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
5 | <BackgroundInsets> |
||
6 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
7 | </BackgroundInsets> |
||
8 | <TileSize> |
||
9 | <AbsValue val="32"/> |
||
10 | </TileSize> |
||
11 | <EdgeSize> |
||
12 | <AbsValue val="32"/> |
||
13 | </EdgeSize> |
||
14 | </Backdrop> |
||
15 | </Frame> |
||
16 | |||
17 | <Frame name="GB_ButtonBGTemplate" inherits="GB_BGTemplate" virtual="true"> |
||
18 | <Size><AbsDimension x="160" y="10"/></Size> |
||
19 | </Frame> |
||
20 | |||
21 | <Button name="GB_ButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true" hidden="false"> |
||
22 | <Size><AbsDimension x="140" y="26"/></Size> |
||
23 | </Button> |
||
24 | |||
25 | <CheckButton name="GB_CheckBoxTemplate" inherits="UICheckButtonTemplate" virtual="true"> |
||
26 | <Size><AbsDimension x="24" y="24"/></Size> |
||
27 | <Layers> |
||
28 | <Layer level="ARTWORK"> |
||
29 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
30 | <Color r="1.0" g="1.0" b="1.0"/> |
||
31 | <Anchors> |
||
32 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
33 | <Offset><AbsDimension x="5" y="1"/></Offset> |
||
34 | </Anchor> |
||
35 | </Anchors> |
||
36 | </FontString> |
||
37 | </Layer> |
||
38 | </Layers> |
||
39 | <Scripts> |
||
40 | <OnClick> |
||
41 | GB_Checkbox_OnClick(this.index, this.func); |
||
42 | </OnClick> |
||
43 | </Scripts> |
||
44 | </CheckButton> |
||
45 | |||
46 | <CheckButton name="GB_CheckBoxTemplate2" inherits="UICheckButtonTemplate" virtual="true"> |
||
47 | <Size><AbsDimension x="24" y="24"/></Size> |
||
48 | <Layers> |
||
49 | <Layer level="ARTWORK"> |
||
50 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
51 | <Color r="1.0" g="1.0" b="1.0"/> |
||
52 | <Anchors> |
||
53 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
54 | <Offset><AbsDimension x="5" y="1"/></Offset> |
||
55 | </Anchor> |
||
56 | </Anchors> |
||
57 | </FontString> |
||
58 | </Layer> |
||
59 | </Layers> |
||
60 | <Scripts> |
||
61 | <OnClick> |
||
62 | GB_Checkbox_OnClick2(this.index, this.func, this.index2); |
||
63 | </OnClick> |
||
64 | </Scripts> |
||
65 | </CheckButton> |
||
66 | |||
67 | <Slider name="GB_SliderTemplate" inherits="OptionsSliderTemplate" virtual="true"> |
||
68 | <Size><AbsDimension x="150" y="20"/></Size> |
||
69 | <Frames> |
||
70 | <EditBox name="$parent_Display" letters="3" autoFocus="false" inherits="InputBoxTemplate" justifyH="CENTER"> |
||
71 | <Size><AbsDimension x="37" y="20"/></Size> |
||
72 | <Anchors> |
||
73 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
74 | <Offset><AbsDimension x="5" y="0"/></Offset> |
||
75 | </Anchor> |
||
76 | </Anchors> |
||
77 | <Scripts> |
||
78 | <OnLoad> |
||
79 | this:SetTextColor(1,1,0); |
||
80 | </OnLoad> |
||
81 | <OnEnterPressed> |
||
82 | GB_Slider_UpdateFromEditBox(this:GetParent().maxlock, this:GetParent().index, this:GetParent().func); |
||
83 | </OnEnterPressed> |
||
84 | <OnEscapePressed> |
||
85 | this:SetText(this:GetParent():GetValue()); |
||
86 | this:ClearFocus(); |
||
87 | </OnEscapePressed> |
||
88 | </Scripts> |
||
89 | </EditBox> |
||
90 | </Frames> |
||
91 | <Scripts> |
||
92 | <OnUpdate> |
||
93 | if (not this.minmaxset) then |
||
94 | this.minmaxset = 1; |
||
95 | local min, max = this:GetMinMaxValues(); |
||
96 | getglobal(this:GetName().."Low"):SetText(min); |
||
97 | getglobal(this:GetName().."High"):SetText(max); |
||
98 | end |
||
99 | </OnUpdate> |
||
100 | <OnValueChanged> |
||
101 | GB_Slider_OnValueChanged(this.index, this.func); |
||
102 | </OnValueChanged> |
||
103 | </Scripts> |
||
104 | <Layers> |
||
105 | <Layer level="ARTWORK"> |
||
106 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
107 | <Color r="1.0" g="1.0" b="1.0"/> |
||
108 | <Anchors> |
||
109 | <Anchor point="BOTTOM" relativePoint="TOP"/> |
||
110 | </Anchors> |
||
111 | </FontString> |
||
112 | </Layer> |
||
113 | </Layers> |
||
114 | </Slider> |
||
115 | |||
116 | <EditBox name="GB_EditBoxTemplate" letters="1000" autoFocus="false" inherits="InputBoxTemplate" virtual="true"> |
||
117 | <Size><AbsDimension x="360" y="16"/></Size> |
||
118 | <Scripts> |
||
119 | <OnTextChanged> |
||
120 | GB_EditBox_OnTextChanged(this.index, this:GetID()); |
||
121 | </OnTextChanged> |
||
122 | </Scripts> |
||
123 | <Layers> |
||
124 | <Layer level="BACKGROUND"> |
||
125 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
126 | <Color r="1.0" g="1.0" b="1.0"/> |
||
127 | <Anchors> |
||
128 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
129 | <Offset><AbsDimension x="-5" y="0"/></Offset> |
||
130 | </Anchor> |
||
131 | </Anchors> |
||
132 | </FontString> |
||
133 | </Layer> |
||
134 | </Layers> |
||
135 | </EditBox> |
||
136 | |||
137 | <Frame name="GB_ActionOptionTemplate" hidden="false" virtual="true"> |
||
138 | <Size><AbsDimension x="170" y="50"/></Size> |
||
139 | <Frames> |
||
140 | <Button name="$parent_Dropbox"> |
||
141 | <Size><AbsDimension x="35" y="35"/></Size> |
||
142 | <Anchors> |
||
143 | <Anchor point="TOPLEFT"> |
||
144 | <Offset><AbsDimension x="0" y="-15"/></Offset> |
||
145 | </Anchor> |
||
146 | </Anchors> |
||
147 | <Layers> |
||
148 | <Layer level="ARTWORK"> |
||
149 | <Texture name="$parent_Texture" file="Interface\AddOns\GroupButtons\EmptyButton"> |
||
150 | <Size><AbsDimension x="35" y="35" /></Size> |
||
151 | <Anchors> |
||
152 | <Anchor point="CENTER"/> |
||
153 | </Anchors> |
||
154 | </Texture> |
||
155 | </Layer> |
||
156 | </Layers> |
||
157 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
158 | <Scripts> |
||
159 | <OnLoad> |
||
160 | this:RegisterForDrag("LeftButton"); |
||
161 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
162 | </OnLoad> |
||
163 | <OnEnter> |
||
164 | GB_Show_Tooltip(GB_BAR, this:GetParent():GetID()); |
||
165 | </OnEnter> |
||
166 | <OnReceiveDrag> |
||
167 | GB_Update_Spellbox(this:GetParent():GetID()); |
||
168 | </OnReceiveDrag> |
||
169 | <OnClick> |
||
170 | GB_Update_Spellbox(this:GetParent():GetID()); |
||
171 | </OnClick> |
||
172 | <OnDragStart> |
||
173 | GB_Update_Spellbox(this:GetParent():GetID()); |
||
174 | </OnDragStart> |
||
175 | <OnLeave> |
||
176 | GameTooltip:Hide(); |
||
177 | </OnLeave> |
||
178 | </Scripts> |
||
179 | </Button> |
||
180 | <Button name="$parent_ActionOptionsButton" inherits="UIPanelButtonTemplate" virtual="true" hidden="false" text="GB_TEXT_OPTIONS"> |
||
181 | <Size><AbsDimension x="90" y="20"/></Size> |
||
182 | <Anchors> |
||
183 | <Anchor point="TOPLEFT" relativeTo="$parent_Dropbox" relativePoint="TOPRIGHT"> |
||
184 | <Offset><AbsDimension x="15" y="0"/></Offset> |
||
185 | </Anchor> |
||
186 | </Anchors> |
||
187 | <Scripts> |
||
188 | <OnClick> |
||
189 | GB_Options_ShowPopup(GB_BAR, this:GetParent():GetID()); |
||
190 | </OnClick> |
||
191 | </Scripts> |
||
192 | </Button> |
||
193 | <Frame name="$parent_ClickCast" inherits="GB_BGTemplate"> |
||
194 | <Size><AbsDimension x="85" y="22"/></Size> |
||
195 | <Frames> |
||
196 | <Button name="$parent_Button"> |
||
197 | <Size><AbsDimension x="18" y="24"/></Size> |
||
198 | <Anchors> |
||
199 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
200 | <Offset><AbsDimension x="-18" y="-1"/></Offset> |
||
201 | </Anchor> |
||
202 | </Anchors> |
||
203 | <HitRectInsets> |
||
204 | <AbsInset left="6" right="6" top="7" bottom="7"/> |
||
205 | </HitRectInsets> |
||
206 | <Scripts> |
||
207 | <OnClick> |
||
208 | GB_Options_ShowClickCastMenu(); |
||
209 | </OnClick> |
||
210 | </Scripts> |
||
211 | <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> |
||
212 | <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> |
||
213 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
||
214 | <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> |
||
215 | </Button> |
||
216 | </Frames> |
||
217 | <Layers> |
||
218 | <Layer level="ARTWORK"> |
||
219 | <FontString name="$parent_Label" inherits="GameFontNormalSmall"> |
||
220 | <Color r="1.0" g="1.0" b="1.0"/> |
||
221 | <Anchors> |
||
222 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
223 | <Offset><AbsDimension x="4" y="0"/></Offset> |
||
224 | </Anchor> |
||
225 | </Anchors> |
||
226 | </FontString> |
||
227 | <FontString name="$parent_Setting" inherits="GameFontNormalSmall"> |
||
228 | <Color r="1.0" g="1.0" b="0.0"/> |
||
229 | <Anchors> |
||
230 | <Anchor point="LEFT"> |
||
231 | <Offset><AbsDimension x="3" y="0"/></Offset> |
||
232 | </Anchor> |
||
233 | <Anchor point="RIGHT"> |
||
234 | <Offset><AbsDimension x="-3" y="0"/></Offset> |
||
235 | </Anchor> |
||
236 | </Anchors> |
||
237 | </FontString> |
||
238 | </Layer> |
||
239 | </Layers> |
||
240 | <Scripts> |
||
241 | <OnLoad> |
||
242 | this:SetBackdropColor(0,0,0); |
||
243 | GB_Set_Label(GB_TEXT.ClickCast); |
||
244 | GB_Set_Anchor("_ActionOptionsButton", -21, 2); |
||
245 | </OnLoad> |
||
246 | </Scripts> |
||
247 | </Frame> |
||
248 | </Frames> |
||
249 | <Layers> |
||
250 | <Layer level="OVERLAY"> |
||
251 | <FontString name="$parent_Number" inherits="GameFontNormalSmall" justifyH="RIGHT"> |
||
252 | <Size><AbsDimension x="20" y="15"/></Size> |
||
253 | <Color r="0.0" g="1.0" b="0.0"/> |
||
254 | <Anchors> |
||
255 | <Anchor point="TOPLEFT"/> |
||
256 | </Anchors> |
||
257 | </FontString> |
||
258 | <FontString name="$parent_ActionName" inherits="GameFontNormalSmall" justifyH="LEFT"> |
||
259 | <Size><AbsDimension x="145" y="15"/></Size> |
||
260 | <Color r="0.0" g="1.0" b="0.0"/> |
||
261 | <Anchors> |
||
262 | <Anchor point="TOPLEFT"> |
||
263 | <Offset><AbsDimension x="25" y="0"/></Offset> |
||
264 | </Anchor> |
||
265 | </Anchors> |
||
266 | </FontString> |
||
267 | </Layer> |
||
268 | </Layers> |
||
269 | <Scripts> |
||
270 | <OnLoad> |
||
271 | local frame = this:GetName(); |
||
272 | getglobal(frame.."_Number"):SetText(this:GetID()..". "); |
||
273 | </OnLoad> |
||
274 | </Scripts> |
||
275 | </Frame> |
||
276 | |||
277 | <Button name="GB_MenuOptionTemplate" virtual="true" enableMouse="true"> |
||
278 | <Size><AbsDimension x="170" y="15"/></Size> |
||
279 | <HighlightTexture name = "$parentHighlight" alphaMode="ADD" file="Interface\QuestFrame\UI-QuestTitleHighlight"/> |
||
280 | <Layers> |
||
281 | <Layer level="ARTWORK"> |
||
282 | <FontString inherits="GameFontNormal" name="$parent_Text"> |
||
283 | <Color r="1.0" g="1.0" b="1.0"/> |
||
284 | <Anchors><Anchor point="LEFT"/></Anchors> |
||
285 | </FontString> |
||
286 | </Layer> |
||
287 | </Layers> |
||
288 | <Scripts> |
||
289 | <OnClick> |
||
290 | this:GetParent():Hide(); |
||
291 | this:GetParent().onclick(this:GetID()); |
||
292 | </OnClick> |
||
293 | <OnEnter> |
||
294 | this:GetParent().timer = nil; |
||
295 | </OnEnter> |
||
296 | </Scripts> |
||
297 | </Button> |
||
298 | |||
299 | <Frame name="GB_MenuTemplate" inherits="GB_BGTemplate" virtual="true" hidden="true" frameStrata="high"> |
||
300 | <Size><AbsDimension x="10" y="10"/></Size> |
||
301 | <Scripts> |
||
302 | <OnEnter> |
||
303 | this.timer = nil; |
||
304 | </OnEnter> |
||
305 | <OnLeave> |
||
306 | this.timer = 1; |
||
307 | </OnLeave> |
||
308 | <OnUpdate> |
||
309 | GB_MenuTimeout(); |
||
310 | </OnUpdate> |
||
311 | </Scripts> |
||
312 | </Frame> |
||
313 | |||
314 | <Frame name="GB_MenuControlTemplate" inherits="GB_BGTemplate" virtual="true"> |
||
315 | <Size><AbsDimension x="199" y="26"/></Size> |
||
316 | <Frames> |
||
317 | <Button name="$parent_Button"> |
||
318 | <Size><AbsDimension x="32" y="32"/></Size> |
||
319 | <Anchors> |
||
320 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
321 | <Offset><AbsDimension x="-29" y="-1"/></Offset> |
||
322 | </Anchor> |
||
323 | </Anchors> |
||
324 | <HitRectInsets> |
||
325 | <AbsInset left="6" right="6" top="7" bottom="7"/> |
||
326 | </HitRectInsets> |
||
327 | <Scripts> |
||
328 | <OnClick> |
||
329 | GB_Options_ShowMenu(this:GetParent().menu); |
||
330 | </OnClick> |
||
331 | </Scripts> |
||
332 | <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> |
||
333 | <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> |
||
334 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
||
335 | <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> |
||
336 | </Button> |
||
337 | </Frames> |
||
338 | <Layers> |
||
339 | <Layer level="ARTWORK"> |
||
340 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
341 | <Color r="1.0" g="1.0" b="1.0"/> |
||
342 | <Anchors> |
||
343 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
344 | <Offset><AbsDimension x="-5" y="0"/></Offset> |
||
345 | </Anchor> |
||
346 | </Anchors> |
||
347 | </FontString> |
||
348 | <FontString name="$parent_Setting" inherits="GameFontNormal"> |
||
349 | <Color r="1.0" g="1.0" b="0.0"/> |
||
350 | <Anchors> |
||
351 | <Anchor point="LEFT"> |
||
352 | <Offset><AbsDimension x="3" y="0"/></Offset> |
||
353 | </Anchor> |
||
354 | <Anchor point="RIGHT"> |
||
355 | <Offset><AbsDimension x="-20" y="0"/></Offset> |
||
356 | </Anchor> |
||
357 | </Anchors> |
||
358 | </FontString> |
||
359 | </Layer> |
||
360 | </Layers> |
||
361 | </Frame> |
||
362 | |||
363 | <Button name="GB_ColorPickerTemplate" inherits="GB_BGTemplate" virtual="true"> |
||
364 | <Size><AbsDimension x="25" y="25"/></Size> |
||
365 | <Layers> |
||
366 | <Layer level="ARTWORK"> |
||
367 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
368 | <Color r="1.0" g="1.0" b="1.0"/> |
||
369 | <Anchors> |
||
370 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
371 | <Offset><AbsDimension x="5" y="0"/></Offset> |
||
372 | </Anchor> |
||
373 | </Anchors> |
||
374 | </FontString> |
||
375 | </Layer> |
||
376 | </Layers> |
||
377 | <Scripts> |
||
378 | <OnClick> |
||
379 | GB_ColorPicker_Show(this.index); |
||
380 | </OnClick> |
||
381 | </Scripts> |
||
382 | </Button> |
||
383 | |||
384 | </Ui> |