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/ C:ProjectsWoWBinInterfaceFrameXMLUI.xsd"> |
2 | |||
3 | <Script file="BGInvite_BlackListFrame.lua"/> |
||
4 | <Script file="localization.lua"/> |
||
5 | |||
6 | <!--Button Widget Template--> |
||
7 | <Button name="BGInvitePlayerButtonTemplate" enableMouse="true" virtual="true"> |
||
8 | <Size> |
||
9 | <AbsDimension x="295" y="32"/> |
||
10 | </Size> |
||
11 | <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT"> |
||
12 | <Size> |
||
13 | <AbsDimension x="275" y="12"/> |
||
14 | </Size> |
||
15 | <Anchors> |
||
16 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentItem"> |
||
17 | <Offset> |
||
18 | <AbsDimension x="35" y="0"/> |
||
19 | </Offset> |
||
20 | </Anchor> |
||
21 | </Anchors> |
||
22 | </NormalText> |
||
23 | <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/> |
||
24 | <HighlightText name="$parentHighlightText" inherits="GameFontHighlight" justifyH="LEFT"> |
||
25 | <Size> |
||
26 | <AbsDimension x="275" y="12"/> |
||
27 | </Size> |
||
28 | <Anchors> |
||
29 | <Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentItem"> |
||
30 | <Offset> |
||
31 | <AbsDimension x="35" y="0"/> |
||
32 | </Offset> |
||
33 | </Anchor> |
||
34 | </Anchors> |
||
35 | </HighlightText> |
||
36 | <Scripts> |
||
37 | <OnClick> |
||
38 | BGInvite_BlackListFrameItemButton_OnClick(arg1,this:GetText()); |
||
39 | </OnClick> |
||
40 | </Scripts> |
||
41 | </Button> |
||
42 | |||
43 | -- Interface viewable objects |
||
44 | |||
45 | <Frame name="BGInvite_BlackListFrame" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" id="2"> |
||
46 | <HitRectInsets> |
||
47 | <AbsInset left="0" right="30" top="0" bottom="75"/> |
||
48 | </HitRectInsets> |
||
49 | <Layers> |
||
50 | <Layer level="BACKGROUND"> |
||
51 | <Texture name="$parentListFrameHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
52 | <Size> |
||
53 | <AbsDimension x="256" y="16"/> |
||
54 | </Size> |
||
55 | <Anchors> |
||
56 | <Anchor point="TOPLEFT"> |
||
57 | <Offset> |
||
58 | <AbsDimension x="15" y="-312"/> |
||
59 | </Offset> |
||
60 | </Anchor> |
||
61 | </Anchors> |
||
62 | <TexCoords left="0" right="1.0" top="0" bottom="0.25"/> |
||
63 | </Texture> |
||
64 | <Texture name="$parentListFrameHorizontalBarRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
65 | <Size> |
||
66 | <AbsDimension x="75" y="16"/> |
||
67 | </Size> |
||
68 | <Anchors> |
||
69 | <Anchor point="LEFT" relativeTo="$parentListFrameHorizontalBarLeft" relativePoint="RIGHT"> |
||
70 | <Offset> |
||
71 | <AbsDimension x="0" y="0"/> |
||
72 | </Offset> |
||
73 | </Anchor> |
||
74 | </Anchors> |
||
75 | <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/> |
||
76 | </Texture> |
||
77 | </Layer> |
||
78 | </Layers> |
||
79 | <Frames> |
||
80 | <Frame name="$parentHeaderText" hidden="false"> |
||
81 | <Size> |
||
82 | <AbsDimension x="320" y="50"/> |
||
83 | </Size> |
||
84 | <Anchors> |
||
85 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
86 | <Offset> |
||
87 | <AbsDimension x="20" y="0"/> |
||
88 | </Offset> |
||
89 | </Anchor> |
||
90 | </Anchors> |
||
91 | <Layers> |
||
92 | <Layer level="ARTWORK"> |
||
93 | <FontString inherits="GameFontNormalLarge" justifyH="CENTER" text="BGlocal_BLACKLISTED_PLAYERS"> |
||
94 | <Size> |
||
95 | <AbsDimension x="320" y="0"/> |
||
96 | </Size> |
||
97 | <Anchors> |
||
98 | <Anchor point="TOP" relativePoint="TOP"> |
||
99 | <Offset> |
||
100 | <AbsDimension x="0" y="-58"/> |
||
101 | </Offset> |
||
102 | </Anchor> |
||
103 | </Anchors> |
||
104 | </FontString> |
||
105 | </Layer> |
||
106 | </Layers> |
||
107 | </Frame> |
||
108 | |||
109 | |||
110 | -- Start of Buttons to use as ListBox |
||
111 | <Button name="$parentItem1" inherits="BGInvitePlayerButtonTemplate" id="1" hidden="true"> |
||
112 | <Anchors> |
||
113 | <Anchor point="TOPLEFT" relativeTo="$parentHeaderText" relativePoint="BOTTOMLEFT"> |
||
114 | <Offset> |
||
115 | <AbsDimension x="25" y="-50"/> |
||
116 | </Offset> |
||
117 | </Anchor> |
||
118 | </Anchors> |
||
119 | </Button> |
||
120 | <Button name="$parentItem2" inherits="BGInvitePlayerButtonTemplate" id="2" hidden="true"> |
||
121 | <Anchors> |
||
122 | <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT"> |
||
123 | <Offset> |
||
124 | <AbsDimension x="0" y="1"/> |
||
125 | </Offset> |
||
126 | </Anchor> |
||
127 | </Anchors> |
||
128 | </Button> |
||
129 | <Button name="$parentItem3" inherits="BGInvitePlayerButtonTemplate" id="3" hidden="true"> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT"> |
||
132 | <Offset> |
||
133 | <AbsDimension x="0" y="1"/> |
||
134 | </Offset> |
||
135 | </Anchor> |
||
136 | </Anchors> |
||
137 | </Button> |
||
138 | <Button name="$parentItem4" inherits="BGInvitePlayerButtonTemplate" id="4" hidden="true"> |
||
139 | <Anchors> |
||
140 | <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT"> |
||
141 | <Offset> |
||
142 | <AbsDimension x="0" y="1"/> |
||
143 | </Offset> |
||
144 | </Anchor> |
||
145 | </Anchors> |
||
146 | </Button> |
||
147 | <Button name="$parentItem5" inherits="BGInvitePlayerButtonTemplate" id="5" hidden="true"> |
||
148 | <Anchors> |
||
149 | <Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT"> |
||
150 | <Offset> |
||
151 | <AbsDimension x="0" y="1"/> |
||
152 | </Offset> |
||
153 | </Anchor> |
||
154 | </Anchors> |
||
155 | </Button> |
||
156 | <Button name="$parentItem6" inherits="BGInvitePlayerButtonTemplate" id="6" hidden="true"> |
||
157 | <Anchors> |
||
158 | <Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT"> |
||
159 | <Offset> |
||
160 | <AbsDimension x="0" y="1"/> |
||
161 | </Offset> |
||
162 | </Anchor> |
||
163 | </Anchors> |
||
164 | </Button> |
||
165 | <Button name="$parentItem7" inherits="BGInvitePlayerButtonTemplate" id="7" hidden="true"> |
||
166 | <Anchors> |
||
167 | <Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT"> |
||
168 | <Offset> |
||
169 | <AbsDimension x="0" y="1"/> |
||
170 | </Offset> |
||
171 | </Anchor> |
||
172 | </Anchors> |
||
173 | </Button> |
||
174 | <Button name="$parentItem8" inherits="BGInvitePlayerButtonTemplate" id="8" hidden="true"> |
||
175 | <Anchors> |
||
176 | <Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT"> |
||
177 | <Offset> |
||
178 | <AbsDimension x="0" y="1"/> |
||
179 | </Offset> |
||
180 | </Anchor> |
||
181 | </Anchors> |
||
182 | </Button> |
||
183 | <Button name="$parentItem9" inherits="BGInvitePlayerButtonTemplate" id="9" hidden="true"> |
||
184 | <Anchors> |
||
185 | <Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT"> |
||
186 | <Offset> |
||
187 | <AbsDimension x="0" y="1"/> |
||
188 | </Offset> |
||
189 | </Anchor> |
||
190 | </Anchors> |
||
191 | </Button> |
||
192 | <Button name="$parentItem10" inherits="BGInvitePlayerButtonTemplate" id="10" hidden="true"> |
||
193 | <Anchors> |
||
194 | <Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT"> |
||
195 | <Offset> |
||
196 | <AbsDimension x="0" y="1"/> |
||
197 | </Offset> |
||
198 | </Anchor> |
||
199 | </Anchors> |
||
200 | </Button> |
||
201 | <Button name="$parentItem11" inherits="BGInvitePlayerButtonTemplate" id="11" hidden="true"> |
||
202 | <Anchors> |
||
203 | <Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT"> |
||
204 | <Offset> |
||
205 | <AbsDimension x="0" y="1"/> |
||
206 | </Offset> |
||
207 | </Anchor> |
||
208 | </Anchors> |
||
209 | </Button> |
||
210 | <Button name="$parentItem12" inherits="BGInvitePlayerButtonTemplate" id="12" hidden="true"> |
||
211 | <Anchors> |
||
212 | <Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT"> |
||
213 | <Offset> |
||
214 | <AbsDimension x="0" y="1"/> |
||
215 | </Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | </Button> |
||
219 | <Button name="$parentItem13" inherits="BGInvitePlayerButtonTemplate" id="13" hidden="true"> |
||
220 | <Anchors> |
||
221 | <Anchor point="TOPLEFT" relativeTo="$parentItem12" relativePoint="BOTTOMLEFT"> |
||
222 | <Offset> |
||
223 | <AbsDimension x="0" y="1"/> |
||
224 | </Offset> |
||
225 | </Anchor> |
||
226 | </Anchors> |
||
227 | </Button> |
||
228 | <Button name="$parentItem14" inherits="BGInvitePlayerButtonTemplate" id="14" hidden="true"> |
||
229 | <Anchors> |
||
230 | <Anchor point="TOPLEFT" relativeTo="$parentItem13" relativePoint="BOTTOMLEFT"> |
||
231 | <Offset> |
||
232 | <AbsDimension x="0" y="1"/> |
||
233 | </Offset> |
||
234 | </Anchor> |
||
235 | </Anchors> |
||
236 | </Button> |
||
237 | |||
238 | -- List box scroller pane |
||
239 | <ScrollFrame name="BGInvite_BlackListFrameListScrollFrame" inherits="ClassTrainerListScrollFrameTemplate"> |
||
240 | <Size> |
||
241 | <AbsDimension x="296" y="215"/> |
||
242 | </Size> |
||
243 | <Anchors> |
||
244 | <Anchor point="TOPRIGHT" relativeTo="$parentHeaderText" relativePoint="BOTTOMRIGHT"> |
||
245 | <Offset> |
||
246 | <AbsDimension x="-20" y="-46"/> |
||
247 | </Offset> |
||
248 | </Anchor> |
||
249 | </Anchors> |
||
250 | <Scripts> |
||
251 | <OnVerticalScroll> |
||
252 | FauxScrollFrame_OnVerticalScroll(BGInvite_ITEM_HEIGHT, BGInvite_BlackListFrame_Update); |
||
253 | </OnVerticalScroll> |
||
254 | </Scripts> |
||
255 | </ScrollFrame> |
||
256 | |||
257 | <Button name="BGInvite_BlackList_Clear" inherits="OptionsButtonTemplate" text="BGINVITE_CLEAR_BLACKLIST"> |
||
258 | <Size> |
||
259 | <AbsDimension x="150" y="25"/> |
||
260 | </Size> |
||
261 | <Anchors> |
||
262 | <Anchor point="CENTER" relativePoint="CENTER" relativeTo="BGInvite_BlackListFrame"> |
||
263 | <Offset> |
||
264 | <AbsDimension x="0" y="-100"/> |
||
265 | </Offset> |
||
266 | </Anchor> |
||
267 | </Anchors> |
||
268 | <Scripts> |
||
269 | <OnClick> |
||
270 | getglobal(this:GetName().."_Update")(); |
||
271 | </OnClick> |
||
272 | <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT"); |
||
273 | GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE); |
||
274 | </OnEnter> |
||
275 | </Scripts> |
||
276 | </Button> |
||
277 | <Button name="BGInvite_BlackList_AddPlayer" inherits="OptionsButtonTemplate" text="Add Player"> |
||
278 | <Size> |
||
279 | <AbsDimension x="150" y="25"/> |
||
280 | </Size> |
||
281 | <Anchors> |
||
282 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_BlackList_Clear"> |
||
283 | <Offset> |
||
284 | <AbsDimension x="0" y="0"/> |
||
285 | </Offset> |
||
286 | </Anchor> |
||
287 | </Anchors> |
||
288 | <Scripts> |
||
289 | <OnClick> |
||
290 | BGInvite_BlackListAddPlayerDialog:Show(); |
||
291 | </OnClick> |
||
292 | <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT"); |
||
293 | --GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE); |
||
294 | </OnEnter> |
||
295 | </Scripts> |
||
296 | </Button> |
||
297 | </Frames> |
||
298 | <Scripts> |
||
299 | <OnShow> |
||
300 | getglobal(this:GetName().."_OnShow")(); |
||
301 | </OnShow> |
||
302 | </Scripts> |
||
303 | |||
304 | |||
305 | </Frame> |
||
306 | |||
307 | <Frame name="BGInvite_BlackListAddPlayerDialog" toplevel="true" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" frameStrata="DIALOG"> |
||
308 | <Size> |
||
309 | <AbsDimension x="200" y="120"/> |
||
310 | </Size> |
||
311 | <Anchors> |
||
312 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange"> |
||
313 | <Offset> |
||
314 | <AbsDimension x="0" y="0"/> |
||
315 | </Offset> |
||
316 | </Anchor> |
||
317 | </Anchors> |
||
318 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
319 | <BackgroundInsets> |
||
320 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
321 | </BackgroundInsets> |
||
322 | <TileSize> |
||
323 | <AbsValue val="32"/> |
||
324 | </TileSize> |
||
325 | <EdgeSize> |
||
326 | <AbsValue val="32"/> |
||
327 | </EdgeSize> |
||
328 | </Backdrop> |
||
329 | |||
330 | <Frames> |
||
331 | <Frame name="BGInvite_BlackListAddPlayer_WidgetGroup" hidden="false"> |
||
332 | <Size> |
||
333 | <AbsDimension x="32" y="32"/> |
||
334 | </Size> |
||
335 | <Anchors> |
||
336 | <Anchor point="CENTER" relativePoint="TOP"> |
||
337 | <Offset> |
||
338 | <AbsDimension x="0" y="-45"/> |
||
339 | </Offset> |
||
340 | </Anchor> |
||
341 | </Anchors> |
||
342 | <Layers> |
||
343 | <Layer level="OVERLAY"> |
||
344 | <FontString inherits="GameFontNormal" name="$parent_Text" text="BGINVITE_ADD_PLAYER_TO_BLACKLIST"> |
||
345 | <Anchors> |
||
346 | <Anchor point="CENTER" relativePoint="TOP"> |
||
347 | <Offset> |
||
348 | <AbsDimension x="0" y="0"/> |
||
349 | </Offset> |
||
350 | </Anchor> |
||
351 | </Anchors> |
||
352 | </FontString> |
||
353 | </Layer> |
||
354 | </Layers> |
||
355 | </Frame> |
||
356 | <EditBox name="BGInvite_BlackListAddPlayer_EditBox" letters="20" inherits="BGI_OptionsEditBoxTemplate"> |
||
357 | <Anchors> |
||
358 | <Anchor point="CENTER" relativePoint="CENTER"> |
||
359 | <Offset> |
||
360 | <AbsDimension x="0" y="0"/> |
||
361 | </Offset> |
||
362 | </Anchor> |
||
363 | </Anchors> |
||
364 | <Scripts> |
||
365 | <OnEnterPressed> |
||
366 | BGInvite_AddBlackList( BGInvite_BlackListAddPlayer_EditBox:GetText(), BGINVITE_MANUAL_ADD); |
||
367 | BGInvite_BlackListFrame_Update(); |
||
368 | BGInvite_BlackListAddPlayerDialog:Hide(); |
||
369 | </OnEnterPressed> |
||
370 | <OnShow>getglobal(this:GetName()):SetText("");</OnShow> |
||
371 | </Scripts> |
||
372 | </EditBox> |
||
373 | |||
374 | |||
375 | <Button name="BGInvite_BlackListAddPlayer_Add" inherits="OptionsButtonTemplate" text="OK"> |
||
376 | <Size> |
||
377 | <AbsDimension x="70" y="20"/> |
||
378 | </Size> |
||
379 | <Anchors> |
||
380 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_BlackListAddPlayer_EditBox"> |
||
381 | <Offset> |
||
382 | <AbsDimension x="-20" y="-15"/> |
||
383 | </Offset> |
||
384 | </Anchor> |
||
385 | </Anchors> |
||
386 | <Scripts> |
||
387 | <OnClick> |
||
388 | local name = BGInvite_BlackListAddPlayer_EditBox:GetText(); |
||
389 | if ( name ~= "" ) then |
||
390 | BGInvite_AddBlackList( BGInvite_BlackListAddPlayer_EditBox:GetText(), BGINVITE_MANUAL_ADD); |
||
391 | end |
||
392 | BGInvite_BlackListFrame_Update(); |
||
393 | BGInvite_BlackListAddPlayerDialog:Hide(); |
||
394 | </OnClick> |
||
395 | </Scripts> |
||
396 | </Button> |
||
397 | <Button name="BGInvite_BlackListAddPlayer_Cancel" inherits="OptionsButtonTemplate" text="Cancel"> |
||
398 | <Size> |
||
399 | <AbsDimension x="70" y="20"/> |
||
400 | </Size> |
||
401 | <Anchors> |
||
402 | <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGInvite_BlackListAddPlayer_EditBox"> |
||
403 | <Offset> |
||
404 | <AbsDimension x="20" y="-15"/> |
||
405 | </Offset> |
||
406 | </Anchor> |
||
407 | </Anchors> |
||
408 | <Scripts> |
||
409 | <OnClick> |
||
410 | BGInvite_BlackListAddPlayerDialog:Hide(); |
||
411 | </OnClick> |
||
412 | </Scripts> |
||
413 | </Button> |
||
414 | </Frames> |
||
415 | </Frame> |
||
416 | |||
417 | </Ui> |