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" |
2 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML/UI.xsd"> |
||
3 | <Script file="locals.lua"/> |
||
4 | <Script file="MyBags.lua"/> |
||
5 | <!-- Templates --> |
||
6 | <Button name="MyBagsItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true"> |
||
7 | <Frames> |
||
8 | <Model name="$parentCooldown" inherits="CooldownFrameTemplate"/> |
||
9 | </Frames> |
||
10 | <Scripts> |
||
11 | <OnLoad> MyBagsCoreClass.ItemButton_OnLoad()</OnLoad> |
||
12 | <OnClick> self = this:GetParent():GetParent().self self:ItemButton_OnClick(arg1)</OnClick> |
||
13 | <OnDragStart> self = this:GetParent():GetParent().self self:ItemButton_OnDragStart()</OnDragStart> |
||
14 | <OnReceiveDrag> self = this:GetParent():GetParent().self self:ItemButton_OnReceiveDrag()</OnReceiveDrag> |
||
15 | <OnEnter> self = this:GetParent():GetParent().self self:ItemButton_OnEnter()</OnEnter> |
||
16 | <OnLeave> MyBagsCoreClass.ItemButton_OnLeave()</OnLeave> |
||
17 | </Scripts> |
||
18 | </Button> |
||
19 | <CheckButton name="MyBagsBagButtonTemplate" inherits="ItemButtonTemplate" hidden="true" virtual="true"> |
||
20 | <CheckedTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
21 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/> |
||
22 | <Scripts> |
||
23 | <OnLoad> |
||
24 | this.isBag = 1; |
||
25 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp") |
||
26 | this:RegisterForDrag("LeftButton") |
||
27 | </OnLoad> |
||
28 | <OnClick> |
||
29 | self = this:GetParent():GetParent().self |
||
30 | self:BagButton_OnClick(arg1) |
||
31 | </OnClick> |
||
32 | <OnDragStart> |
||
33 | self = this:GetParent():GetParent().self |
||
34 | self:BagButton_OnDragStart() |
||
35 | </OnDragStart> |
||
36 | <OnReceiveDrag> |
||
37 | self = this:GetParent():GetParent().self |
||
38 | self:BagButton_OnReceiveDrag() |
||
39 | </OnReceiveDrag> |
||
40 | <OnEnter> |
||
41 | self = this:GetParent():GetParent().self |
||
42 | self:BagButton_OnEnter() |
||
43 | </OnEnter> |
||
44 | <OnLeave> |
||
45 | self = this:GetParent():GetParent().self |
||
46 | self:BagButton_OnLeave() |
||
47 | </OnLeave> |
||
48 | </Scripts> |
||
49 | </CheckButton> |
||
50 | <CheckButton name="MyBagsKeyButtonTemplate" inherits="ItemButtonTemplate" virtual="true" id="KEYRING_CONTAINER"> |
||
51 | <Size x="18" y="39"/> |
||
52 | <Scripts> |
||
53 | <OnLoad> |
||
54 | this.isBag = 1 |
||
55 | this:SetID(KEYRING_CONTAINER) |
||
56 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp") |
||
57 | this:RegisterForDrag("LeftButton") |
||
58 | </OnLoad> |
||
59 | <OnClick> |
||
60 | self = this:GetParent():GetParent().self |
||
61 | self:BagButton_OnClick(arg1) |
||
62 | </OnClick> |
||
63 | <OnReceiveDrag> |
||
64 | self = this:GetParent():GetParent().self |
||
65 | self:BagButton_OnReceiveDrag() |
||
66 | </OnReceiveDrag> |
||
67 | <!-- <OnEnter> |
||
68 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT") |
||
69 | GameTooltip:SetText(KEYRING, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b) |
||
70 | GameTooltip:AddLine() |
||
71 | </OnEnter> |
||
72 | <OnLeave> |
||
73 | GameTooltip:Hide() |
||
74 | </OnLeave> |
||
75 | --> <OnEnter> |
||
76 | self = this:GetParent():GetParent().self |
||
77 | self:BagButton_OnEnter() |
||
78 | </OnEnter> |
||
79 | <OnLeave> |
||
80 | self = this:GetParent():GetParent().self |
||
81 | self:BagButton_OnLeave() |
||
82 | </OnLeave> |
||
83 | </Scripts> |
||
84 | <NormalTexture file="Interface\Buttons\UI-Button-KeyRing"> |
||
85 | <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/> |
||
86 | </NormalTexture> |
||
87 | <HighlightTexture file="Interface\Buttons\UI-Button-KeyRing-Highlight" alphaMode="ADD"> |
||
88 | <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/> |
||
89 | </HighlightTexture> |
||
90 | <PushedTexture file="Interface\Buttons\UI-Button-KeyRing-Down"> |
||
91 | <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/> |
||
92 | </PushedTexture> |
||
93 | </CheckButton> |
||
94 | <Frame name="MyBagsContainerTemplate" virtual="true"> |
||
95 | <Frames> |
||
96 | <Frame name="$parentBackRow1"/> |
||
97 | <Frame name="$parentBackRow2"/> |
||
98 | <Frame name="$parentBackRow3"/> |
||
99 | <CheckButton name="$parentBag" inherits="MyBagsBagButtonTemplate" id="0"/> |
||
100 | </Frames> |
||
101 | </Frame> |
||
102 | <Frame name="MyBagsButtonBarTemplate" hidden="false" virtual="true"> |
||
103 | <Size> |
||
104 | <AbsDimension x="100" y="20"/> |
||
105 | </Size> |
||
106 | <Anchors> |
||
107 | <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT"/> |
||
108 | </Anchors> |
||
109 | <Frames> |
||
110 | <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> |
||
111 | <Anchors> |
||
112 | <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT"> |
||
113 | <Offset> |
||
114 | <AbsDimension x="-1" y="-1"/> |
||
115 | </Offset> |
||
116 | </Anchor> |
||
117 | </Anchors> |
||
118 | <Scripts> |
||
119 | <OnClick> this:GetParent():GetParent().self:Close();</OnClick> |
||
120 | </Scripts> |
||
121 | </Button> |
||
122 | <Button name="$parentLockButton" inherits="UIPanelCloseButton"> |
||
123 | <NormalTexture name="$parentNormalTexture" file="Interface\AddOns\MyBags\Skin\LockButton-Unlocked-Up"/> |
||
124 | <PushedTexture name="$parentPushedTexture" file="Interface\AddOns\MyBags\Skin\LockButton-Locked-Down"/> |
||
125 | <Anchors> |
||
126 | <Anchor point="RIGHT" relativeTo="$parentCloseButton" relativePoint="LEFT"> |
||
127 | <Offset> |
||
128 | <Absdimension x="10" y="0"/> |
||
129 | </Offset> |
||
130 | </Anchor> |
||
131 | </Anchors> |
||
132 | <Scripts> |
||
133 | <OnClick> self = this:GetParent():GetParent().self self:LockButton_OnClick()</OnClick> |
||
134 | </Scripts> |
||
135 | </Button> |
||
136 | </Frames> |
||
137 | </Frame> |
||
138 | <Frame name="MyBagsCharSelectTemplate" virtual="true" hidden="false"> |
||
139 | <Size> |
||
140 | <AbsDimension x="190" y="30"/> |
||
141 | </Size> |
||
142 | <Anchors> |
||
143 | <Anchor point="TOP"> |
||
144 | <Offset> |
||
145 | <AbsDimension x="0" y="-38"/> |
||
146 | </Offset> |
||
147 | </Anchor> |
||
148 | </Anchors> |
||
149 | <Frames> |
||
150 | <Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true" hidden="false"> |
||
151 | <Size> |
||
152 | <AbsDimension x="150" y="30"/> |
||
153 | </Size> |
||
154 | <Anchors> |
||
155 | <Anchor point="RIGHT"> |
||
156 | <Offset> |
||
157 | <AbsDimension x="0" y="0"/> |
||
158 | </Offset> |
||
159 | </Anchor> |
||
160 | </Anchors> |
||
161 | <Layers> |
||
162 | <Layer level="BACKGROUND"> |
||
163 | <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Select Player:"> |
||
164 | <Anchors> |
||
165 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"> |
||
166 | <Offset> |
||
167 | <AbsDimension x="18" y="0"/> |
||
168 | </Offset> |
||
169 | </Anchor> |
||
170 | </Anchors> |
||
171 | </FontString> |
||
172 | </Layer> |
||
173 | </Layers> |
||
174 | </Frame> |
||
175 | </Frames> |
||
176 | </Frame> |
||
177 | <Frame name="MyBagsFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" |
||
178 | hidden="true"> |
||
179 | <Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
180 | tile="true"> |
||
181 | <BackgroundInsets> |
||
182 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
183 | </BackgroundInsets> |
||
184 | <TileSize> |
||
185 | <AbsValue val="16"/> |
||
186 | </TileSize> |
||
187 | <EdgeSize> |
||
188 | <AbsValue val="16"/> |
||
189 | </EdgeSize> |
||
190 | </Backdrop> |
||
191 | <Layers> |
||
192 | <!-- -LITE{{{ --> |
||
193 | |||
194 | <Layer level="BACKGROUND"> |
||
195 | <Texture name="$parentPortrait" hidden="false" file="Interface\AddOns\MyBags\Skin\Backpack"> |
||
196 | <!-- --> |
||
197 | |||
198 | <Size> |
||
199 | <AbsDimension x="58" y="58"/> |
||
200 | </Size> |
||
201 | <Anchors> |
||
202 | <Anchor point="TOPLEFT"> |
||
203 | <Offset> |
||
204 | <AbsDimension x="-5" y="1"/> |
||
205 | </Offset> |
||
206 | </Anchor> |
||
207 | </Anchors> |
||
208 | </Texture> |
||
209 | <Texture name="$parentTextureTopLeft" file="Interface\AddOns\MyBags\Skin\TopLeft" hidden="false"> |
||
210 | <Size> |
||
211 | <AbsDimension x="128" y="128"/> |
||
212 | </Size> |
||
213 | <Anchors> |
||
214 | <Anchor point="TOPLEFT"> |
||
215 | <Offset> |
||
216 | <AbsDimension x="-65" y="58"/> |
||
217 | </Offset> |
||
218 | </Anchor> |
||
219 | </Anchors> |
||
220 | </Texture> |
||
221 | <Texture name="$parentTextureTopRight" file="Interface\AddOns\MyBags\Skin\TopRight" hidden="false"> |
||
222 | <Size> |
||
223 | <AbsDimension x="64" y="128"/> |
||
224 | </Size> |
||
225 | <Anchors> |
||
226 | <Anchor point="TOPRIGHT"> |
||
227 | <Offset> |
||
228 | <AbsDimension x="36" y="58"/> |
||
229 | </Offset> |
||
230 | </Anchor> |
||
231 | </Anchors> |
||
232 | </Texture> |
||
233 | <Texture name="$parentTextureTopCenter" file="Interface\AddOns\MyBags\Skin\TopCenter" hidden="false"> |
||
234 | <Size> |
||
235 | <AbsDimension x="128" y="128"/> |
||
236 | </Size> |
||
237 | <Anchors> |
||
238 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/> |
||
239 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/> |
||
240 | </Anchors> |
||
241 | </Texture> |
||
242 | <Texture name="$parentTextureBottomLeft" file="Interface\AddOns\MyBags\Skin\BottomLeft" hidden="false"> |
||
243 | <Size> |
||
244 | <AbsDimension x="128" y="128"/> |
||
245 | </Size> |
||
246 | <Anchors> |
||
247 | <Anchor point="BOTTOMLEFT"> |
||
248 | <Offset> |
||
249 | <AbsDimension x="-65" y="-60"/> |
||
250 | </Offset> |
||
251 | </Anchor> |
||
252 | </Anchors> |
||
253 | </Texture> |
||
254 | <Texture name="$parentTextureBottomRight" file="Interface\AddOns\MyBags\Skin\BottomRight" |
||
255 | hidden="false"> |
||
256 | <Size> |
||
257 | <AbsDimension x="64" y="128"/> |
||
258 | </Size> |
||
259 | <Anchors> |
||
260 | <Anchor point="BOTTOMRIGHT"> |
||
261 | <Offset> |
||
262 | <AbsDimension x="36" y="-60"/> |
||
263 | </Offset> |
||
264 | </Anchor> |
||
265 | </Anchors> |
||
266 | </Texture> |
||
267 | <Texture name="$parentTextureBottomCenter" file="Interface\AddOns\MyBags\Skin\BottomCenter" |
||
268 | hidden="false"> |
||
269 | <Size> |
||
270 | <AbsDimension x="128" y="128"/> |
||
271 | </Size> |
||
272 | <Anchors> |
||
273 | <Anchor point="TOPLEFT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/> |
||
274 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/> |
||
275 | </Anchors> |
||
276 | </Texture> |
||
277 | <Texture name="$parentTextureLeft" file="Interface\AddOns\MyBags\Skin\Left" hidden="false"> |
||
278 | <Size> |
||
279 | <AbsDimension x="64" y="128"/> |
||
280 | </Size> |
||
281 | <Anchors> |
||
282 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/> |
||
283 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/> |
||
284 | </Anchors> |
||
285 | </Texture> |
||
286 | <Texture name="$parentTextureRight" file="Interface\AddOns\MyBags\Skin\Right" hidden="false"> |
||
287 | <Size> |
||
288 | <AbsDimension x="64" y="128"/> |
||
289 | </Size> |
||
290 | <Anchors> |
||
291 | <Anchor point="TOPLEFT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/> |
||
292 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/> |
||
293 | </Anchors> |
||
294 | </Texture> |
||
295 | <Texture name="$parentTextureCenter" file="Interface\AddOns\MyBags\Skin\Center" hidden="false"> |
||
296 | <Size> |
||
297 | <AbsDimension x="128" y="128"/> |
||
298 | </Size> |
||
299 | <Anchors> |
||
300 | <Anchor point="TOPLEFT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMLEFT"/> |
||
301 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMRIGHT"/> |
||
302 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPLEFT"/> |
||
303 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPRIGHT"/> |
||
304 | </Anchors> |
||
305 | </Texture> |
||
306 | </Layer> |
||
307 | <!-- }}}-LITE --> |
||
308 | <Layer level="ARTWORK"> |
||
309 | <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> |
||
310 | <Color r="1.0" g="1.0" b="1.0"/> |
||
311 | <Anchors> |
||
312 | <Anchor point="TOPLEFT"> |
||
313 | <Offset> |
||
314 | <AbsDimension x="7" y="-10"/> |
||
315 | </Offset> |
||
316 | </Anchor> |
||
317 | </Anchors> |
||
318 | </FontString> |
||
319 | <FontString name="$parentSlots" inherits="GameFontNormal" justifyH="LEFT"> |
||
320 | <Color r="1.0" g="1.0" b="1.0"/> |
||
321 | <Anchors> |
||
322 | <Anchor point="BOTTOMLEFT"> |
||
323 | <Offset> |
||
324 | <AbsDimension x="7" y="10"/> |
||
325 | </Offset> |
||
326 | </Anchor> |
||
327 | </Anchors> |
||
328 | </FontString> |
||
329 | </Layer> |
||
330 | </Layers> |
||
331 | <Frames> |
||
332 | <Frame name="$parentBag0" inherits="MyBagsContainerTemplate" id="0"/> |
||
333 | <Frame name="$parentBag1" inherits="MyBagsContainerTemplate" id="1"/> |
||
334 | <Frame name="$parentBag2" inherits="MyBagsContainerTemplate" id="2"/> |
||
335 | <Frame name="$parentBag3" inherits="MyBagsContainerTemplate" id="3"/> |
||
336 | <Frame name="$parentBag4" inherits="MyBagsContainerTemplate" id="4"/> |
||
337 | <Frame name="$parentButtons" inherits="MyBagsButtonBarTemplate"/> |
||
338 | <Frame name="$parentCharSelect" inherits="MyBagsCharSelectTemplate"/> |
||
339 | <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false"> |
||
340 | <Anchors> |
||
341 | <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> |
||
342 | <Offset> |
||
343 | <AbsDimension x="0" y="8"/> |
||
344 | </Offset> |
||
345 | </Anchor> |
||
346 | </Anchors> |
||
347 | </Frame> |
||
348 | </Frames> |
||
349 | <Scripts> |
||
350 | <OnShow> |
||
351 | PlaySound("igBackPackOpen") |
||
352 | </OnShow> |
||
353 | <OnHide> |
||
354 | PlaySound("igBackPackClose") |
||
355 | </OnHide> |
||
356 | <OnMouseDown> |
||
357 | self = this.self |
||
358 | if not self.GetOpt("Lock") then |
||
359 | self:debug("Moving Frame") |
||
360 | self:debug("Frame:"..this:GetParent():GetName()) |
||
361 | this:GetParent():StartMoving() |
||
362 | else |
||
363 | self:debug("FRAME IS LOCKED, don't move") |
||
364 | end |
||
365 | </OnMouseDown> |
||
366 | <OnMouseUp> |
||
367 | self = this.self |
||
368 | if not self.GetOpt("Lock") then |
||
369 | self:debug("Stop moving") |
||
370 | this:GetParent():StopMovingOrSizing() |
||
371 | else |
||
372 | self:debug("FRAME IS LOCKED, no movement to stop") |
||
373 | end |
||
374 | </OnMouseUp> |
||
375 | </Scripts> |
||
376 | </Frame> |
||
377 | <GameTooltip name="MyBagsHiddenTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"> |
||
378 | <Scripts> |
||
379 | <OnLoad> |
||
380 | this:SetOwner(UIParent, "ANCHOR_NONE"); |
||
381 | </OnLoad> |
||
382 | </Scripts> |
||
383 | </GameTooltip> |
||
384 | </Ui> |