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/ ..\FrameXML\UI.xsd"> |
2 | |||
3 | <Script file="AutoCraft.lua"/> |
||
4 | |||
5 | <Frame name="AutoCraftFrame" frameStrata="LOW" enableMouse="false" parent="UIParent"> |
||
6 | <Scripts> |
||
7 | <OnLoad> |
||
8 | AutoCraft.OnLoad(); |
||
9 | </OnLoad> |
||
10 | <OnUpdate> |
||
11 | AutoCraft.OnUpdate(arg1); |
||
12 | </OnUpdate> |
||
13 | <OnEvent> |
||
14 | AutoCraft.OnEvent(event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); |
||
15 | </OnEvent> |
||
16 | </Scripts> |
||
17 | </Frame> |
||
18 | <Button name="AutoCraftQueue" inherits="UIPanelButtonTemplate" text="FAC_QUEUE_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
19 | <Size> |
||
20 | <AbsDimension x="80" y="22"/> |
||
21 | </Size> |
||
22 | <Scripts> |
||
23 | <OnClick> |
||
24 | AutoCraft.Queue(TradeSkillInputBox:GetNumber()); |
||
25 | </OnClick> |
||
26 | <OnEnter> |
||
27 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
28 | GameTooltip:SetText(string.format(QUEUE_BUTTON_TOOLTIP, TradeSkillInputBox:GetNumber())); |
||
29 | GameTooltip:Show(); |
||
30 | </OnEnter> |
||
31 | <OnLeave> |
||
32 | GameTooltip:Hide(); |
||
33 | </OnLeave> |
||
34 | </Scripts> |
||
35 | </Button> |
||
36 | <Button name="AutoCraftQueueAll" inherits="UIPanelButtonTemplate" text="FAC_QUEUE_ALL_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
37 | <Size> |
||
38 | <AbsDimension x="80" y="22"/> |
||
39 | </Size> |
||
40 | <Scripts> |
||
41 | <OnClick> |
||
42 | local _, _, numAvailable = AutoCraft.GetTradeSkillInfo(GetTradeSkillSelectionIndex()); |
||
43 | TradeSkillInputBox:SetNumber(numAvailable); |
||
44 | AutoCraft.Queue(TradeSkillInputBox:GetNumber()); |
||
45 | </OnClick> |
||
46 | <OnEnter> |
||
47 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
48 | local _, _, numAvailable = AutoCraft.GetTradeSkillInfo(GetTradeSkillSelectionIndex()); |
||
49 | GameTooltip:SetText(string.format(QUEUE_BUTTON_TOOLTIP, numAvailable)); |
||
50 | GameTooltip:Show(); |
||
51 | </OnEnter> |
||
52 | <OnLeave> |
||
53 | GameTooltip:Hide(); |
||
54 | </OnLeave> |
||
55 | </Scripts> |
||
56 | </Button> |
||
57 | <Button name="AutoCraftBuy" inherits="UIPanelButtonTemplate" text="FAC_BUY_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
58 | <Size> |
||
59 | <AbsDimension x="80" y="22"/> |
||
60 | </Size> |
||
61 | <Scripts> |
||
62 | <OnClick> |
||
63 | AutoCraft.BuyReagents(TradeSkillInputBox:GetNumber()); |
||
64 | </OnClick> |
||
65 | <OnEnter> |
||
66 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
67 | GameTooltip:AppendText(string.format(BUY_BUTTON_TOOLTIP, TradeSkillInputBox:GetNumber())); |
||
68 | GameTooltip:Show(); |
||
69 | </OnEnter> |
||
70 | <OnLeave> |
||
71 | GameTooltip:Hide(); |
||
72 | </OnLeave> |
||
73 | </Scripts> |
||
74 | </Button> |
||
75 | <Button name="AutoCraftQueueEverything" inherits="UIPanelButtonTemplate" text="FAC_QUEUE_EVERYTHING_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
76 | <Size> |
||
77 | <AbsDimension x="144" y="22"/> |
||
78 | </Size> |
||
79 | <Anchors> |
||
80 | <Anchor point="TOPLEFT" relativeTo="AutoCraftQueueAll" relativePoint="BOTTOMLEFT"> |
||
81 | <Offset> |
||
82 | <AbsDimension x="-3" y="0"/> |
||
83 | </Offset> |
||
84 | </Anchor> |
||
85 | </Anchors> |
||
86 | <Scripts> |
||
87 | <OnClick> |
||
88 | AutoCraft.QueueEverything(); |
||
89 | </OnClick> |
||
90 | </Scripts> |
||
91 | </Button> |
||
92 | <Button name="AutoCraftRunQueue" inherits="UIPanelButtonTemplate" text="FAC_RUN_QUEUE_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
93 | <Size> |
||
94 | <AbsDimension x="92" y="22"/> |
||
95 | </Size> |
||
96 | <Anchors> |
||
97 | <Anchor point="LEFT" relativeTo="AutoCraftQueueEverything" relativePoint="RIGHT"> |
||
98 | <Offset> |
||
99 | <AbsDimension x="-2" y="0"/> |
||
100 | </Offset> |
||
101 | </Anchor> |
||
102 | </Anchors> |
||
103 | <Scripts> |
||
104 | <OnClick> |
||
105 | AutoCraft.StartStop(); |
||
106 | </OnClick> |
||
107 | </Scripts> |
||
108 | </Button> |
||
109 | <Button name="AutoCraftClear" inherits="UIPanelButtonTemplate" text="FAC_CLEAR_QUEUE_BUTTON"> <!-- parent="TradeSkillFrame"> --> |
||
110 | <Size> |
||
111 | <AbsDimension x="96" y="22"/> |
||
112 | </Size> |
||
113 | <Anchors> |
||
114 | <Anchor point="LEFT" relativeTo="AutoCraftRunQueue" relativePoint="RIGHT"> |
||
115 | <Offset> |
||
116 | <AbsDimension x="0" y="0"/> |
||
117 | </Offset> |
||
118 | </Anchor> |
||
119 | </Anchors> |
||
120 | <Scripts> |
||
121 | <OnClick> |
||
122 | AutoCraft.Clear(); |
||
123 | </OnClick> |
||
124 | </Scripts> |
||
125 | </Button> |
||
126 | <CheckButton name="AutoCraftRunAutomatically" inherits="OptionsCheckButtonTemplate"> <!-- parent="TradeSkillFrame"> --> |
||
127 | <Size> |
||
128 | <AbsDimension x="24" y="24"/> |
||
129 | </Size> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOPLEFT" relativeTo="AutoCraftQueueEverything" relativePoint="BOTTOMLEFT"> |
||
132 | <Offset> |
||
133 | <AbsDimension x="1" y="-1"/> |
||
134 | </Offset> |
||
135 | </Anchor> |
||
136 | </Anchors> |
||
137 | <Scripts> |
||
138 | <OnEnter> |
||
139 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
140 | GameTooltip:SetText(string.format(RUN_AUTOMATICALLY_TOOLTIP, TradeSkillInputBox:GetNumber())); |
||
141 | GameTooltip:Show(); |
||
142 | </OnEnter> |
||
143 | <OnLeave> |
||
144 | GameTooltip:Hide(); |
||
145 | </OnLeave> |
||
146 | <OnClick> |
||
147 | if ( this:GetChecked() ) then |
||
148 | FAC_Config.AutoIterate = true; |
||
149 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
150 | else |
||
151 | FAC_Config.AutoIterate = false; |
||
152 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
153 | end |
||
154 | </OnClick> |
||
155 | </Scripts> |
||
156 | </CheckButton> |
||
157 | |||
158 | <Frame name="AutoCraftBackground" hidden="true"> <!-- parent="TradeSkillFrame"> --> |
||
159 | <Size> |
||
160 | <AbsDimension x="354" y="560"/> |
||
161 | </Size> |
||
162 | <Layers> |
||
163 | <Layer level="BACKGROUND"> |
||
164 | <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft"> |
||
165 | <Size> |
||
166 | <AbsDimension x="256" y="128"/> |
||
167 | </Size> |
||
168 | <Anchors> |
||
169 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT"/> |
||
170 | </Anchors> |
||
171 | <TexCoords left="0" right="1.0" top="0.5" bottom="1.0"/> |
||
172 | </Texture> |
||
173 | <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft"> |
||
174 | <Size> |
||
175 | <AbsDimension x="128" y="128"/> |
||
176 | </Size> |
||
177 | <Anchors> |
||
178 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/> |
||
179 | <Offset> |
||
180 | <AbsDimension x="-32" y="0"/> |
||
181 | </Offset> |
||
182 | </Anchors> |
||
183 | <TexCoords left="1.0" right="0" top="0.5" bottom="1.0"/> |
||
184 | </Texture> |
||
185 | </Layer> |
||
186 | </Layers> |
||
187 | </Frame> |
||
188 | |||
189 | <Button name="QueuedSkillIconTemplate" inherits="ItemButtonTemplate" virtual="true"> |
||
190 | <Scripts> |
||
191 | <OnClick> |
||
192 | AutoCraft.Queue_OnClick(); |
||
193 | </OnClick> |
||
194 | <OnEnter> |
||
195 | AutoCraft.Queue_OnEvent(); |
||
196 | </OnEnter> |
||
197 | <OnLeave> |
||
198 | GameTooltip:Hide(); |
||
199 | </OnLeave> |
||
200 | </Scripts> |
||
201 | </Button> |
||
202 | |||
203 | <Frame name="QueueIconsFrame" toplevel="true" parent="UIParent" hidden="false"> |
||
204 | <Size> |
||
205 | <AbsDimension x="505" y="43"/> |
||
206 | </Size> |
||
207 | <Anchors> |
||
208 | <Anchor point="BOTTOMLEFT" relativeTo="CastingBarFrame" relativePoint="TOPLEFT"> |
||
209 | <Offset> |
||
210 | <AbsDimension x="2" y="10"/> |
||
211 | </Offset> |
||
212 | </Anchor> |
||
213 | </Anchors> |
||
214 | <Layers> |
||
215 | <Layer level="BACKGROUND"> |
||
216 | <FontString name="QueueMessageText" parent="QueueIconsFrame" inherits="GameFontHighlight"> |
||
217 | <Size> |
||
218 | <AbsDimension x="185" y="32"/> |
||
219 | </Size> |
||
220 | <Anchors> |
||
221 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
||
222 | <Offset> |
||
223 | <AbsDimension x="-2" y="-20"/> |
||
224 | </Offset> |
||
225 | </Anchor> |
||
226 | </Anchors> |
||
227 | </FontString> |
||
228 | </Layer> |
||
229 | </Layers> |
||
230 | <Frames> |
||
231 | <Button name="QueuedSkillIcon1" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="1"> |
||
232 | <Anchors> |
||
233 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT"> |
||
234 | <Offset> |
||
235 | <AbsDimension x="0" y="0"/> |
||
236 | </Offset> |
||
237 | </Anchor> |
||
238 | </Anchors> |
||
239 | </Button> |
||
240 | <Button name="QueuedSkillIcon2" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="2"> |
||
241 | <Anchors> |
||
242 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon1" relativePoint="RIGHT"> |
||
243 | <Offset> |
||
244 | <AbsDimension x="4" y="0"/> |
||
245 | </Offset> |
||
246 | </Anchor> |
||
247 | </Anchors> |
||
248 | </Button> |
||
249 | <Button name="QueuedSkillIcon3" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="3"> |
||
250 | <Anchors> |
||
251 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon2" relativePoint="RIGHT"> |
||
252 | <Offset> |
||
253 | <AbsDimension x="4" y="0"/> |
||
254 | </Offset> |
||
255 | </Anchor> |
||
256 | </Anchors> |
||
257 | </Button> |
||
258 | <Button name="QueuedSkillIcon4" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="4"> |
||
259 | <Anchors> |
||
260 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon3" relativePoint="RIGHT"> |
||
261 | <Offset> |
||
262 | <AbsDimension x="4" y="0"/> |
||
263 | </Offset> |
||
264 | </Anchor> |
||
265 | </Anchors> |
||
266 | </Button> |
||
267 | <Button name="QueuedSkillIcon5" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="5"> |
||
268 | <Anchors> |
||
269 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon4" relativePoint="RIGHT"> |
||
270 | <Offset> |
||
271 | <AbsDimension x="4" y="0"/> |
||
272 | </Offset> |
||
273 | </Anchor> |
||
274 | </Anchors> |
||
275 | </Button> |
||
276 | <Button name="QueuedSkillIcon6" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="6"> |
||
277 | <Anchors> |
||
278 | <Anchor point="BOTTOMLEFT" relativeTo="QueuedSkillIcon1" relativePoint="TOPLEFT"> |
||
279 | <Offset> |
||
280 | <AbsDimension x="0" y="4"/> |
||
281 | </Offset> |
||
282 | </Anchor> |
||
283 | </Anchors> |
||
284 | </Button> |
||
285 | <Button name="QueuedSkillIcon7" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="7"> |
||
286 | <Anchors> |
||
287 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon6" relativePoint="RIGHT"> |
||
288 | <Offset> |
||
289 | <AbsDimension x="4" y="0"/> |
||
290 | </Offset> |
||
291 | </Anchor> |
||
292 | </Anchors> |
||
293 | </Button> |
||
294 | <Button name="QueuedSkillIcon8" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="8"> |
||
295 | <Anchors> |
||
296 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon7" relativePoint="RIGHT"> |
||
297 | <Offset> |
||
298 | <AbsDimension x="4" y="0"/> |
||
299 | </Offset> |
||
300 | </Anchor> |
||
301 | </Anchors> |
||
302 | </Button> |
||
303 | <Button name="QueuedSkillIcon9" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="9"> |
||
304 | <Anchors> |
||
305 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon8" relativePoint="RIGHT"> |
||
306 | <Offset> |
||
307 | <AbsDimension x="4" y="0"/> |
||
308 | </Offset> |
||
309 | </Anchor> |
||
310 | </Anchors> |
||
311 | </Button> |
||
312 | <Button name="QueuedSkillIcon10" inherits="QueuedSkillIconTemplate" parent="QueueIconsFrame" hidden="true" id="10"> |
||
313 | <Anchors> |
||
314 | <Anchor point="LEFT" relativeTo="QueuedSkillIcon9" relativePoint="RIGHT"> |
||
315 | <Offset> |
||
316 | <AbsDimension x="4" y="0"/> |
||
317 | </Offset> |
||
318 | </Anchor> |
||
319 | </Anchors> |
||
320 | </Button> |
||
321 | </Frames> |
||
322 | </Frame> |
||
323 | </Ui> |