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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML\UI.xsd">
2 <!-- $Id: OneView.xml 8013 2006-08-14 20:35:30Z hk2717 $ -->
3 <Button name="OneViewItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
4 <Scripts>
5 <OnLoad>
6 this:SetNormalTexture("Interface\\AddOns\\OneBag\\BagSlot")
7 </OnLoad>
8 <OnEnter>
9 if this.itemId then
10 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
11 GameTooltip:SetHyperlink(this.itemId)
12 end
13 </OnEnter>
14 <OnLeave>
15 GameTooltip:Hide()
16 </OnLeave>
17 <OnClick>
18 if this.itemId and IsShiftKeyDown() then
19 OneView:LinkItem(this.itemId)
20 end
21 </OnClick>
22 </Scripts>
23 </Button>
24  
25 <CheckButton name="OneViewBagButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
26 <Scripts>
27 <OnEnter>
28 if this.itemId then
29 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
30 GameTooltip:SetHyperlink(this.itemId)
31 end
32  
33 OneView:HighlightBagSlots(this:GetID())
34 </OnEnter>
35 <OnLeave>
36 GameTooltip:Hide()
37  
38 if not this:GetChecked() and OneView.frame.bags[this:GetID()] then
39 OneView:UnhighlightBagSlots(this:GetID())
40 OneView.frame.bags[this:GetID()].colorLocked = false
41 elseif OneView.frame.bags[this:GetID()] then
42 OneView.frame.bags[this:GetID()].colorLocked = true
43 end
44 </OnLeave>
45 <OnLoad>
46 this:SetScale(.85)
47 </OnLoad>
48 <OnClick>
49 PlaySound("BAGMENUBUTTONPRESS")
50  
51 if this.itemId and IsShiftKeyDown() then
52 OneView:LinkItem(this.itemId)
53 this:SetChecked(not this:GetChecked())
54 elseif not this:GetChecked() and OneView.frame.bags[this:GetID()] then
55 OneView:UnhighlightBagSlots(this:GetID())
56 OneView.frame.bags[this:GetID()].colorLocked = false
57 elseif OneView.frame.bags[this:GetID()] then
58 OneView.frame.bags[this:GetID()].colorLocked = true
59 end
60 </OnClick>
61 </Scripts>
62 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
63 </CheckButton>
64  
65 <Frame name="OneViewFrame" inherits="OneBagBaseFrameTemplate" parent="UIParent">
66 <Anchors>
67 <Anchor point="TOPLEFT" >
68 <Offset>
69 <AbsDimension x="400" y="-300"/>
70 </Offset>
71 </Anchor>
72 </Anchors>
73 <Scripts>
74 <OnLoad>
75 tinsert(UISpecialFrames,this:GetName())
76 this:RegisterForDrag("LeftButton")
77 </OnLoad>
78 <OnShow>
79 this.handler:LoadCharacter()
80 this.handler:OnBaseShow()
81 this.handler:OnCustomShow()
82 </OnShow>
83 <OnDragStart>
84 if not this.handler.db.profile.locked then
85 this:StartMoving()
86 this.isMoving = true
87 end
88 </OnDragStart>
89 <OnDragStop>
90 this:StopMovingOrSizing()
91 if this.isMoving then
92 local point = {}
93 point.top = this:GetTop()
94 point.left = this:GetLeft()
95 point.parent = this:GetParent():GetName()
96  
97 this.handler.db.profile.point = point
98 end
99 this.isMoving = false
100 </OnDragStop>
101 </Scripts>
102 <Frames>
103 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
104 <Anchors>
105 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
106 <Offset>
107 <AbsDimension x="0" y="0"/>
108 </Offset>
109 </Anchor>
110 </Anchors>
111 <Scripts>
112 <OnClick>
113 this:GetParent():Hide()
114 </OnClick>
115 </Scripts>
116 </Button>
117 <Button name="$parentConfigButton" inherits="UIPanelButtonTemplate">
118 <Anchors>
119 <Anchor point="RIGHT" relativeTo="$parentCloseButton" relativePoint="LEFT">
120 <Offset>
121 <AbsDimension x="0" y="1"/>
122 </Offset>
123 </Anchor>
124 </Anchors>
125 <Size>
126 <AbsDimension x="130" y="20"/>
127 </Size>
128 <Scripts>
129 <OnClick>
130 this:GetParent().handler:OpenMenu()
131 </OnClick>
132 <OnLoad>
133 this:SetText(ONEVIEW_LOCALE_CONFIGMENU)
134 this:SetScale(.85)
135 </OnLoad>
136 </Scripts>
137 </Button>
138 <Button name="$parentCharSelectButton" inherits="UIPanelButtonTemplate">
139 <Anchors>
140 <Anchor point="TOP" relativeTo="$parentConfigButton" relativePoint="BOTTOM">
141 <Offset>
142 <AbsDimension x="0" y="0"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 <Size>
147 <AbsDimension x="130" y="20"/>
148 </Size>
149 <Scripts>
150 <OnClick>
151 this:GetParent().handler:CharSelect()
152 </OnClick>
153 <OnLoad>
154 this:SetText(ONEVIEW_LOCALE_CHARSELECT)
155 this:SetScale(.85)
156 </OnLoad>
157 </Scripts>
158 </Button>
159 <Button name="$parentInventoryButton">
160 <Size>
161 <AbsDimension x="32" y="30"/>
162 </Size>
163 <Anchors>
164 <Anchor point="TOPLEFT">
165 <Offset>
166 <AbsDimension x="3" y="-9"/>
167 </Offset>
168 </Anchor>
169 </Anchors>
170 <Scripts>
171 <OnShow>
172 local handler = this:GetParent().handler
173 if not handler.db.profile.show.inventory then
174 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Up")
175 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Down")
176 else
177 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up")
178 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
179 end
180 </OnShow>
181 <OnClick>
182 local handler = this:GetParent().handler
183 if handler.db.profile.show.inventory then
184 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Up")
185 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Down")
186 handler.db.profile.show.inventory = false
187 else
188 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up")
189 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
190 handler.db.profile.show.inventory = true
191 end
192 handler:OrganizeFrame()
193 </OnClick>
194 </Scripts>
195 <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
196 <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
197 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
198 </Button>
199 <Button name="$parentBankButton">
200 <Size>
201 <AbsDimension x="32" y="30"/>
202 </Size>
203 <Anchors>
204 <Anchor point="TOPLEFT">
205 <Offset>
206 <AbsDimension x="3" y="-9"/>
207 </Offset>
208 </Anchor>
209 </Anchors>
210 <Scripts>
211 <OnShow>
212 local handler = this:GetParent().handler
213 if not handler.db.profile.show.bank then
214 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Up")
215 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Down")
216 else
217 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up")
218 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
219 end
220 </OnShow>
221 <OnClick>
222 local handler = this:GetParent().handler
223 if handler.db.profile.show.bank then
224 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Up")
225 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Down")
226 handler.db.profile.show.bank = false
227 else
228 this:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up")
229 this:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
230 handler.db.profile.show.bank = true
231 end
232 handler:OrganizeFrame()
233 </OnClick>
234 <OnLoad>
235 --getglobal(this:GetParent():GetName() .. "Name"):ClearAllPoints()
236 --getglobal(this:GetParent():GetName() .. "Name"):SetPoint("LEFT", this:GetName(), "RIGHT", 5, 1)
237 </OnLoad>
238 </Scripts>
239 <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
240 <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
241 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
242 </Button>
243 <CheckButton name="$parentBag1" inherits="OneViewBagButtonTemplate" id="1">
244 <Anchors>
245 <Anchor point="LEFT" relativeTo="$parentBag0" relativePoint="RIGHT">
246 <Offset>
247 <AbsDimension x="2" y="0"/>
248 </Offset>
249 </Anchor>
250 </Anchors>
251 </CheckButton>
252 <CheckButton name="$parentBag2" inherits="OneViewBagButtonTemplate" id="2">
253 <Anchors>
254 <Anchor point="LEFT" relativeTo="$parentBag1" relativePoint="RIGHT">
255 <Offset>
256 <AbsDimension x="2" y="0"/>
257 </Offset>
258 </Anchor>
259 </Anchors>
260 </CheckButton>
261 <CheckButton name="$parentBag3" inherits="OneViewBagButtonTemplate" id="3">
262 <Anchors>
263 <Anchor point="LEFT" relativeTo="$parentBag2" relativePoint="RIGHT">
264 <Offset>
265 <AbsDimension x="2" y="0"/>
266 </Offset>
267 </Anchor>
268 </Anchors>
269 </CheckButton>
270 <CheckButton name="$parentBag4" inherits="OneViewBagButtonTemplate" id="4">
271 <Anchors>
272 <Anchor point="LEFT" relativeTo="$parentBag3" relativePoint="RIGHT">
273 <Offset>
274 <AbsDimension x="2" y="0"/>
275 </Offset>
276 </Anchor>
277 </Anchors>
278 </CheckButton>
279 <CheckButton name="$parentBag5" inherits="OneViewBagButtonTemplate" id="5">
280 <Anchors>
281 <Anchor point="LEFT">
282 <Offset>
283 <AbsDimension x="0" y="0"/>
284 </Offset>
285 </Anchor>
286 </Anchors>
287 </CheckButton>
288 <CheckButton name="$parentBag6" inherits="OneViewBagButtonTemplate" id="6">
289 <Anchors>
290 <Anchor point="LEFT" relativeTo="$parentBag5" relativePoint="RIGHT">
291 <Offset>
292 <AbsDimension x="2" y="0"/>
293 </Offset>
294 </Anchor>
295 </Anchors>
296 </CheckButton>
297 <CheckButton name="$parentBag7" inherits="OneViewBagButtonTemplate" id="7">
298 <Anchors>
299 <Anchor point="LEFT" relativeTo="$parentBag6" relativePoint="RIGHT">
300 <Offset>
301 <AbsDimension x="2" y="0"/>
302 </Offset>
303 </Anchor>
304 </Anchors>
305 </CheckButton>
306 <CheckButton name="$parentBag8" inherits="OneViewBagButtonTemplate" id="8">
307 <Anchors>
308 <Anchor point="LEFT" relativeTo="$parentBag7" relativePoint="RIGHT">
309 <Offset>
310 <AbsDimension x="2" y="0"/>
311 </Offset>
312 </Anchor>
313 </Anchors>
314 </CheckButton>
315 <CheckButton name="$parentBag9" inherits="OneViewBagButtonTemplate" id="9">
316 <Anchors>
317 <Anchor point="LEFT" relativeTo="$parentBag8" relativePoint="RIGHT">
318 <Offset>
319 <AbsDimension x="2" y="0"/>
320 </Offset>
321 </Anchor>
322 </Anchors>
323 </CheckButton>
324 <CheckButton name="$parentBag10" inherits="OneViewBagButtonTemplate" id="10">
325 <Anchors>
326 <Anchor point="LEFT" relativeTo="$parentBag9" relativePoint="RIGHT">
327 <Offset>
328 <AbsDimension x="2" y="0"/>
329 </Offset>
330 </Anchor>
331 </Anchors>
332 </CheckButton>
333 <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate">
334 <Size>
335 <AbsDimension x="206" y="14"/>
336 </Size>
337 <Anchors>
338 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
339 <Offset>
340 <AbsDimension x="0" y="8"/>
341 </Offset>
342 </Anchor>
343 </Anchors>
344 </Frame>
345 </Frames>
346 <Layers>
347 <Layer level="ARTWORK">
348 <FontString name="$parentBankName" inherits="GameFontNormal" justifyH="LEFT">
349 <Anchors>
350 <Anchor point="LEFT" relativeTo="OneViewFrameBankButton" relativePoint="RIGHT">
351 <Offset>
352 <AbsDimension x="5" y="1"/>
353 </Offset>
354 </Anchor>
355 </Anchors>
356 </FontString>
357 <FontString name="$parentInventoryName" inherits="GameFontNormal" justifyH="LEFT">
358 <Anchors>
359 <Anchor point="LEFT" relativeTo="$parentInventoryButton" relativePoint="RIGHT">
360 <Offset>
361 <AbsDimension x="5" y="1"/>
362 </Offset>
363 </Anchor>
364 </Anchors>
365 </FontString>
366 <FontString name="$parentBankInfo1" inherits="GameFontNormal" justifyH="LEFT">
367 <Anchors>
368 <Anchor point="BOTTOMLEFT">
369 <Offset>
370 <AbsDimension x="8" y="9"/>
371 </Offset>
372 </Anchor>
373 </Anchors>
374 </FontString>
375 <FontString name="$parentBankInfo2" inherits="GameFontNormal" justifyH="LEFT">
376 <Anchors>
377 <Anchor point="TOPLEFT" relativeTo="$parentBankInfo1" relativePoint="TOPRIGHT">
378 <Offset>
379 <AbsDimension x="5" y="0"/>
380 </Offset>
381 </Anchor>
382 </Anchors>
383 </FontString>
384 <FontString name="$parentBankInfo3" inherits="GameFontNormal" justifyH="LEFT">
385 <Anchors>
386 <Anchor point="TOPLEFT" relativeTo="$parentBankInfo2" relativePoint="TOPRIGHT">
387 <Offset>
388 <AbsDimension x="5" y="0"/>
389 </Offset>
390 </Anchor>
391 </Anchors>
392 </FontString>
393 <FontString name="$parentBankInfo4" inherits="GameFontNormal" justifyH="LEFT">
394 <Anchors>
395 <Anchor point="TOPLEFT" relativeTo="$parentBankInfo3" relativePoint="TOPRIGHT">
396 <Offset>
397 <AbsDimension x="5" y="0"/>
398 </Offset>
399 </Anchor>
400 </Anchors>
401 </FontString>
402 <FontString name="$parentInventoryInfo1" inherits="GameFontNormal" justifyH="LEFT">
403 <Anchors>
404 <Anchor point="BOTTOMLEFT">
405 <Offset>
406 <AbsDimension x="8" y="9"/>
407 </Offset>
408 </Anchor>
409 </Anchors>
410 </FontString>
411 <FontString name="$parentInventoryInfo2" inherits="GameFontNormal" justifyH="LEFT">
412 <Anchors>
413 <Anchor point="TOPLEFT" relativeTo="$parentInventoryInfo1" relativePoint="TOPRIGHT">
414 <Offset>
415 <AbsDimension x="5" y="0"/>
416 </Offset>
417 </Anchor>
418 </Anchors>
419 </FontString>
420 <FontString name="$parentInventoryInfo3" inherits="GameFontNormal" justifyH="LEFT">
421 <Anchors>
422 <Anchor point="TOPLEFT" relativeTo="$parentInventoryInfo2" relativePoint="TOPRIGHT">
423 <Offset>
424 <AbsDimension x="5" y="0"/>
425 </Offset>
426 </Anchor>
427 </Anchors>
428 </FontString>
429 <FontString name="$parentInventoryInfo4" inherits="GameFontNormal" justifyH="LEFT">
430 <Anchors>
431 <Anchor point="TOPLEFT" relativeTo="$parentInventoryInfo3" relativePoint="TOPRIGHT">
432 <Offset>
433 <AbsDimension x="5" y="0"/>
434 </Offset>
435 </Anchor>
436 </Anchors>
437 </FontString>
438 </Layer>
439 </Layers>
440 </Frame>
441 </Ui>