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/"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/
4 ..\FrameXML\UI.xsd">
5  
6 <Frame name="BuffaloFrame" parent="UIParent" toplevel="true" frameStrata="LOW" hidden="true">
7 <Size>
8 <AbsDimension x="50" y="50"/>
9 </Size>
10 <Anchors>
11 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT">
12 <Offset>
13 <AbsDimension x="-205" y="-13"/>
14 </Offset>
15 </Anchor>
16 </Anchors>
17 </Frame>
18 <Frame name="DebuffaloFrame" parent="UIParent" toplevel="true" frameStrata="LOW" hidden="true">
19 <Size>
20 <AbsDimension x="50" y="50"/>
21 </Size>
22 <Anchors>
23 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT">
24 <Offset>
25 <AbsDimension x="-205" y="-13"/>
26 </Offset>
27 </Anchor>
28 </Anchors>
29 </Frame>
30 <Frame name="WeaponBuffaloFrame" parent="UIParent" toplevel="true" frameStrata="LOW" hidden="true">
31 <Size>
32 <AbsDimension x="50" y="50"/>
33 </Size>
34 <Anchors>
35 <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT">
36 <Offset>
37 <AbsDimension x="-205" y="-13"/>
38 </Offset>
39 </Anchor>
40 </Anchors>
41 <Scripts>
42 <OnUpdate>
43 Buffalo:WeaponBuffaloFrame_OnUpdate(arg1)
44 </OnUpdate>
45 </Scripts>
46 </Frame>
47  
48  
49 <Button name="BuffaloButtonTemplate" virtual="true">
50 <Size>
51 <AbsDimension x="30" y="30"/>
52 </Size>
53  
54 <Scripts>
55 <OnLoad>
56 this.buffFilter = "HELPFUL|HARMFUL";
57 this.timeSinceLastUpdate = 0
58 this:RegisterEvent("PLAYER_AURAS_CHANGED")
59 Buffalo.printnext=true
60 Buffalo:Test("XML OnLoad")
61 </OnLoad>
62 <OnEvent>
63 Buffalo:BuffaloButton_Update(this)
64 </OnEvent>
65 <OnUpdate>
66 Buffalo:BuffButton_OnUpdate(arg1, this);
67 </OnUpdate>
68 <OnClick>
69 Buffalo:BuffButton_OnClick(this);
70 </OnClick>
71 <OnEnter>
72 GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
73 GameTooltip:SetPlayerBuff(this.buffIndex);
74 </OnEnter>
75 <OnLeave>
76 GameTooltip:Hide();
77 </OnLeave>
78 <OnHide>
79 Buffalo:Debug(this:GetName())
80 </OnHide>
81 </Scripts>
82  
83 <Layers>
84 <Layer level="BACKGROUND">
85 <Texture name="$parentIcon"/>
86 <FontString name="$parentCount" inherits="NumberFontNormal">
87 <Anchors>
88 <Anchor point="BOTTOMRIGHT">
89 <Offset>
90 <AbsDimension x="-2" y="2"/>
91 </Offset>
92 </Anchor>
93 </Anchors>
94 </FontString>
95 </Layer>
96  
97 <Layer level="ARTWORK">
98 <FontString name="$parentDuration" inherits="GameFontNormalSmall">
99 <Size>
100 <AbsDimension x="0" y="10"/>
101 </Size>
102 <Anchors>
103 <Anchor point = "TOPLEFT" relativePoint="BOTTOMLEFT">
104 <Offset>
105 <AbsDimension x="-2" y="0"/>
106 </Offset>
107 </Anchor>
108 <Anchor point = "TOPRIGHT" relativePoint="BOTTOMRIGHT">
109 <Offset>
110 <AbsDimension x="2" y="0"/>
111 </Offset>
112 </Anchor>
113  
114 </Anchors>
115 </FontString>
116 </Layer>
117 <Layer level="OVERLAY">
118 <FontString inherits="GameFontHighlight" name="$parent_Ghost_Label">
119 <Anchors>
120 <Anchor point = "TOPLEFT">
121 <Offset>
122 <AbsDimension x="2" y="2"/>
123 </Offset>
124 </Anchor>
125 <Anchor point = "BOTTOMRIGHT">
126 <Offset>
127 <AbsDimension x="-2" y="-2"/>
128 </Offset>
129 </Anchor>
130 </Anchors>
131 </FontString>
132  
133 <Texture name="$parent_Ghost_Texture" alphaMode="ADD">
134 <Color r="0" g="0" b="0" a="1"/>
135 <Anchors>
136 <Anchor point="TOPRIGHT">
137 <Offset>
138 <AbsDimension x="0" y="0"/>
139 </Offset>
140 </Anchor>
141 <Anchor point="BOTTOMLEFT">
142 <Offset>
143 <AbsDimension x="0" y="0"/>
144 </Offset>
145 </Anchor>
146 </Anchors>
147 </Texture>
148 </Layer>
149 </Layers>
150 </Button>
151  
152 <Button name="BuffaloButton" inherits="BuffaloButtonTemplate" virtual="true">
153 <Scripts>
154 <!-- <OnLoad>
155 this.buffFilter= "HELPFUL"
156 BuffButton_OnLoad();
157 </OnLoad> -->
158 <OnMouseDown>
159 if(not Buffalo.db.profile.locked) then
160 BuffaloFrame:StartMoving()
161 end
162 </OnMouseDown>
163 <OnMouseUp>
164 if(not Buffalo.db.profile.locked) then
165 BuffaloFrame:StopMovingOrSizing()
166 Buffalo:SavePos("buff")
167 end
168 </OnMouseUp>
169 </Scripts>
170 </Button>
171  
172 <Button name="DebuffaloButton" inherits="BuffaloButtonTemplate" virtual="true">
173 <Layers>
174 <Layer level="OVERLAY">
175 <Texture name="$parentBorder" file="Interface\Buttons\UI-Debuff-Overlays">
176 <Size>
177 <AbsDimension x="33" y="32"/>
178 </Size>
179 <Anchors>
180 <Anchor point="CENTER">
181 <Offset>
182 <AbsDimension x="0" y="0"/>
183 </Offset>
184 </Anchor>
185 </Anchors>
186 <Color r="0" g="0" b="0" a="0"/>
187 <TexCoords left="0.296875" right="0.5703125" top="0" bottom="0.515625"/>
188 </Texture>
189 </Layer>
190  
191 <Layer level="ARTWORK">
192 <FontString name="$parentDuration" inherits="GameFontNormalSmall">
193 <Anchors>
194 <Anchor point="TOP" relativePoint="BOTTOM"/>
195 </Anchors>
196 </FontString>
197 </Layer>
198 </Layers>
199 <Scripts>
200 <OnMouseDown>
201 if(not Buffalo.db.profile.locked) then
202 DebuffaloFrame:StartMoving()
203 end
204 </OnMouseDown>
205 <OnMouseUp>
206 if(not Buffalo.db.profile.locked) then
207 DebuffaloFrame:StopMovingOrSizing()
208 Buffalo:SavePos("debuff")
209 end
210 </OnMouseUp>
211 </Scripts>
212 </Button>
213  
214 <Button name="WeaponBuffaloButton" inherits="BuffaloButtonTemplate" virtual="true">
215 <Layers>
216 <!-- <Layer level="OVERLAY">
217 <Texture name="$parentBorder" file="Interface\Buttons\UI-TempEnchant-Border">
218 <Size>
219 <AbsDimension x="32" y="32"/>
220 </Size>
221 <Anchors>
222 <Anchor point="CENTER">
223 <Offset>
224 <AbsDimension x="0" y="0"/>
225 </Offset>
226 </Anchor>
227 </Anchors>
228 </Texture>
229 </Layer> -->
230 <Layer level="ARTWORK">
231 <FontString name="$parentDuration" inherits="GameFontNormalSmall">
232 <Anchors>
233 <Anchor point="TOP" relativePoint="BOTTOM"/>
234 </Anchors>
235 </FontString>
236 </Layer>
237 </Layers>
238 <Scripts>
239 <OnUpdate>
240 </OnUpdate>
241 <OnLoad>
242 </OnLoad>
243 <OnEnter>
244 BuffFrame_EnchantButton_OnEnter();
245 </OnEnter>
246 <OnLeave>
247 GameTooltip:Hide();
248 </OnLeave>
249 <OnMouseDown>
250 if(not Buffalo.db.profile.locked) then
251 WeaponBuffaloFrame:StartMoving()
252 end
253 </OnMouseDown>
254 <OnMouseUp>
255 if(not Buffalo.db.profile.locked) then
256 WeaponBuffaloFrame:StopMovingOrSizing()
257 Buffalo:SavePos("weapon")
258 end
259 </OnMouseUp>
260 </Scripts>
261 </Button>
262 </Ui>