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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
2 | <Script file="Options.lua"/> |
||
3 | |||
4 | <CheckButton name="LSChat_CheckButtonTemplate" inherits="UICheckButtonTemplate" virtual="true"> |
||
5 | <HitRectInsets> |
||
6 | <AbsInset left="0" right="-20" top="0" bottom="0"/> |
||
7 | </HitRectInsets> |
||
8 | <Scripts> |
||
9 | <OnClick> |
||
10 | if ( this:GetChecked() ) then |
||
11 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
12 | else |
||
13 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
14 | end |
||
15 | MGOptionsFrame_OnClick(); |
||
16 | </OnClick> |
||
17 | <OnEnter> |
||
18 | if ( this.tooltipText ) then |
||
19 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
20 | GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1); |
||
21 | end |
||
22 | if ( this.tooltipRequirement ) then |
||
23 | GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0); |
||
24 | GameTooltip:Show(); |
||
25 | end |
||
26 | </OnEnter> |
||
27 | <OnLeave> |
||
28 | GameTooltip:Hide(); |
||
29 | </OnLeave> |
||
30 | </Scripts> |
||
31 | </CheckButton> |
||
32 | |||
33 | <Frame name="LSChat_Options" toplevel="true" frameStrata="MEDIUM" enableMouse="false" movable="true" parent="UIParent" hidden="true"> |
||
34 | <Size> |
||
35 | <AbsDimension x="280" y="220" /> |
||
36 | </Size> |
||
37 | <Anchors> |
||
38 | <Anchor point="TOP" > |
||
39 | <Offset> |
||
40 | <AbsDimension x="0" y="-200"/> |
||
41 | </Offset> |
||
42 | </Anchor> |
||
43 | </Anchors> |
||
44 | |||
45 | <Scripts> |
||
46 | <OnLoad> |
||
47 | this:RegisterEvent("VARIABLES_LOADED"); |
||
48 | |||
49 | LSChat_Options:SetBackdropColor(0, 0, 0, 1); |
||
50 | LSChat_Options:SetBackdropBorderColor(100, 0, 0); |
||
51 | |||
52 | |||
53 | LSChat_Text_Hide:SetText('Hide Chat Buttons'); |
||
54 | LSChat_Text_DisableButtons:SetText('Disable Chat Buttons'); |
||
55 | |||
56 | LSChat_Text_HideEmote:SetText('Hide Emote Button'); |
||
57 | LSChat_Text_Mousewheel:SetText('Enable Mousewheel to scroll chat'); |
||
58 | |||
59 | LSChat_Text_Enabled:SetText('Enable Chat Timestamps'); |
||
60 | LSChat_Text_Seconds:SetText('Add Seconds to stamps'); |
||
61 | LSChat_Text_Style:SetText('use 24 hours format'); |
||
62 | |||
63 | |||
64 | </OnLoad> |
||
65 | <OnShow> |
||
66 | LSChat_UpdateOptions() |
||
67 | </OnShow> |
||
68 | <OnEvent> |
||
69 | if (event == "VARIABLES_LOADED") then |
||
70 | LSChat_UpdateOptions() |
||
71 | end; |
||
72 | </OnEvent> |
||
73 | <OnMouseDown> |
||
74 | if ( arg1 == "LeftButton" ) then |
||
75 | this:StartMoving(); |
||
76 | end |
||
77 | </OnMouseDown> |
||
78 | <OnMouseUp> |
||
79 | if ( arg1 == "LeftButton" ) then |
||
80 | this:StopMovingOrSizing(); |
||
81 | end |
||
82 | </OnMouseUp> |
||
83 | </Scripts> |
||
84 | <Backdrop name="LSChat_OptionsBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
85 | <EdgeSize> |
||
86 | <AbsValue val="16"/> |
||
87 | </EdgeSize> |
||
88 | <TileSize> |
||
89 | <AbsValue val="16"/> |
||
90 | </TileSize> |
||
91 | <BackgroundInsets> |
||
92 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
93 | </BackgroundInsets> |
||
94 | </Backdrop> |
||
95 | <Layers> |
||
96 | |||
97 | <Layer level="BACKGROUND"> |
||
98 | |||
99 | <FontString name="LSChat_Text_Hide" inherits="GameFontNormal"> |
||
100 | <Anchors><Anchor point="TOPLEFT" relativePoint="TOPLEFT"> |
||
101 | <Offset><AbsDimension x="50" y="-25" /></Offset> |
||
102 | </Anchor></Anchors> |
||
103 | </FontString> |
||
104 | |||
105 | <FontString name="LSChat_Text_DisableButtons" inherits="GameFontNormal"> |
||
106 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_Hide" relativePoint="BOTTOMLEFT"> |
||
107 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
108 | </Anchor></Anchors> |
||
109 | </FontString> |
||
110 | |||
111 | <FontString name="LSChat_Text_HideEmote" inherits="GameFontNormal"> |
||
112 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_DisableButtons" relativePoint="BOTTOMLEFT"> |
||
113 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
114 | </Anchor></Anchors> |
||
115 | </FontString> |
||
116 | |||
117 | <FontString name="LSChat_Text_Mousewheel" inherits="GameFontNormal"> |
||
118 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_HideEmote" relativePoint="BOTTOMLEFT"> |
||
119 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
120 | </Anchor></Anchors> |
||
121 | </FontString> |
||
122 | |||
123 | <FontString name="LSChat_Text_Enabled" inherits="GameFontNormal"> |
||
124 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_Mousewheel" relativePoint="BOTTOMLEFT"> |
||
125 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
126 | </Anchor></Anchors> |
||
127 | </FontString> |
||
128 | |||
129 | <FontString name="LSChat_Text_Seconds" inherits="GameFontNormal"> |
||
130 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_Enabled" relativePoint="BOTTOMLEFT"> |
||
131 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
132 | </Anchor></Anchors> |
||
133 | </FontString> |
||
134 | |||
135 | <FontString name="LSChat_Text_Style" inherits="GameFontNormal"> |
||
136 | <Anchors><Anchor point="TOPLEFT" relativeTo="LSChat_Text_Seconds" relativePoint="BOTTOMLEFT"> |
||
137 | <Offset><AbsDimension x="0" y="-15" /></Offset> |
||
138 | </Anchor></Anchors> |
||
139 | </FontString> |
||
140 | |||
141 | </Layer> |
||
142 | |||
143 | </Layers> |
||
144 | <Frames> |
||
145 | |||
146 | |||
147 | <CheckButton name="LSChat_checkbox_Hide" inherits="LSChat_CheckButtonTemplate"> |
||
148 | <Anchors> |
||
149 | <Anchor point="LEFT" relativeTo="LSChat_Text_Hide" relativePoint="LEFT"> |
||
150 | <Offset> |
||
151 | <AbsDimension x="-35" y="-2"/> |
||
152 | </Offset> |
||
153 | </Anchor> |
||
154 | </Anchors> |
||
155 | <Scripts> |
||
156 | <OnClick> |
||
157 | LSChat.ToggleButtons() |
||
158 | </OnClick> |
||
159 | </Scripts> |
||
160 | </CheckButton> |
||
161 | |||
162 | <CheckButton name="LSChat_checkbox_DisableButtons" inherits="LSChat_CheckButtonTemplate"> |
||
163 | <Anchors> |
||
164 | <Anchor point="LEFT" relativeTo="LSChat_Text_DisableButtons" relativePoint="LEFT"> |
||
165 | <Offset> |
||
166 | <AbsDimension x="-35" y="-2"/> |
||
167 | </Offset> |
||
168 | </Anchor> |
||
169 | </Anchors> |
||
170 | <Scripts> |
||
171 | <OnClick> |
||
172 | LSChat.ToggleEnabled() |
||
173 | </OnClick> |
||
174 | </Scripts> |
||
175 | </CheckButton> |
||
176 | |||
177 | <CheckButton name="LSChat_checkbox_HideEmote" inherits="LSChat_CheckButtonTemplate"> |
||
178 | <Anchors> |
||
179 | <Anchor point="LEFT" relativeTo="LSChat_Text_HideEmote" relativePoint="LEFT"> |
||
180 | <Offset> |
||
181 | <AbsDimension x="-35" y="-2"/> |
||
182 | </Offset> |
||
183 | </Anchor> |
||
184 | </Anchors> |
||
185 | <Scripts> |
||
186 | <OnClick> |
||
187 | LSChat.ToggleEmote() |
||
188 | </OnClick> |
||
189 | </Scripts> |
||
190 | </CheckButton> |
||
191 | |||
192 | <CheckButton name="LSChat_checkbox_Mousewheel" inherits="LSChat_CheckButtonTemplate"> |
||
193 | <Anchors> |
||
194 | <Anchor point="LEFT" relativeTo="LSChat_Text_Mousewheel" relativePoint="LEFT"> |
||
195 | <Offset> |
||
196 | <AbsDimension x="-35" y="-2"/> |
||
197 | </Offset> |
||
198 | </Anchor> |
||
199 | </Anchors> |
||
200 | <Scripts> |
||
201 | <OnClick> |
||
202 | LSChat.ToggleMousewheel() |
||
203 | </OnClick> |
||
204 | </Scripts> |
||
205 | </CheckButton> |
||
206 | |||
207 | |||
208 | <CheckButton name="LSChat_checkbox_Enabled" inherits="LSChat_CheckButtonTemplate"> |
||
209 | <Anchors> |
||
210 | <Anchor point="LEFT" relativeTo="LSChat_Text_Enabled" relativePoint="LEFT"> |
||
211 | <Offset> |
||
212 | <AbsDimension x="-35" y="-2"/> |
||
213 | </Offset> |
||
214 | </Anchor> |
||
215 | </Anchors> |
||
216 | <Scripts> |
||
217 | <OnClick> |
||
218 | LSChat.ToggleStamp() |
||
219 | </OnClick> |
||
220 | </Scripts> |
||
221 | </CheckButton> |
||
222 | |||
223 | <CheckButton name="LSChat_checkbox_Seconds" inherits="LSChat_CheckButtonTemplate"> |
||
224 | <Anchors> |
||
225 | <Anchor point="LEFT" relativeTo="LSChat_Text_Seconds" relativePoint="LEFT"> |
||
226 | <Offset> |
||
227 | <AbsDimension x="-35" y="-2"/> |
||
228 | </Offset> |
||
229 | </Anchor> |
||
230 | </Anchors> |
||
231 | <Scripts> |
||
232 | <OnClick> |
||
233 | LSChat.ToggleStampSeconds() |
||
234 | </OnClick> |
||
235 | </Scripts> |
||
236 | </CheckButton> |
||
237 | |||
238 | <CheckButton name="LSChat_checkbox_Style" inherits="LSChat_CheckButtonTemplate"> |
||
239 | <Anchors> |
||
240 | <Anchor point="LEFT" relativeTo="LSChat_Text_Style" relativePoint="LEFT"> |
||
241 | <Offset> |
||
242 | <AbsDimension x="-35" y="-2"/> |
||
243 | </Offset> |
||
244 | </Anchor> |
||
245 | </Anchors> |
||
246 | <Scripts> |
||
247 | <OnClick> |
||
248 | LSChat.ToggleStampStyle() |
||
249 | </OnClick> |
||
250 | </Scripts> |
||
251 | </CheckButton> |
||
252 | |||
253 | <!--=======================================--> |
||
254 | <!--Exit Button--> |
||
255 | <!--=======================================--> |
||
256 | <Button name="LSChat_Button_Exit" inherits="GameMenuButtonTemplate" virtual="true" text="X"> |
||
257 | <Size> |
||
258 | <AbsDimension x="16" y="16" /> |
||
259 | </Size> |
||
260 | <Anchors> |
||
261 | <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT"> |
||
262 | <Offset> |
||
263 | <AbsDimension x="-8" y="-8"/> |
||
264 | </Offset> |
||
265 | </Anchor> |
||
266 | </Anchors> |
||
267 | <Scripts> |
||
268 | <OnLoad> |
||
269 | </OnLoad> |
||
270 | <OnClick> |
||
271 | LSChat_Options:Hide(); |
||
272 | </OnClick> |
||
273 | </Scripts> |
||
274 | </Button> |
||
275 | |||
276 | <Frame toplevel="true" name="LSChat_Header" hidden="false"> |
||
277 | <Size><AbsDimension x="130" y="25" /></Size> |
||
278 | <Anchors> |
||
279 | <Anchor point="TOP" > |
||
280 | <Offset> |
||
281 | <AbsDimension x="0" y="22" /> |
||
282 | </Offset> |
||
283 | </Anchor> |
||
284 | </Anchors> |
||
285 | |||
286 | <Layers> |
||
287 | <Layer level="ARTWORK"> |
||
288 | <Texture name="LSChat_HeaderArt" file="Interface\ChatFrame\ChatFrameTab"> |
||
289 | <Size><AbsDimension x="140" y="30" /></Size> |
||
290 | <Anchors><Anchor point="TOP" relativePoint="TOP"> |
||
291 | <Offset><AbsDimension x="0" y="5" /></Offset> |
||
292 | </Anchor></Anchors> |
||
293 | </Texture> |
||
294 | |||
295 | <FontString name="LSChat_HeaderText" inherits="GameFontNormal"> |
||
296 | <Anchors><Anchor point="CENTER" relativeTo="LSChat_HeaderArt" relativePoint="CENTER"> |
||
297 | <Offset><AbsDimension x="0" y="-5" /></Offset> |
||
298 | </Anchor></Anchors> |
||
299 | </FontString> |
||
300 | </Layer> |
||
301 | </Layers> |
||
302 | |||
303 | |||
304 | <Scripts> |
||
305 | <OnLoad> |
||
306 | LSChat_HeaderText:SetText("LS Chat"); |
||
307 | </OnLoad> |
||
308 | <OnMouseDown> |
||
309 | if ( arg1 == "LeftButton" ) then |
||
310 | LSChat_Options:StartMoving(); |
||
311 | end |
||
312 | </OnMouseDown> |
||
313 | <OnMouseUp> |
||
314 | if ( arg1 == "LeftButton" ) then |
||
315 | LSChat_Options:StopMovingOrSizing(); |
||
316 | end |
||
317 | </OnMouseUp> |
||
318 | </Scripts> |
||
319 | </Frame> |
||
320 | |||
321 | </Frames> |
||
322 | </Frame> |
||
323 | |||
324 | |||
325 | </Ui> |