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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 ..\..\FrameXML\UI.xsd">
3 <Frame name="YatlasOptionsFrame" hidden="true" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" parent="UIParent">
4 <Size>
5 <AbsDimension x="420" y="410"/>
6 </Size>
7 <Anchors>
8 <Anchor point="CENTER" />
9 </Anchors>
10  
11 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
12 <BackgroundInsets>
13 <AbsInset left="11" right="12" top="12" bottom="11"/>
14 </BackgroundInsets>
15 <TileSize>
16 <AbsValue val="32"/>
17 </TileSize>
18 <EdgeSize>
19 <AbsValue val="32"/>
20 </EdgeSize>
21 </Backdrop>
22  
23 <Layers>
24 <Layer level="ARTWORK">
25 <Texture name="YatlasOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
26 <Size>
27 <AbsDimension x="256" y="58"/>
28 </Size>
29 <Anchors>
30 <Anchor point="TOP">
31 <Offset>
32 <AbsDimension x="0" y="12"/>
33 </Offset>
34 </Anchor>
35 </Anchors>
36 </Texture>
37 <FontString inherits="GameFontNormal" text="YATLAS_OPTIONS_TITLE">
38 <Anchors>
39 <Anchor point="TOP" relativeTo="YatlasOptionsFrameHeader">
40 <Offset>
41 <AbsDimension x="0" y="-14"/>
42 </Offset>
43 </Anchor>
44 </Anchors>
45 </FontString>
46 </Layer>
47 </Layers>
48  
49 <Frames>
50 <CheckButton name="YatlasOptionsButtonEnable" inherits="UICheckButtonTemplate">
51 <Size>
52 <AbsDimension x="24" y="24"/>
53 </Size>
54 <Anchors>
55 <Anchor point="TOPLEFT">
56 <Offset>
57 <AbsDimension x="24" y="-29" />
58 </Offset>
59 </Anchor>
60 </Anchors>
61 <NormalText inherits="GameFontHighlight" justifyH="LEFT" text="YATLAS_OPTIONS_ENABLEBUTTON">
62 <Size>
63 <AbsDimension x="275" y="16"/>
64 </Size>
65 <Anchors>
66 <Anchor point="LEFT">
67 <Offset>
68 <AbsDimension x="24" y="0"/>
69 </Offset>
70 </Anchor>
71 </Anchors>
72 </NormalText>
73 <Scripts>
74 <OnLoad>
75 this:SetFrameLevel(this:GetFrameLevel() + 4);
76 this:RegisterEvent("VARIABLES_LOADED");
77 </OnLoad>
78 <OnEvent>
79 this:SetChecked(YatlasOptions.ShowButton);
80 </OnEvent>
81 <OnClick>
82 if (this:GetChecked()) then
83 YatlasOptions.ShowButton = true;
84 else
85 YatlasOptions.ShowButton = false;
86 end
87 YatlasButton_Update(YatlasFrame)
88 </OnClick>
89 </Scripts>
90 </CheckButton>
91 <Slider name="YatlasOptionsButtonSlider" inherits="OptionsSliderTemplate">
92 <Size>
93 <AbsDimension x="180" y="16"/>
94 </Size>
95 <Anchors>
96 <Anchor point="TOPLEFT">
97 <Offset>
98 <AbsDimension x="56" y="-64" />
99 </Offset>
100 </Anchor>
101 </Anchors>
102 <Scripts>
103 <OnLoad>
104 this:SetFrameLevel(this:GetFrameLevel() + 4);
105 getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_BUTTONPOS);
106 getglobal(this:GetName().."High"):SetText();
107 getglobal(this:GetName().."Low"):SetText();
108 YatlasOptionsButtonSlider:SetMinMaxValues(0,360);
109 YatlasOptionsButtonSlider:SetValueStep(1);
110 </OnLoad>
111 <OnValueChanged>
112 if(YatlasButton_GetPosition() ~= YatlasOptionsButtonSlider:GetValue()) then
113 YatlasButton_SetPosition(YatlasOptionsButtonSlider:GetValue())
114 if(this:IsVisible()) then
115 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
116 GameTooltip:SetText(format(YATLAS_OPTIONS_BUTTONPOS_TIP,
117 YatlasOptionsButtonSlider:GetValue()));
118 end
119 end
120 </OnValueChanged>
121 <OnEnter>
122 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
123 GameTooltip:SetText(format(YATLAS_OPTIONS_BUTTONPOS_TIP,
124 YatlasOptionsButtonSlider:GetValue()));
125 </OnEnter>
126 <OnLeave>
127 GameTooltip:Hide();
128 </OnLeave>
129 </Scripts>
130 </Slider>
131 <CheckButton name="YatlasOptionsTrackOnShow" inherits="UICheckButtonTemplate">
132 <Size>
133 <AbsDimension x="24" y="24"/>
134 </Size>
135 <Anchors>
136 <Anchor point="TOPLEFT">
137 <Offset>
138 <AbsDimension x="24" y="-90" />
139 </Offset>
140 </Anchor>
141 </Anchors>
142 <NormalText inherits="GameFontHighlight" justifyH="LEFT" text="YATLAS_OPTIONS_TRACKONSHOW">
143 <Size>
144 <AbsDimension x="275" y="16"/>
145 </Size>
146 <Anchors>
147 <Anchor point="LEFT">
148 <Offset>
149 <AbsDimension x="24" y="0"/>
150 </Offset>
151 </Anchor>
152 </Anchors>
153 </NormalText>
154 <Scripts>
155 <OnLoad>
156 this:SetFrameLevel(this:GetFrameLevel() + 4);
157 this:RegisterEvent("VARIABLES_LOADED");
158 </OnLoad>
159 <OnEvent>
160 local aframe = next(YatlasOptions.Frames);
161 this:SetChecked(YatlasOptions.Frames[aframe].trackonshow ~= nil);
162 </OnEvent>
163 <OnClick>
164 -- control all frames at once
165 for h,v in pairs(YatlasOptions.Frames) do
166 if(this:GetChecked()) then
167 v.trackonshow = "player"
168 else
169 v.trackonshow = nil
170 end
171 end
172 </OnClick>
173 </Scripts>
174 </CheckButton>
175  
176 <Frame name="YatlasOptionsFrameFrame" inherits="OptionFrameBoxTemplate">
177 <Anchors>
178 <Anchor point="TOPLEFT">
179 <Offset>
180 <AbsDimension x="24" y="-140" />
181 </Offset>
182 </Anchor>
183 <Anchor point="TOPRIGHT">
184 <Offset>
185 <AbsDimension x="-24" y="-140" />
186 </Offset>
187 </Anchor>
188 </Anchors>
189 <Size>
190 <AbsDimension y="226"/>
191 </Size>
192 <Scripts>
193 <OnLoad>
194 this:SetBackdropColor(0,0,0)
195 </OnLoad>
196 </Scripts>
197 <Frames>
198 <Button name="YatlasOptionsFrameSelect" inherits="UIDropDownMenuTemplate">
199 <Anchors>
200 <Anchor point="TOPLEFT">
201 <Offset>
202 <AbsDimension x="10" y="-12"/>
203 </Offset>
204 </Anchor>
205 </Anchors>
206 <Scripts>
207 <OnLoad>
208 this:RegisterEvent("VARIABLES_LOADED");
209 </OnLoad>
210 <OnEvent>
211 if(event == "VARIABLES_LOADED") then
212 UIDropDownMenu_Initialize(this, YatlasOptionsFrameSelect_Initialize);
213 UIDropDownMenu_SetSelectedID(this, 1);
214 UIDropDownMenu_SetWidth(150);
215 YatlasOptionsFrame_Update();
216 end
217 </OnEvent>
218 </Scripts>
219 </Button>
220 <Slider name="YatlasOptionsAlphaSlider" inherits="OptionsSliderTemplate">
221 <Size>
222 <AbsDimension x="180" y="16"/>
223 </Size>
224 <Anchors>
225 <Anchor point="TOPLEFT">
226 <Offset>
227 <AbsDimension x="32" y="-78" />
228 </Offset>
229 </Anchor>
230 </Anchors>
231 <Scripts>
232 <OnLoad>
233 this:SetFrameLevel(this:GetFrameLevel() + 4);
234 getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_ALPHA);
235 getglobal(this:GetName().."High"):SetText();
236 getglobal(this:GetName().."Low"):SetText();
237 this:SetMinMaxValues(.1,1);
238 this:SetValueStep(.05);
239 </OnLoad>
240 <OnValueChanged>
241 local frame = YatlasOptionsFrameSelect.currFrame;
242 frame:SetAlpha(YatlasOptionsAlphaSlider:GetValue());
243 YatlasOptions.Frames[frame:GetName()].Alpha = YatlasOptionsAlphaSlider:GetValue();
244 </OnValueChanged>
245 </Scripts>
246 </Slider>
247 <Slider name="YatlasOptionsIconSizeSlider" inherits="OptionsSliderTemplate">
248 <Size>
249 <AbsDimension x="180" y="16"/>
250 </Size>
251 <Anchors>
252 <Anchor point="TOPLEFT">
253 <Offset>
254 <AbsDimension x="32" y="-122" />
255 </Offset>
256 </Anchor>
257 </Anchors>
258 <Scripts>
259 <OnLoad>
260 this:SetFrameLevel(this:GetFrameLevel() + 4);
261 getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_ICONSIZE);
262 getglobal(this:GetName().."High"):SetText();
263 getglobal(this:GetName().."Low"):SetText();
264 this:SetMinMaxValues(8,36);
265 this:SetValueStep(1);
266 </OnLoad>
267 <OnValueChanged>
268 local frame = YatlasOptionsFrameSelect.currFrame;
269 local v = YatlasOptionsIconSizeSlider:GetValue();
270 if(YatlasOptions.Frames[frame:GetName()].IconSize ~= v) then
271 YatlasOptions.Frames[frame:GetName()].IconSize = v;
272 YAPoints_Update(frame);
273 end
274 </OnValueChanged>
275 </Scripts>
276 </Slider>
277 <CheckButton name="YatlasOptionsCoordBEnable" inherits="UICheckButtonTemplate">
278 <Size>
279 <AbsDimension x="24" y="24"/>
280 </Size>
281 <Anchors>
282 <Anchor point="TOPLEFT">
283 <Offset>
284 <AbsDimension x="24" y="-164" />
285 </Offset>
286 </Anchor>
287 </Anchors>
288 <NormalText name="$parentText2" inherits="GameFontHighlight" justifyH="LEFT" text="YATLAS_OPTIONS_ENABLECOORD">
289 <Size>
290 <AbsDimension x="275" y="16"/>
291 </Size>
292 <Anchors>
293 <Anchor point="LEFT">
294 <Offset>
295 <AbsDimension x="24" y="0"/>
296 </Offset>
297 </Anchor>
298 </Anchors>
299 </NormalText>
300 <Scripts>
301 <OnLoad>
302 this:SetFrameLevel(this:GetFrameLevel() + 4);
303 this:RegisterEvent("VARIABLES_LOADED");
304 </OnLoad>
305 <OnEvent>
306 this:SetChecked(YatlasOptions.ShowCursorCoords);
307 </OnEvent>
308 <OnClick>
309 if (this:GetChecked()) then
310 YatlasOptions.ShowCursorCoords = true;
311 else
312 YatlasOptions.ShowCursorCoords = false;
313 YatlasPopoutDataCoordText:SetText("");
314 end
315 </OnClick>
316 </Scripts>
317 </CheckButton>
318 </Frames>
319 </Frame>
320  
321 <Button name="YatlasOptionsFrameOkay" inherits="GameMenuButtonTemplate" text="OKAY">
322 <Anchors>
323 <Anchor point="BOTTOMRIGHT">
324 <Offset>
325 <AbsDimension x="-13" y="16"/>
326 </Offset>
327 </Anchor>
328 </Anchors>
329 <Scripts>
330 <OnClick>
331 PlaySound("gsTitleOptionOK");
332 YatlasOptionsFrame:Hide()
333 </OnClick>
334 </Scripts>
335 </Button>
336 </Frames>
337  
338 <Scripts>
339 <OnLoad>
340 -- UIPanelWindows[this:GetName()] = { area = "center", pushable = 0, whileDead = 1 };
341 this:RegisterEvent("VARIABLES_LOADED");
342 </OnLoad>
343 <OnEvent>
344  
345 </OnEvent>
346 <OnShow>
347  
348 </OnShow>
349 </Scripts>
350 </Frame>
351 </Ui>