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" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
2 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="GEM_main.lua"/> |
||
4 | |||
5 | <Button name="GEMMinimapButton" parent="Minimap" toplevel="true" hidden="true"> |
||
6 | <Size> |
||
7 | <AbsDimension x="36" y="36"/> |
||
8 | </Size> |
||
9 | <Scripts> |
||
10 | <OnLoad> |
||
11 | this:RegisterForClicks("LeftButtonDown", "RightButtonDown"); |
||
12 | </OnLoad> |
||
13 | <OnClick> |
||
14 | if (arg1 == "LeftButton") then |
||
15 | GEM_Toggle(); |
||
16 | else |
||
17 | GEM_Toggle(); |
||
18 | end |
||
19 | </OnClick> |
||
20 | <OnEnter> |
||
21 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
22 | GameTooltip:ClearLines(); |
||
23 | GameTooltip:SetText(GEM_TITLE); |
||
24 | if(table.getn(GEM_NewEvents) ~= 0) then |
||
25 | GameTooltip:AddLine(GEM_TEXT_NEW_EVENTS_AVAILABLE..table.getn(GEM_NewEvents)); |
||
26 | end |
||
27 | GameTooltip:Show(); |
||
28 | </OnEnter> |
||
29 | <OnLeave> |
||
30 | GameTooltip:Hide(); |
||
31 | </OnLeave> |
||
32 | </Scripts> |
||
33 | <Layers> |
||
34 | <Layer level="ARTWORK"> |
||
35 | <Texture name="$parentTexture" file="Interface\Icons\Spell_Nature_TimeStop"> |
||
36 | <Size> |
||
37 | <AbsDimension x="22" y="22"/> |
||
38 | </Size> |
||
39 | <Anchors> |
||
40 | <Anchor point="TOPLEFT"> |
||
41 | <Offset> |
||
42 | <AbsDimension x="6" y="-5"/> |
||
43 | </Offset> |
||
44 | </Anchor> |
||
45 | </Anchors> |
||
46 | </Texture> |
||
47 | </Layer> |
||
48 | <Layer level="OVERLAY"> |
||
49 | <FontString name="$parentText" inherits="GameFontHighlight" justifyH="CENTER"> |
||
50 | <Size> |
||
51 | <AbsDimension x="16" y="14"/> |
||
52 | </Size> |
||
53 | <Anchors> |
||
54 | <Anchor point="TOPLEFT"> |
||
55 | <Offset> |
||
56 | <AbsDimension x="8" y="-8"/> |
||
57 | </Offset> |
||
58 | </Anchor> |
||
59 | </Anchors> |
||
60 | </FontString> |
||
61 | <Texture file="Interface\Minimap\MiniMap-TrackingBorder"> |
||
62 | <Size> |
||
63 | <AbsDimension x="57" y="57"/> |
||
64 | </Size> |
||
65 | <Anchors> |
||
66 | <Anchor point="TOPLEFT"/> |
||
67 | </Anchors> |
||
68 | </Texture> |
||
69 | </Layer> |
||
70 | </Layers> |
||
71 | </Button> |
||
72 | |||
73 | <Frame name="GEMTabFrame" hidden="true" enableMouse="true" virtual="true"> |
||
74 | <Size> |
||
75 | <AbsDimension x="512" y="440"/> |
||
76 | </Size> |
||
77 | <Anchors> |
||
78 | <Anchor point="TOPLEFT"> |
||
79 | <Offset> |
||
80 | <AbsDimension x="0" y="-40"/> |
||
81 | </Offset> |
||
82 | </Anchor> |
||
83 | </Anchors> |
||
84 | <Scripts> |
||
85 | <OnEscapePressed> |
||
86 | this:Hide(); |
||
87 | </OnEscapePressed> |
||
88 | <OnMouseUp> |
||
89 | GEMMain_OnMouseUp(); |
||
90 | </OnMouseUp> |
||
91 | <OnMouseDown> |
||
92 | GEMMain_OnMouseDown(arg1); |
||
93 | </OnMouseDown> |
||
94 | <OnHide> |
||
95 | GEMMain_OnHide(); |
||
96 | </OnHide> |
||
97 | </Scripts> |
||
98 | </Frame> |
||
99 | |||
100 | <EditBox name="GEMEditBoxTemplate" letters="200" autoFocus="false" historyLines="256" virtual="true" > |
||
101 | <Size> |
||
102 | <AbsDimension x="200" y="26"/> |
||
103 | </Size> |
||
104 | <TextInsets> |
||
105 | <AbsInset left="0" right="5" /> |
||
106 | </TextInsets> |
||
107 | <Layers> |
||
108 | <Layer level="BACKGROUND"> |
||
109 | <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border"> |
||
110 | <Size> |
||
111 | <AbsDimension x="8" y="26"/> |
||
112 | </Size> |
||
113 | <Anchors> |
||
114 | <Anchor point="TOPLEFT"> |
||
115 | <Offset> |
||
116 | <AbsDimension x="-5" y="0"/> |
||
117 | </Offset> |
||
118 | </Anchor> |
||
119 | </Anchors> |
||
120 | <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/> |
||
121 | </Texture> |
||
122 | <Texture name="$parentRight" file="Interface\Common\Common-Input-Border"> |
||
123 | <Size> |
||
124 | <AbsDimension x="8" y="26"/> |
||
125 | </Size> |
||
126 | <Anchors> |
||
127 | <Anchor point="RIGHT"> |
||
128 | <Offset> |
||
129 | <AbsDimension x="0" y="0"/> |
||
130 | </Offset> |
||
131 | </Anchor> |
||
132 | </Anchors> |
||
133 | <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/> |
||
134 | </Texture> |
||
135 | <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border"> |
||
136 | <Size> |
||
137 | <AbsDimension x="10" y="26"/> |
||
138 | </Size> |
||
139 | <Anchors> |
||
140 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
141 | <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/> |
||
142 | </Anchors> |
||
143 | <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/> |
||
144 | </Texture> |
||
145 | </Layer> |
||
146 | </Layers> |
||
147 | |||
148 | <FontString inherits="ChatFontNormal" bytes="256"/> |
||
149 | |||
150 | <Scripts> |
||
151 | <OnShow> |
||
152 | this:ClearFocus(); |
||
153 | </OnShow> |
||
154 | <OnEnterPressed> |
||
155 | this:ClearFocus(); |
||
156 | </OnEnterPressed> |
||
157 | <OnEscapePressed> |
||
158 | this:ClearFocus(); |
||
159 | </OnEscapePressed> |
||
160 | </Scripts> |
||
161 | </EditBox> |
||
162 | |||
163 | <Frame name="GEMMainFrame" parent="UIParent" hidden="true" toplevel="true" enableMouse="true" movable="true"> |
||
164 | <Size> |
||
165 | <AbsDimension x="512" y="542"/> |
||
166 | </Size> |
||
167 | <Anchors> |
||
168 | <Anchor point="TOPLEFT"> |
||
169 | <Offset> |
||
170 | <AbsDimension x="0" y="-50"/> |
||
171 | </Offset> |
||
172 | </Anchor> |
||
173 | </Anchors> |
||
174 | <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
175 | <EdgeSize> |
||
176 | <AbsValue val="16"/> |
||
177 | </EdgeSize> |
||
178 | <TileSize> |
||
179 | <AbsValue val="16"/> |
||
180 | </TileSize> |
||
181 | <BackgroundInsets> |
||
182 | <AbsInset left="3" right="5" top="3" bottom="5"/> |
||
183 | </BackgroundInsets> |
||
184 | </Backdrop> |
||
185 | <Layers> |
||
186 | <Layer level="ARTWORK"> |
||
187 | <FontString name="$parentTitle" inherits="GameFontNormal" text="GEM_TITLE"> |
||
188 | <Anchors> |
||
189 | <Anchor point="TOPLEFT" relativeTo="GEMMainFrame" relativeFrom="TOPLEFT"> |
||
190 | <Offset> |
||
191 | <AbsDimension x="10" y="-15"/> |
||
192 | </Offset> |
||
193 | </Anchor> |
||
194 | </Anchors> |
||
195 | </FontString> |
||
196 | </Layer> |
||
197 | </Layers> |
||
198 | <Frames> |
||
199 | <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> |
||
200 | <Anchors> |
||
201 | <Anchor point="TOPRIGHT" relativeTo="GEMMainFrame"> |
||
202 | <Offset> |
||
203 | <AbsDimension x="2" y="2"/> |
||
204 | </Offset> |
||
205 | </Anchor> |
||
206 | </Anchors> |
||
207 | </Button> |
||
208 | |||
209 | |||
210 | <Button name="$parentTab1" inherits="CharacterFrameTabButtonTemplate" id="1" text="GEM_TAB_LIST"> |
||
211 | <Anchors> |
||
212 | <Anchor point="CENTER" relativePoint="BOTTOMLEFT" relativeTo="GEMMainFrame"> |
||
213 | <Offset> |
||
214 | <AbsDimension x="65" y="-14"/> |
||
215 | </Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | <Scripts> |
||
219 | <OnClick>GEMNew_CheckResetEdit();GEMMain_SelectTab(1);</OnClick> |
||
220 | </Scripts> |
||
221 | </Button> |
||
222 | |||
223 | <Button name="$parentTab2" inherits="CharacterFrameTabButtonTemplate" id="2" text="GEM_TAB_NEW"> |
||
224 | <Anchors> |
||
225 | <Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT"> |
||
226 | <Offset> |
||
227 | <AbsDimension x="-14" y="0"/> |
||
228 | </Offset> |
||
229 | </Anchor> |
||
230 | </Anchors> |
||
231 | <Scripts> |
||
232 | <OnClick>GEMMain_SelectTab(2);</OnClick> |
||
233 | </Scripts> |
||
234 | </Button> |
||
235 | |||
236 | <Button name="$parentTab3" inherits="CharacterFrameTabButtonTemplate" id="3" text="GEM_TAB_PLAYERS"> |
||
237 | <Anchors> |
||
238 | <Anchor point="LEFT" relativeTo="$parentTab2" relativePoint="RIGHT"> |
||
239 | <Offset> |
||
240 | <AbsDimension x="-14" y="0"/> |
||
241 | </Offset> |
||
242 | </Anchor> |
||
243 | </Anchors> |
||
244 | <Scripts> |
||
245 | <OnClick>GEMMain_SelectTab(3);</OnClick> |
||
246 | </Scripts> |
||
247 | </Button> |
||
248 | |||
249 | <Button name="$parentTab4" inherits="CharacterFrameTabButtonTemplate" id="4" text="GEM_TAB_OPTIONS"> |
||
250 | <Anchors> |
||
251 | <Anchor point="LEFT" relativeTo="$parentTab3" relativePoint="RIGHT"> |
||
252 | <Offset> |
||
253 | <AbsDimension x="-14" y="0"/> |
||
254 | </Offset> |
||
255 | </Anchor> |
||
256 | </Anchors> |
||
257 | <Scripts> |
||
258 | <OnClick>GEMNew_CheckResetEdit();GEMMain_SelectTab(4);</OnClick> |
||
259 | </Scripts> |
||
260 | </Button> |
||
261 | |||
262 | <Button name="$parentTab5" inherits="CharacterFrameTabButtonTemplate" id="5" text="Debug"> |
||
263 | <Anchors> |
||
264 | <Anchor point="LEFT" relativeTo="$parentTab4" relativePoint="RIGHT"> |
||
265 | <Offset> |
||
266 | <AbsDimension x="-14" y="0"/> |
||
267 | </Offset> |
||
268 | </Anchor> |
||
269 | </Anchors> |
||
270 | <Scripts> |
||
271 | <OnClick>GEMMain_SelectTab(5);</OnClick> |
||
272 | </Scripts> |
||
273 | </Button> |
||
274 | |||
275 | </Frames> |
||
276 | <Scripts> |
||
277 | <OnLoad> |
||
278 | GEMMain_OnLoad(); |
||
279 | </OnLoad> |
||
280 | <OnShow> |
||
281 | GEMMain_OnShow(); |
||
282 | </OnShow> |
||
283 | <OnEscapePressed> |
||
284 | this:Hide(); |
||
285 | </OnEscapePressed> |
||
286 | <OnMouseUp> |
||
287 | GEMMain_OnMouseUp(); |
||
288 | </OnMouseUp> |
||
289 | <OnMouseDown> |
||
290 | GEMMain_OnMouseDown(arg1); |
||
291 | </OnMouseDown> |
||
292 | <OnHide> |
||
293 | GEMMain_OnHide(); |
||
294 | </OnHide> |
||
295 | </Scripts> |
||
296 | </Frame> |
||
297 | |||
298 | <Button name="GEM_HelpTemplate" virtual="true" hidden="false"> |
||
299 | <Size> |
||
300 | <AbsDimension x="18" y="16"/> |
||
301 | </Size> |
||
302 | <Layers> |
||
303 | <Layer level="OVERLAY"> |
||
304 | <FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="RIGHT" text="[?]"> |
||
305 | <Anchors> |
||
306 | <Anchor point="RIGHT"> |
||
307 | <Offset> |
||
308 | <AbsDimension x="0" y="0"/> |
||
309 | </Offset> |
||
310 | </Anchor> |
||
311 | </Anchors> |
||
312 | </FontString> |
||
313 | </Layer> |
||
314 | </Layers> |
||
315 | <Scripts> |
||
316 | <OnEnter> |
||
317 | getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0); |
||
318 | GEM_Help_SetTooltip(); |
||
319 | GameTooltip:SetText(this.text, 1, 0.72, 0, nil); |
||
320 | </OnEnter> |
||
321 | <OnLeave> |
||
322 | getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 1); |
||
323 | GameTooltip:Hide(); |
||
324 | </OnLeave> |
||
325 | <OnLoad> |
||
326 | this.text = ""; |
||
327 | GEM_Help_LoadText(); |
||
328 | </OnLoad> |
||
329 | </Scripts> |
||
330 | </Button> |
||
331 | |||
332 | </Ui> |