vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--$Id: OneBag.xml 5631 2006-07-25 04:04:28Z kaelten $-->
2 <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">
3  
4 <Frame name="OneBagFrame" inherits="OneBagFrameTemplate" parent="UIParent">
5 <Anchors>
6 <Anchor point="TOPLEFT" >
7 <Offset>
8 <AbsDimension x="400" y="-300"/>
9 </Offset>
10 </Anchor>
11 </Anchors>
12 <Frames>
13 <CheckButton name="OneKeyRingButton">
14 <Size x="15" y="22"/>
15 <Anchors>
16 <Anchor point="LEFT" relativeTo="$parentBagButton" relativePoint="RIGHT">
17 <Offset>
18 <AbsDimension x="0" y="0"/>
19 </Offset>
20 </Anchor>
21 </Anchors>
22 <Frames>
23 <Model name="$parentItemAnim" inherits="ItemAnimTemplate">
24 <Anchors>
25 <Anchor point="BOTTOMRIGHT">
26 <Offset>
27 <AbsDimension x="0" y="0"/>
28 </Offset>
29 </Anchor>
30 </Anchors>
31 </Model>
32 </Frames>
33 <Scripts>
34 <OnLoad>
35 this:SetID(KEYRING_CONTAINER);
36  
37 local name = getglobal(this:GetParent():GetName().."Name")
38 name:ClearAllPoints()
39 name:SetPoint("LEFT", this:GetName(), "RIGHT", 5, 1)
40 </OnLoad>
41 <OnClick>
42 OneBag:OnKeyRingButtonClick()
43 </OnClick>
44 <OnReceiveDrag>
45 if (CursorHasItem()) then
46 PutKeyInKeyRing();
47 end
48 </OnReceiveDrag>
49 <OnEnter>
50 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
51 GameTooltip:SetText(KEYRING, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
52 GameTooltip:AddLine();
53 </OnEnter>
54 <OnLeave>
55 GameTooltip:Hide();
56 </OnLeave>
57 </Scripts>
58 <NormalTexture file="Interface\Buttons\UI-Button-KeyRing">
59 <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
60 </NormalTexture>
61 <HighlightTexture file="Interface\Buttons\UI-Button-KeyRing-Highlight" alphaMode="ADD">
62 <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
63 </HighlightTexture>
64 <PushedTexture file="Interface\Buttons\UI-Button-KeyRing-Down">
65 <TexCoords left="0" right="0.5625" top="0" bottom="0.609375"/>
66 </PushedTexture>
67 </CheckButton>
68 </Frames>
69 </Frame>
70  
71 <Frame name="OBBagFram" inherits="OneBagBaseFrameTemplate" parent="UIParent">
72 <Size>
73 <AbsDimension x="60" y="223"/>
74 </Size>
75 <Anchors>
76 <Anchor point="TOPRIGHT" relativeTo="OneBagFrame" relativePoint="TOPLEFT">
77 <Offset>
78 <AbsDimension x="5" y="-10"/>
79 </Offset>
80 </Anchor>
81 </Anchors>
82 <Frames>
83 <CheckButton name="$parentBackpackButton" inherits="OneBagBagTemplate" id="0">
84 <Size>
85 <AbsDimension x="37" y="37"/>
86 </Size>
87 <Anchors>
88 <Anchor point="TOP">
89 <Offset>
90 <AbsDimension x="0" y="-15"/>
91 </Offset>
92 </Anchor>
93 </Anchors>
94 <Frames>
95 <Model name="$parentItemAnim" inherits="ItemAnimTemplate">
96 <Anchors>
97 <Anchor point="BOTTOMRIGHT">
98 <Offset>
99 <AbsDimension x="-10" y="0"/>
100 </Offset>
101 </Anchor>
102 </Anchors>
103 </Model>
104 </Frames>
105 <Scripts>
106 <OnClick>
107 PlaySound("BAGMENUBUTTONPRESS")
108  
109 PutItemInBackpack()
110  
111 if not this:GetChecked() then
112 OneBag:UnhighlightBagSlots(0)
113 OneBag.frame.bags[0].colorLocked = false
114 else
115 OneBag.frame.bags[0].colorLocked = true
116 end
117 OneBag:OrganizeFrame(true)
118 </OnClick>
119 <OnLoad>
120 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
121 getglobal(this:GetName().."IconTexture"):SetTexture("Interface\\Buttons\\Button-Backpack-Up");
122 </OnLoad>
123 <OnReceiveDrag>
124 BackpackButton_OnClick();
125 </OnReceiveDrag>
126 <OnEnter>
127 OneBag:HighlightBagSlots(0)
128 </OnEnter>
129 <OnLeave>
130 if not this:GetChecked() then
131 OneBag:UnhighlightBagSlots(0)
132 OneBag.frame.bags[0].colorLocked = false
133 else
134 OneBag.frame.bags[0].colorLocked = true
135 end
136 </OnLeave>
137 </Scripts>
138 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
139 </CheckButton>
140 <CheckButton name="$parentBag0Slot" inherits="OneBagBagTemplate" id="1">
141 <Anchors>
142 <Anchor point="TOP" relativeTo="$parentBackpackButton" relativePoint="BOTTOM">
143 <Offset>
144 <AbsDimension x="0" y="-2"/>
145 </Offset>
146 </Anchor>
147 </Anchors>
148 </CheckButton>
149 <CheckButton name="$parentBag1Slot" inherits="OneBagBagTemplate" id="2">
150 <Anchors>
151 <Anchor point="TOP" relativeTo="$parentBag0Slot" relativePoint="BOTTOM">
152 <Offset>
153 <AbsDimension x="0" y="-2"/>
154 </Offset>
155 </Anchor>
156 </Anchors>
157 </CheckButton>
158 <CheckButton name="$parentBag2Slot" inherits="OneBagBagTemplate" id="3">
159 <Anchors>
160 <Anchor point="TOP" relativeTo="$parentBag1Slot" relativePoint="BOTTOM">
161 <Offset>
162 <AbsDimension x="0" y="-2"/>
163 </Offset>
164 </Anchor>
165 </Anchors>
166 </CheckButton>
167 <CheckButton name="$parentBag3Slot" inherits="OneBagBagTemplate" id="4">
168 <Anchors>
169 <Anchor point="TOP" relativeTo="$parentBag2Slot" relativePoint="BOTTOM">
170 <Offset>
171 <AbsDimension x="0" y="-2"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 </CheckButton>
176 </Frames>
177 </Frame>
178 </Ui>