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  
5 <!-- group cell template -->
6 <Button name="FixCTGroupsCellTemplate" parent="FixCTGroupsCellsFrame" movable="true" clampedToScreen="true" virtual="true">
7 <Size>
8 <AbsDimension x="32" y="32"/>
9 </Size>
10  
11 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
12 <EdgeSize>
13 <AbsValue val="16"/>
14 </EdgeSize>
15 <TileSize>
16 <AbsValue val="16"/>
17 </TileSize>
18 <BackgroundInsets>
19 <AbsInset left="5" right="5" top="5" bottom="5"/>
20 </BackgroundInsets>
21 </Backdrop>
22  
23 <Layers>
24 <Layer level="ARTWORK">
25 <FontString name="$parentLabel" inherits="GameFontHighlightLarge">
26 <Anchors>
27 <Anchor point="CENTER"/>
28 </Anchors>
29 </FontString>
30 </Layer>
31 </Layers>
32  
33 <Scripts>
34 <OnLoad>
35 this.bg = {r = 0, g = 0, b = 0};
36 this.hover = {r = 1, g = 0.5, b = 0};
37  
38 this:SetMovable(1);
39 this:SetFrameLevel(this:GetFrameLevel() + 2);
40 this:RegisterForDrag("LeftButton");
41 --this:RegisterForClicks('LeftButtonDown', 'RightButtonDown');
42  
43 this.slot = nil;
44 --this.slot = getglobal(this:GetParent():GetName().."CellSlot"..this:GetID());
45 --this.slot.button = this;
46  
47 --this:ClearAllPoints();
48 --this:SetPoint("TOPLEFT", this.slot, "TOPLEFT", 0, 0);
49  
50 getglobal(this:GetName().."Label"):SetText(this:GetID());
51  
52 this:SetBackdropColor(0.0, 0.0, 0.0);
53 </OnLoad>
54 <OnShow>
55  
56 </OnShow>
57 <OnClick>
58 --FixCTGroupsCellOnClick(arg1);
59 </OnClick>
60 <OnDragStart>
61 FixCTGroupsCellOnDragStart();
62 </OnDragStart>
63 <OnDragStop>
64 FixCTGroupsCellOnDragStop();
65 </OnDragStop>
66 <OnEnter>
67 --this:SetBackdropColor(this.hover.r, this.hover.g, this.hover.b);
68 </OnEnter>
69 <OnLeave>
70 --this:SetBackdropColor(this.bg.r, this.bg.g, this.hover.b);
71 </OnLeave>
72 </Scripts>
73 </Button>
74  
75 <!-- group slot template -->
76 <Button name="FixCTGroupsCellSlotTemplate" parent="FixCTGroupsCellsFrame" virtual="true" hidden="false">
77 <Size>
78 <AbsDimension x="32" y="32"/>
79 </Size>
80  
81 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
82 <EdgeSize>
83 <AbsValue val="16"/>
84 </EdgeSize>
85 <TileSize>
86 <AbsValue val="16"/>
87 </TileSize>
88 <BackgroundInsets>
89 <AbsInset left="5" right="5" top="5" bottom="5"/>
90 </BackgroundInsets>
91 </Backdrop>
92  
93 <Layers>
94 <Layer level="BACKGROUND">
95 <FontString name="$parentLabel" inherits="GameFontDarkGraySmall" text="">
96 <Anchors>
97 <Anchor point="CENTER"/>
98 </Anchors>
99 </FontString>
100 </Layer>
101 </Layers>
102  
103 <Scripts>
104 <OnLoad>
105 this.bg = {r = 0, g = 0, b = 0};
106 this.hover = {r = 0, g = 0.5, b = 0};
107  
108 this.button = nil;
109 this:SetBackdropColor(this.bg.r, this.bg.g, this.bg.b);
110 this:ClearAllPoints();
111  
112 if this:GetID() == 1 then
113 this:SetPoint("TOPLEFT", this:GetParent(), "TOPLEFT", 15, -28);
114 elseif math.mod((this:GetID() - 1), 8) == 0 then
115 this:SetPoint("TOPLEFT", this:GetParent():GetName().."CellSlot"..(this:GetID() - 8), "BOTTOMLEFT", 0, 0);
116 else
117 this:SetPoint("TOPLEFT", this:GetParent():GetName().."CellSlot"..(this:GetID() - 1), "TOPRIGHT", 0, 0);
118 end
119 </OnLoad>
120 </Scripts>
121 </Button>
122  
123 <!-- the main frame -->
124 <Frame name="FixCTGroupsCellsFrame"
125 toplevel="true" hidden="true"
126 movable="false" parent="UIParent"
127 frameStrata="DIALOG">
128 <Size>
129 <AbsDimension x="285" y="320"/>
130 </Size>
131  
132 <Anchors>
133 <Anchor point="CENTER"/>
134 </Anchors>
135  
136 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
137 <BackgroundInsets>
138 <AbsInset left="11" right="12" top="12" bottom="11" />
139 <Size>
140 <AbsDimension x="128" y="17" />
141 </Size>
142 </BackgroundInsets>
143 <TileSize>
144 <AbsValue val="32" />
145 </TileSize>
146 <EdgeSize>
147 <AbsValue val="32" />
148 </EdgeSize>
149 </Backdrop>
150  
151 <Layers>
152 <Layer level="ARTWORK">
153 <!-- Frame header background texture -->
154 <Texture file="Interface\DialogFrame\UI-DialogBox-Header">
155 <Size>
156 <AbsDimension x="250" y="64" />
157 </Size>
158 <Anchors>
159 <Anchor point="TOP">
160 <Offset>
161 <AbsDimension x="0" y="12" />
162 </Offset>
163 </Anchor>
164 </Anchors>
165 </Texture>
166  
167 <!-- Frame header label -->
168 <FontString inherits="GameFontNormal" text="Groups">
169 <Anchors>
170 <Anchor point="TOP">
171 <Offset>
172 <AbsDimension x="0" y="-3" />
173 </Offset>
174 </Anchor>
175 </Anchors>
176 </FontString>
177 </Layer>
178 </Layers>
179  
180 <Frames>
181 <Button name="$parentClose" inherits="OptionsButtonTemplate" text="Close">
182 <Size>
183 <AbsDimension x="100" y="25"/>
184 </Size>
185 <Anchors>
186 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
187 <Offset>
188 <AbsDimension x="0" y="10"/>
189 </Offset>
190 </Anchor>
191 </Anchors>
192 <Scripts>
193 <OnClick>
194 this:GetParent():Hide();
195 </OnClick>
196 </Scripts>
197 </Button>
198  
199 <!-- 64 group cell slots -->
200 <Button name="$parentCellSlot1" inherits="FixCTGroupsCellSlotTemplate" id="1"/>
201 <Button name="$parentCellSlot2" inherits="FixCTGroupsCellSlotTemplate" id="2"/>
202 <Button name="$parentCellSlot3" inherits="FixCTGroupsCellSlotTemplate" id="3"/>
203 <Button name="$parentCellSlot4" inherits="FixCTGroupsCellSlotTemplate" id="4"/>
204 <Button name="$parentCellSlot5" inherits="FixCTGroupsCellSlotTemplate" id="5"/>
205 <Button name="$parentCellSlot6" inherits="FixCTGroupsCellSlotTemplate" id="6"/>
206 <Button name="$parentCellSlot7" inherits="FixCTGroupsCellSlotTemplate" id="7"/>
207 <Button name="$parentCellSlot8" inherits="FixCTGroupsCellSlotTemplate" id="8"/>
208  
209 <Button name="$parentCellSlot9" inherits="FixCTGroupsCellSlotTemplate" id="9"/>
210 <Button name="$parentCellSlot10" inherits="FixCTGroupsCellSlotTemplate" id="10"/>
211 <Button name="$parentCellSlot11" inherits="FixCTGroupsCellSlotTemplate" id="11"/>
212 <Button name="$parentCellSlot12" inherits="FixCTGroupsCellSlotTemplate" id="12"/>
213 <Button name="$parentCellSlot13" inherits="FixCTGroupsCellSlotTemplate" id="13"/>
214 <Button name="$parentCellSlot14" inherits="FixCTGroupsCellSlotTemplate" id="14"/>
215 <Button name="$parentCellSlot15" inherits="FixCTGroupsCellSlotTemplate" id="15"/>
216 <Button name="$parentCellSlot16" inherits="FixCTGroupsCellSlotTemplate" id="16"/>
217  
218 <Button name="$parentCellSlot17" inherits="FixCTGroupsCellSlotTemplate" id="17"/>
219 <Button name="$parentCellSlot18" inherits="FixCTGroupsCellSlotTemplate" id="18"/>
220 <Button name="$parentCellSlot19" inherits="FixCTGroupsCellSlotTemplate" id="19"/>
221 <Button name="$parentCellSlot20" inherits="FixCTGroupsCellSlotTemplate" id="20"/>
222 <Button name="$parentCellSlot21" inherits="FixCTGroupsCellSlotTemplate" id="21"/>
223 <Button name="$parentCellSlot22" inherits="FixCTGroupsCellSlotTemplate" id="22"/>
224 <Button name="$parentCellSlot23" inherits="FixCTGroupsCellSlotTemplate" id="23"/>
225 <Button name="$parentCellSlot24" inherits="FixCTGroupsCellSlotTemplate" id="24"/>
226  
227 <Button name="$parentCellSlot25" inherits="FixCTGroupsCellSlotTemplate" id="25"/>
228 <Button name="$parentCellSlot26" inherits="FixCTGroupsCellSlotTemplate" id="26"/>
229 <Button name="$parentCellSlot27" inherits="FixCTGroupsCellSlotTemplate" id="27"/>
230 <Button name="$parentCellSlot28" inherits="FixCTGroupsCellSlotTemplate" id="28"/>
231 <Button name="$parentCellSlot29" inherits="FixCTGroupsCellSlotTemplate" id="29"/>
232 <Button name="$parentCellSlot30" inherits="FixCTGroupsCellSlotTemplate" id="30"/>
233 <Button name="$parentCellSlot31" inherits="FixCTGroupsCellSlotTemplate" id="31"/>
234 <Button name="$parentCellSlot32" inherits="FixCTGroupsCellSlotTemplate" id="32"/>
235  
236 <Button name="$parentCellSlot33" inherits="FixCTGroupsCellSlotTemplate" id="33"/>
237 <Button name="$parentCellSlot34" inherits="FixCTGroupsCellSlotTemplate" id="34"/>
238 <Button name="$parentCellSlot35" inherits="FixCTGroupsCellSlotTemplate" id="35"/>
239 <Button name="$parentCellSlot36" inherits="FixCTGroupsCellSlotTemplate" id="36"/>
240 <Button name="$parentCellSlot37" inherits="FixCTGroupsCellSlotTemplate" id="37"/>
241 <Button name="$parentCellSlot38" inherits="FixCTGroupsCellSlotTemplate" id="38"/>
242 <Button name="$parentCellSlot39" inherits="FixCTGroupsCellSlotTemplate" id="39"/>
243 <Button name="$parentCellSlot40" inherits="FixCTGroupsCellSlotTemplate" id="40"/>
244  
245 <Button name="$parentCellSlot41" inherits="FixCTGroupsCellSlotTemplate" id="41"/>
246 <Button name="$parentCellSlot42" inherits="FixCTGroupsCellSlotTemplate" id="42"/>
247 <Button name="$parentCellSlot43" inherits="FixCTGroupsCellSlotTemplate" id="43"/>
248 <Button name="$parentCellSlot44" inherits="FixCTGroupsCellSlotTemplate" id="44"/>
249 <Button name="$parentCellSlot45" inherits="FixCTGroupsCellSlotTemplate" id="45"/>
250 <Button name="$parentCellSlot46" inherits="FixCTGroupsCellSlotTemplate" id="46"/>
251 <Button name="$parentCellSlot47" inherits="FixCTGroupsCellSlotTemplate" id="47"/>
252 <Button name="$parentCellSlot48" inherits="FixCTGroupsCellSlotTemplate" id="48"/>
253  
254 <Button name="$parentCellSlot49" inherits="FixCTGroupsCellSlotTemplate" id="49"/>
255 <Button name="$parentCellSlot50" inherits="FixCTGroupsCellSlotTemplate" id="50"/>
256 <Button name="$parentCellSlot51" inherits="FixCTGroupsCellSlotTemplate" id="51"/>
257 <Button name="$parentCellSlot52" inherits="FixCTGroupsCellSlotTemplate" id="52"/>
258 <Button name="$parentCellSlot53" inherits="FixCTGroupsCellSlotTemplate" id="53"/>
259 <Button name="$parentCellSlot54" inherits="FixCTGroupsCellSlotTemplate" id="54"/>
260 <Button name="$parentCellSlot55" inherits="FixCTGroupsCellSlotTemplate" id="55"/>
261 <Button name="$parentCellSlot56" inherits="FixCTGroupsCellSlotTemplate" id="56"/>
262  
263 <Button name="$parentCellSlot57" inherits="FixCTGroupsCellSlotTemplate" id="57"/>
264 <Button name="$parentCellSlot58" inherits="FixCTGroupsCellSlotTemplate" id="58"/>
265 <Button name="$parentCellSlot59" inherits="FixCTGroupsCellSlotTemplate" id="59"/>
266 <Button name="$parentCellSlot60" inherits="FixCTGroupsCellSlotTemplate" id="60"/>
267 <Button name="$parentCellSlot61" inherits="FixCTGroupsCellSlotTemplate" id="61"/>
268 <Button name="$parentCellSlot62" inherits="FixCTGroupsCellSlotTemplate" id="62"/>
269 <Button name="$parentCellSlot63" inherits="FixCTGroupsCellSlotTemplate" id="63"/>
270 <Button name="$parentCellSlot64" inherits="FixCTGroupsCellSlotTemplate" id="64"/>
271  
272 <!-- the 8 group cells -->
273 <Button name="$parentCell1" inherits="FixCTGroupsCellTemplate" id="1"/>
274 <Button name="$parentCell2" inherits="FixCTGroupsCellTemplate" id="2"/>
275 <Button name="$parentCell3" inherits="FixCTGroupsCellTemplate" id="3"/>
276 <Button name="$parentCell4" inherits="FixCTGroupsCellTemplate" id="4"/>
277 <Button name="$parentCell5" inherits="FixCTGroupsCellTemplate" id="5"/>
278 <Button name="$parentCell6" inherits="FixCTGroupsCellTemplate" id="6"/>
279 <Button name="$parentCell7" inherits="FixCTGroupsCellTemplate" id="7"/>
280 <Button name="$parentCell8" inherits="FixCTGroupsCellTemplate" id="8"/>
281 </Frames>
282  
283 <Scripts>
284 <OnLoad>
285 <!-- allow pressing escape to close frame -->
286 tinsert(UISpecialFrames, this:GetName());
287 </OnLoad>
288 <OnShow>
289 FixCTGroupsCellsFrameOnShow();
290 </OnShow>
291 <OnUpdate>
292 FixCTGroupsCellsFrameOnUpdate();
293 </OnUpdate>
294 <OnHide>
295 FixCTGroupsCellsFrameOnHide();
296 </OnHide>
297 </Scripts>
298 </Frame>
299  
300 </Ui>