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 <Button name="AceGUIDropDownMenuButtonTemplate" virtual="true">
6 <Size>
7 <AbsDimension x="128" y="16"/>
8 </Size>
9 <Layers>
10 <Layer level="BACKGROUND">
11 <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight"
12 alphaMode="ADD" setAllPoints="true" hidden="true"/>
13 </Layer>
14 <Layer level="ARTWORK">
15 <Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check">
16 <Size>
17 <AbsDimension x="24" y="24"/>
18 </Size>
19 <Anchors>
20 <Anchor point="LEFT">
21 <Offset>
22 <AbsDimension x="0" y="0"/>
23 </Offset>
24 </Anchor>
25 </Anchors>
26 </Texture>
27 </Layer>
28 </Layers>
29 <Frames>
30 <Button name="$parentColorSwatch" hidden="true">
31 <Size>
32 <AbsDimension x="16" y="16"/>
33 </Size>
34 <Anchors>
35 <Anchor point="RIGHT">
36 <Offset>
37 <AbsDimension x="-6" y="0"/>
38 </Offset>
39 </Anchor>
40 </Anchors>
41 <Layers>
42 <Layer level="BACKGROUND">
43 <Texture name="$parentSwatchBg">
44 <Size>
45 <AbsDimension x="14" y="14"/>
46 </Size>
47 <Anchors>
48 <Anchor point="CENTER">
49 <Offset>
50 <AbsDimension x="0" y="0"/>
51 </Offset>
52 </Anchor>
53 </Anchors>
54 <Color r="1.0" g="1.0" b="1.0"/>
55 </Texture>
56 </Layer>
57 </Layers>
58 <Scripts>
59 <OnClick>
60 CloseMenus()
61 UIDropDownMenuButton_OpenColorPicker(this:GetParent())
62 </OnClick>
63 <OnEnter>
64 --CloseDropDownMenus(this:GetParent():GetParent():GetID() + 1)
65 getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r,
66 NORMAL_FONT_COLOR.g,
67 NORMAL_FONT_COLOR.b
68 )
69 --UIDropDownMenu_StopCounting(this:GetParent():GetParent())
70 </OnEnter>
71 <OnLeave>
72 getglobal(this:GetName().."SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r,
73 HIGHLIGHT_FONT_COLOR.g,
74 HIGHLIGHT_FONT_COLOR.b
75 )
76 --UIDropDownMenu_StartCounting(this:GetParent():GetParent())
77 </OnLeave>
78 </Scripts>
79 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
80 </Button>
81 <Button name="$parentExpandArrow" hidden="true">
82 <Size>
83 <AbsDimension x="16" y="16"/>
84 </Size>
85 <Anchors>
86 <Anchor point="RIGHT">
87 <Offset>
88 <AbsDimension x="-6" y="0"/>
89 </Offset>
90 </Anchor>
91 </Anchors>
92 <Scripts>
93 <OnClick>
94 --ToggleDropDownMenu(this:GetParent():GetParent():GetID() + 1, this:GetParent().value)
95 </OnClick>
96 <OnEnter>
97 --ToggleDropDownMenu(this:GetParent():GetParent():GetID() + 1, this:GetParent().value)
98 --UIDropDownMenu_StopCounting(this:GetParent():GetParent())
99 </OnEnter>
100 <OnLeave>
101 --UIDropDownMenu_StartCounting(this:GetParent():GetParent())
102 </OnLeave>
103 </Scripts>
104 <NormalTexture file="Interface\ChatFrame\ChatFrameExpandArrow"/>
105 </Button>
106 </Frames>
107 <Scripts>
108 <OnClick>
109 this.dialog:DropDownButtonClick(this:GetParent():GetParent(), this)
110 </OnClick>
111 <OnEnter>
112 getglobal(this:GetName().."Highlight"):Show()
113 --UIDropDownMenu_StopCounting(this:GetParent())
114 </OnEnter>
115 <OnLeave>
116 getglobal(this:GetName().."Highlight"):Hide()
117 --UIDropDownMenu_StartCounting(this:GetParent())
118 </OnLeave>
119 </Scripts>
120 <NormalText name="$parentNormalText" inherits="GameFontHighlightSmall" justifyH="LEFT">
121 <Anchors>
122 <Anchor point="LEFT" relativeTo="$parentCheck" relativePoint="RIGHT">
123 <Offset>
124 <AbsDimension x="2" y="0"/>
125 </Offset>
126 </Anchor>
127 </Anchors>
128 </NormalText>
129 <HighlightText name="$parentHighlightText" inherits="GameFontHighlightSmall" justifyH="LEFT">
130 <Anchors>
131 <Anchor point="LEFT" relativeTo="$parentCheck" relativePoint="RIGHT">
132 <Offset>
133 <AbsDimension x="2" y="0"/>
134 </Offset>
135 </Anchor>
136 </Anchors>
137 </HighlightText>
138 <DisabledText name="$parentDisabledText" inherits="GameFontDisableSmall" justifyH="LEFT">
139 <Anchors>
140 <Anchor point="LEFT" relativeTo="$parentCheck" relativePoint="RIGHT">
141 <Offset>
142 <AbsDimension x="2" y="0"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 </DisabledText>
147 </Button>
148  
149  
150 <Frame name="AceGUIDropDownMenuTemplate" enableMouse="true" hidden="true" virtual="true">
151 <Size>
152 <AbsDimension x="40" y="40"/>
153 </Size>
154 <Anchors>
155 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
156 <Offset>
157 <AbsDimension x="-6" y="7"/>
158 </Offset>
159 </Anchor>
160 </Anchors>
161 <Frames>
162 <Frame name="$parentNormalBackdrop" setAllPoints="true">
163 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
164 edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
165 <BackgroundInsets>
166 <AbsInset left="10" right="10" top="10" bottom="10"/>
167 </BackgroundInsets>
168 <TileSize>
169 <AbsValue val="28"/>
170 </TileSize>
171 <EdgeSize>
172 <AbsValue val="28"/>
173 </EdgeSize>
174 </Backdrop>
175 </Frame>
176 <Frame name="$parentSmallBackdrop" setAllPoints="true" hidden="true">
177 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background"
178 edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
179 <EdgeSize>
180 <AbsValue val="16"/>
181 </EdgeSize>
182 <TileSize>
183 <AbsValue val="16"/>
184 </TileSize>
185 <BackgroundInsets>
186 <AbsInset left="5" right="5" top="5" bottom="5"/>
187 </BackgroundInsets>
188 </Backdrop>
189 <Scripts>
190 <OnLoad>
191 this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r,
192 TOOLTIP_DEFAULT_COLOR.g,
193 TOOLTIP_DEFAULT_COLOR.b
194 )
195 this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
196 TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
197 TOOLTIP_DEFAULT_BACKGROUND_COLOR.b
198 )
199 </OnLoad>
200 </Scripts>
201 </Frame>
202 <ScrollFrame name="$parentScrollBox" inherits="FauxScrollFrameTemplate">
203 <Anchors>
204 <Anchor point="TOPRIGHT">
205 <Offset>
206 <AbsDimension x="-31" y="-9"/>
207 </Offset>
208 </Anchor>
209 </Anchors>
210 <Scripts>
211 <OnVerticalScroll>
212 this.dialog:ScrollDropDownMenu(this:GetParent():GetParent())
213 </OnVerticalScroll>
214 <OnMouseWheel>
215 ScrollFrameTemplate_OnMouseWheel(arg1)
216 </OnMouseWheel>
217 </Scripts>
218 </ScrollFrame>
219 <Button name="$parentButton1" inherits="AceGUIDropDownMenuButtonTemplate" id="1"/>
220 <Button name="$parentButton2" inherits="AceGUIDropDownMenuButtonTemplate" id="2"/>
221 <Button name="$parentButton3" inherits="AceGUIDropDownMenuButtonTemplate" id="3"/>
222 <Button name="$parentButton4" inherits="AceGUIDropDownMenuButtonTemplate" id="4"/>
223 <Button name="$parentButton5" inherits="AceGUIDropDownMenuButtonTemplate" id="5"/>
224 <Button name="$parentButton6" inherits="AceGUIDropDownMenuButtonTemplate" id="6"/>
225 <Button name="$parentButton7" inherits="AceGUIDropDownMenuButtonTemplate" id="7"/>
226 <Button name="$parentButton8" inherits="AceGUIDropDownMenuButtonTemplate" id="8"/>
227 <Button name="$parentButton9" inherits="AceGUIDropDownMenuButtonTemplate" id="9"/>
228 <Button name="$parentButton10" inherits="AceGUIDropDownMenuButtonTemplate" id="10"/>
229 <Button name="$parentButton11" inherits="AceGUIDropDownMenuButtonTemplate" id="11"/>
230 <Button name="$parentButton12" inherits="AceGUIDropDownMenuButtonTemplate" id="12"/>
231 <Button name="$parentButton13" inherits="AceGUIDropDownMenuButtonTemplate" id="13"/>
232 <Button name="$parentButton14" inherits="AceGUIDropDownMenuButtonTemplate" id="14"/>
233 <Button name="$parentButton15" inherits="AceGUIDropDownMenuButtonTemplate" id="15"/>
234 <Button name="$parentButton16" inherits="AceGUIDropDownMenuButtonTemplate" id="16"/>
235 <Button name="$parentButton17" inherits="AceGUIDropDownMenuButtonTemplate" id="17"/>
236 <Button name="$parentButton18" inherits="AceGUIDropDownMenuButtonTemplate" id="18"/>
237 <Button name="$parentButton19" inherits="AceGUIDropDownMenuButtonTemplate" id="19"/>
238 <Button name="$parentButton20" inherits="AceGUIDropDownMenuButtonTemplate" id="20"/>
239 </Frames>
240 <Scripts>
241 <OnClick>
242 this:Hide()
243 </OnClick>
244 <OnEnter>
245 --UIDropDownMenu_StopCounting(this)
246 </OnEnter>
247 <OnLeave>
248 --UIDropDownMenu_StartCounting(this)
249 </OnLeave>
250 <OnUpdate>
251 --UIDropDownMenu_OnUpdate(arg1)
252 </OnUpdate>
253 <OnHide>
254 this.dialog:CloseDropDownMenu(this)
255 </OnHide>
256 </Scripts>
257 </Frame>
258  
259  
260 <!-- DropDown box template -->
261 <Frame name="AceGUIDropDownTemplate" virtual="true">
262 <Size>
263 <AbsDimension x="160" y="26"/>
264 </Size>
265 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background"
266 edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
267 <EdgeSize>
268 <AbsValue val="16"/>
269 </EdgeSize>
270 <TileSize>
271 <AbsValue val="16"/>
272 </TileSize>
273 <BackgroundInsets>
274 <AbsInset left="5" right="5" top="5" bottom="5"/>
275 </BackgroundInsets>
276 </Backdrop>
277 <Layers>
278 <Layer level="BACKGROUND">
279 <FontString name="$parentLabel" inherits="GameFontNormalSmall">
280 <Anchors>
281 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
282 <Offset>
283 <AbsDimension x="5" y="1"/>
284 </Offset>
285 </Anchor>
286 </Anchors>
287 </FontString>
288 <FontString name="$parentSelection" inherits="GameFontHighlightSmall" justifyH="RIGHT">
289 <Size>
290 <AbsDimension x="0" y="16"/>
291 </Size>
292 <Anchors>
293 <Anchor point="RIGHT">
294 <Offset>
295 <AbsDimension x="-26" y="0"/>
296 </Offset>
297 </Anchor>
298 </Anchors>
299 </FontString>
300 </Layer>
301 </Layers>
302 <Frames>
303 <Button name="$parentButton">
304 <Size>
305 <AbsDimension x="24" y="24"/>
306 </Size>
307 <Anchors>
308 <Anchor point="RIGHT">
309 <Offset>
310 <AbsDimension x="-1" y="0"/>
311 </Offset>
312 </Anchor>
313 </Anchors>
314 <Scripts>
315 <OnClick>
316 this:GetParent().dialog:ToggleDropDownMenu(this:GetParent())
317 PlaySound("igMainMenuOptionCheckBoxOn")
318 </OnClick>
319 </Scripts>
320 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
321 <Size>
322 <AbsDimension x="24" y="24"/>
323 </Size>
324 <Anchors>
325 <Anchor point="RIGHT"/>
326 </Anchors>
327 </NormalTexture>
328 <PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
329 <Size>
330 <AbsDimension x="24" y="24"/>
331 </Size>
332 <Anchors>
333 <Anchor point="RIGHT"/>
334 </Anchors>
335 </PushedTexture>
336 <DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
337 <Size>
338 <AbsDimension x="24" y="24"/>
339 </Size>
340 <Anchors>
341 <Anchor point="RIGHT"/>
342 </Anchors>
343 </DisabledTexture>
344 <HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
345 <Size>
346 <AbsDimension x="24" y="24"/>
347 </Size>
348 <Anchors>
349 <Anchor point="RIGHT"/>
350 </Anchors>
351 </HighlightTexture>
352 </Button>
353 <Frame name="$parentMenu" frameStrata="FULLSCREEN_DIALOG" inherits="AceGUIDropDownMenuTemplate"/>
354 </Frames>
355 <Scripts>
356 <OnLoad>
357 this:SetBackdropBorderColor(0.4, 0.4, 0.4)
358 this:SetBackdropColor(0.1, 0.1, 0.1)
359 </OnLoad>
360 </Scripts>
361 </Frame>
362 </Ui>