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/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML/UI.xsd"> |
||
4 | <Script file="locals.lua" /> |
||
5 | <Script file="MyEquipment.lua" /> |
||
6 | |||
7 | <!-- Templates --> |
||
8 | <Button name="MyEquipmentItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true"> |
||
9 | <Frames> |
||
10 | <Model name="$parentCooldown" inherits="CooldownFrameTemplate"/> |
||
11 | </Frames> |
||
12 | <Scripts> |
||
13 | <OnLoad> |
||
14 | MyEquipment.MyEquipmentItemSlotButton_OnLoad() |
||
15 | </OnLoad> |
||
16 | <OnClick> |
||
17 | self = this:GetParent():GetParent().self |
||
18 | self:MyEquipmentItemSlotButton_OnClick(arg1) |
||
19 | </OnClick> |
||
20 | <OnDragStart> |
||
21 | self = this:GetParent():GetParent().self |
||
22 | self:MyEquipmentItemSlotButton_OnClick("LeftButton", 1) |
||
23 | </OnDragStart> |
||
24 | <OnReceiveDrag> |
||
25 | self = this:GetParent():GetParent().self |
||
26 | self:MyEquipmentItemSlotButton_OnClick("LeftButton", 1) |
||
27 | </OnReceiveDrag> |
||
28 | <OnEnter> |
||
29 | self = this:GetParent():GetParent().self |
||
30 | self:MyEquipmentItemSlotButton_OnEnter() |
||
31 | </OnEnter> |
||
32 | <OnLeave> |
||
33 | GameTooltip:Hide() |
||
34 | </OnLeave> |
||
35 | <!-- <OnUpdate> |
||
36 | self = this:GetParent():GetParent().self |
||
37 | self:MyEquipmentItemSlotButton_OnUpdate(arg1); |
||
38 | </OnUpdate> |
||
39 | <OnEvent> |
||
40 | self = this:GetParent():GetParent().self |
||
41 | self:MyEquipmentItemSlotButton_OnEvent(event) |
||
42 | </OnEvent> |
||
43 | --> </Scripts> |
||
44 | </Button> |
||
45 | |||
46 | <Frame name="MyEquipmentTemplate" virtual="true"> |
||
47 | <Frames> |
||
48 | <Frame name="$parentBackRow1"/> |
||
49 | <Frame name="$parentBackRow2"/> |
||
50 | <Frame name="$parentBackRow3"/> |
||
51 | <Button name="$parentItem0" inherits="MyEquipmentItemButtonTemplate" id="0"/> |
||
52 | <Button name="$parentItem1" inherits="MyEquipmentItemButtonTemplate" id="1"/> |
||
53 | <Button name="$parentItem2" inherits="MyEquipmentItemButtonTemplate" id="2"/> |
||
54 | <Button name="$parentItem3" inherits="MyEquipmentItemButtonTemplate" id="3"/> |
||
55 | <Button name="$parentItem4" inherits="MyEquipmentItemButtonTemplate" id="4"/> |
||
56 | <Button name="$parentItem5" inherits="MyEquipmentItemButtonTemplate" id="5"/> |
||
57 | <Button name="$parentItem6" inherits="MyEquipmentItemButtonTemplate" id="6"/> |
||
58 | <Button name="$parentItem7" inherits="MyEquipmentItemButtonTemplate" id="7"/> |
||
59 | <Button name="$parentItem8" inherits="MyEquipmentItemButtonTemplate" id="8"/> |
||
60 | <Button name="$parentItem9" inherits="MyEquipmentItemButtonTemplate" id="9"/> |
||
61 | <Button name="$parentItem10" inherits="MyEquipmentItemButtonTemplate" id="10"/> |
||
62 | <Button name="$parentItem11" inherits="MyEquipmentItemButtonTemplate" id="11"/> |
||
63 | <Button name="$parentItem12" inherits="MyEquipmentItemButtonTemplate" id="12"/> |
||
64 | <Button name="$parentItem13" inherits="MyEquipmentItemButtonTemplate" id="13"/> |
||
65 | <Button name="$parentItem14" inherits="MyEquipmentItemButtonTemplate" id="14"/> |
||
66 | <Button name="$parentItem15" inherits="MyEquipmentItemButtonTemplate" id="15"/> |
||
67 | <Button name="$parentItem16" inherits="MyEquipmentItemButtonTemplate" id="16"/> |
||
68 | <Button name="$parentItem17" inherits="MyEquipmentItemButtonTemplate" id="17"/> |
||
69 | <Button name="$parentItem18" inherits="MyEquipmentItemButtonTemplate" id="18"/> |
||
70 | <Button name="$parentItem19" inherits="MyEquipmentItemButtonTemplate" id="19"/> |
||
71 | </Frames> |
||
72 | </Frame> |
||
73 | |||
74 | <Frame name="MyEquipmentFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" hidden="true"> |
||
75 | <Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
76 | <BackgroundInsets><AbsInset left="5" right="5" top="5" bottom="5"/></BackgroundInsets> |
||
77 | <TileSize><AbsValue val="16"/></TileSize> |
||
78 | <EdgeSize><AbsValue val="16"/></EdgeSize> |
||
79 | </Backdrop> |
||
80 | <Layers> |
||
81 | <!-- -LITE{{{ --> |
||
82 | <Layer level="BACKGROUND"> |
||
83 | <Texture name="$parentPortrait" hidden="false" file="Interface\AddOns\MyBags\Skin\Backpack" > <!-- --> |
||
84 | <Size><AbsDimension x="58" y="58"/></Size> |
||
85 | <Anchors> |
||
86 | <Anchor point="TOPLEFT"> |
||
87 | <Offset><AbsDimension x="-5" y="1"/></Offset> |
||
88 | </Anchor> |
||
89 | </Anchors> |
||
90 | </Texture> |
||
91 | <Texture name="$parentTextureTopLeft" file="Interface\AddOns\MyBags\Skin\TopLeft" hidden="false"> |
||
92 | <Size><AbsDimension x="128" y="128"/></Size> |
||
93 | <Anchors> |
||
94 | <Anchor point="TOPLEFT"> |
||
95 | <Offset><AbsDimension x="-65" y="58"/></Offset> |
||
96 | </Anchor> |
||
97 | </Anchors> |
||
98 | </Texture> |
||
99 | <Texture name="$parentTextureTopRight" file="Interface\AddOns\MyBags\Skin\TopRight" hidden="false"> |
||
100 | <Size><AbsDimension x="64" y="128"/></Size> |
||
101 | <Anchors> |
||
102 | <Anchor point="TOPRIGHT"> |
||
103 | <Offset><AbsDimension x="36" y="58"/></Offset> |
||
104 | </Anchor> |
||
105 | </Anchors> |
||
106 | </Texture> |
||
107 | <Texture name="$parentTextureTopCenter" file="Interface\AddOns\MyBags\Skin\TopCenter" hidden="false"> |
||
108 | <Size><AbsDimension x="128" y="128"/></Size> |
||
109 | <Anchors> |
||
110 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/> |
||
111 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/> |
||
112 | </Anchors> |
||
113 | </Texture> |
||
114 | <Texture name="$parentTextureBottomLeft" file="Interface\AddOns\MyBags\Skin\BottomLeft" hidden="false"> |
||
115 | <Size><AbsDimension x="128" y="128"/></Size> |
||
116 | <Anchors> |
||
117 | <Anchor point="BOTTOMLEFT"> |
||
118 | <Offset><AbsDimension x="-65" y="-60"/></Offset> |
||
119 | </Anchor> |
||
120 | </Anchors> |
||
121 | </Texture> |
||
122 | <Texture name="$parentTextureBottomRight" file="Interface\AddOns\MyBags\Skin\BottomRight" hidden="false"> |
||
123 | <Size><AbsDimension x="64" y="128"/></Size> |
||
124 | <Anchors> |
||
125 | <Anchor point="BOTTOMRIGHT"> |
||
126 | <Offset><AbsDimension x="36" y="-60"/></Offset> |
||
127 | </Anchor> |
||
128 | </Anchors> |
||
129 | </Texture> |
||
130 | <Texture name="$parentTextureBottomCenter" file="Interface\AddOns\MyBags\Skin\BottomCenter" hidden="false"> |
||
131 | <Size><AbsDimension x="128" y="128"/></Size> |
||
132 | <Anchors> |
||
133 | <Anchor point="TOPLEFT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/> |
||
134 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/> |
||
135 | </Anchors> |
||
136 | </Texture> |
||
137 | <Texture name="$parentTextureLeft" file="Interface\AddOns\MyBags\Skin\Left" hidden="false"> |
||
138 | <Size><AbsDimension x="64" y="128"/></Size> |
||
139 | <Anchors> |
||
140 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/> |
||
141 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/> |
||
142 | </Anchors> |
||
143 | </Texture> |
||
144 | <Texture name="$parentTextureRight" file="Interface\AddOns\MyBags\Skin\Right" hidden="false"> |
||
145 | <Size><AbsDimension x="64" y="128"/></Size> |
||
146 | <Anchors> |
||
147 | <Anchor point="TOPLEFT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/> |
||
148 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/> |
||
149 | </Anchors> |
||
150 | </Texture> |
||
151 | <Texture name="$parentTextureCenter" file="Interface\AddOns\MyBags\Skin\Center" hidden="false"> |
||
152 | <Size><AbsDimension x="128" y="128"/></Size> |
||
153 | <Anchors> |
||
154 | <Anchor point="TOPLEFT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMLEFT"/> |
||
155 | <Anchor point="TOPRIGHT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMRIGHT"/> |
||
156 | <Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPLEFT"/> |
||
157 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPRIGHT"/> |
||
158 | </Anchors> |
||
159 | </Texture> |
||
160 | </Layer> |
||
161 | <!-- }}}-LITE --> |
||
162 | <Layer level="ARTWORK"> |
||
163 | <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT"> |
||
164 | <Color r="1.0" g="1.0" b="1.0" /> |
||
165 | <Anchors> |
||
166 | <Anchor point="TOPLEFT"> |
||
167 | <Offset><AbsDimension x="7" y="-10"/></Offset> |
||
168 | </Anchor> |
||
169 | </Anchors> |
||
170 | </FontString> |
||
171 | <FontString name="$parentSlots" inherits="GameFontNormal" justifyH="LEFT"> |
||
172 | <Color r="1.0" g="1.0" b="1.0" /> |
||
173 | <Anchors> |
||
174 | <Anchor point="BOTTOMLEFT"> |
||
175 | <Offset><AbsDimension x="7" y="10"/></Offset> |
||
176 | </Anchor> |
||
177 | </Anchors> |
||
178 | </FontString> |
||
179 | </Layer> |
||
180 | </Layers> |
||
181 | <Frames> |
||
182 | <Frame name="MyEquipmentSlots" inherits="MyEquipmentTemplate"/> |
||
183 | <Frame name="$parentButtons" inherits="MyBagsButtonBarTemplate"/> |
||
184 | <Frame name="$parentCharSelect" inherits="MyBagsCharSelectTemplate"/> |
||
185 | <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false"> |
||
186 | <Anchors> |
||
187 | <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> |
||
188 | <Offset><AbsDimension x="0" y="8"/></Offset> |
||
189 | </Anchor> |
||
190 | </Anchors> |
||
191 | </Frame> |
||
192 | </Frames> |
||
193 | <Scripts> |
||
194 | <OnShow> |
||
195 | PlaySound("igBackPackOpen") |
||
196 | </OnShow> |
||
197 | <OnHide> |
||
198 | PlaySound("igBackPackClose") |
||
199 | </OnHide> |
||
200 | <OnMouseDown> |
||
201 | self = this.self |
||
202 | if not self.GetOpt("Lock") then |
||
203 | self:debug("Moving Frame") |
||
204 | self:debug("Frame:"..this:GetParent():GetName()) |
||
205 | this:GetParent():StartMoving() |
||
206 | else |
||
207 | self:debug("FRAME IS LOCKED, MOUSE SHOULD BE DISABLED") |
||
208 | end |
||
209 | </OnMouseDown> |
||
210 | <OnMouseUp> |
||
211 | self:debug("Stop moving") |
||
212 | this:GetParent():StopMovingOrSizing() |
||
213 | </OnMouseUp> |
||
214 | </Scripts> |
||
215 | </Frame> |
||
216 | |||
217 | <!-- Frame --> |
||
218 | <Frame name="MyEquipmentAnchorFrame" hidden="false" movable="true" parent="UIParent"> |
||
219 | <Size><AbsDimension x="10" y="10"/></Size> |
||
220 | <Anchors> |
||
221 | <Anchor point="BOTTOMRIGHT" > |
||
222 | <Offset><AbsDimension x="-5" y="100"/></Offset> |
||
223 | </Anchor> |
||
224 | </Anchors> |
||
225 | <Frames> |
||
226 | <Frame name="MyEquipmentFrame" inherits="MyEquipmentFrameTemplate"> |
||
227 | <Size> |
||
228 | <AbsDimension x="500" y="500"/> |
||
229 | </Size> |
||
230 | <Anchors><Anchor point="BOTTOMRIGHT"/></Anchors> |
||
231 | </Frame> |
||
232 | </Frames> |
||
233 | </Frame> |
||
234 | </Ui> |