Mercurial > wow > devian
comparison Devian.xml @ 93:f6fae1a4c66c v2.2.95-rc1
- revision and simplification dock layout
- fixed character-specific addon choices getting erroneously toggled
The XML template was missing header information; that has been filled in, and it should be easier to catch problems arising from that area.
author | Nenue |
---|---|
date | Wed, 19 Oct 2016 16:47:38 -0400 |
parents | e89244da507b |
children | 33bc8baba858 |
comparison
equal
deleted
inserted
replaced
92:4370eefcecdd | 93:f6fae1a4c66c |
---|---|
1 <Ui> | 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"> | |
2 <!--@no-lib-strip@--> | 3 <!--@no-lib-strip@--> |
3 <Script file="Libs\LibStub\LibStub.lua" /> | 4 <Script file="Libs\LibStub\LibStub.lua" /> |
4 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> | 5 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> |
5 <Include file="Libs\AceConsole-3.0\Console-3.0.xml" /> | 6 <Include file="Libs\AceConsole-3.0\Console-3.0.xml" /> |
6 <!--@end-no-lib-strip@--> | 7 <!--@end-no-lib-strip@--> |
32 <Layer level="ARTWORK"> | 33 <Layer level="ARTWORK"> |
33 <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD"> | 34 <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD"> |
34 <Color a="1" r="1" g="1" b="1" /> | 35 <Color a="1" r="1" g="1" b="1" /> |
35 <TexCoords top="0.47" left="0" bottom="0.9" right="1" /> | 36 <TexCoords top="0.47" left="0" bottom="0.9" right="1" /> |
36 </Texture> | 37 </Texture> |
38 | |
37 </Layer> | 39 </Layer> |
38 </Layers> | 40 </Layers> |
39 </Button> | 41 </Button> |
40 | 42 |
41 <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND"> | 43 <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND"> |
43 <OnClick> | 45 <OnClick> |
44 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); | 46 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); |
45 </OnClick> | 47 </OnClick> |
46 </Scripts> | 48 </Scripts> |
47 </Button> | 49 </Button> |
50 | |
51 <Font name="DevianDockHeader" font="Fonts\ARIALN.TTF" outline="NORMAL" virtual="true" height="14" /> | |
48 | 52 |
49 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" outline="NORMAL" virtual="true"> | 53 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" outline="NORMAL" virtual="true"> |
50 <FontHeight> | 54 <FontHeight> |
51 <AbsValue val="13" /> | 55 <AbsValue val="13" /> |
52 </FontHeight> | 56 </FontHeight> |
231 enableMouse="true" | 235 enableMouse="true" |
232 alpha="0.1" | 236 alpha="0.1" |
233 hidden="true" | 237 hidden="true" |
234 frameStrata="LOW"> | 238 frameStrata="LOW"> |
235 <Scripts> | 239 <Scripts> |
236 <OnEnter> | 240 <OnMouseWheel> |
237 Devian.DockHighlight(self) | 241 Devian.Dock_OnMouseWheel(self, delta) |
238 </OnEnter> | 242 </OnMouseWheel> |
239 <OnLeave> | 243 </Scripts> |
240 Devian.DockHighlight(self) | |
241 </OnLeave> | |
242 </Scripts> | |
243 <Anchors> | |
244 <Anchor point="TOP" relativePoint="TOP" x="0" y="1" /> | |
245 </Anchors> | |
246 <Size x="32" y="20" /> | 244 <Size x="32" y="20" /> |
247 <Layers> | 245 <Layers> |
248 <Layer level="ARTWORK"> | 246 <Layer level="ARTWORK"> |
249 <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="caption" alphaMode="BLEND"> | 247 <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="caption" alphaMode="BLEND"> |
250 <Color r="1" g="1" b="1" a="1" /> | 248 <Color r="1" g="1" b="1" a="1" /> |
284 | 282 |
285 </Layer> | 283 </Layer> |
286 </Layers> | 284 </Layers> |
287 </Button> | 285 </Button> |
288 | 286 |
289 <Button name="DevianBeacon" hidden="true" inherits="DevianButton" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM"> | 287 <Button name="DevianBeacon" hidden="true" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM" mixin="DevianDockButtonMixin"> |
290 <Size x="64" y="32" /> | 288 <Size x="64" y="24" /> |
291 | 289 |
292 <Scripts> | 290 <Scripts> |
293 <OnShow> | 291 <OnShow method="OnShow" /> |
294 Devian.UpdateBeacon(self) | 292 <OnEnter method="OnEnter" /> |
295 </OnShow> | 293 <OnMouseDown method="OnMouseDown" /> |
296 <OnMouseDown> | 294 <OnClick method="Select" /> |
297 --print("click", self:GetName(), button, self.console.index) | 295 </Scripts> |
298 if button == "LeftButton" then | 296 <Layers> |
299 if IsShiftKeyDown() then | 297 <Layer level="BACKGROUND"> |
300 Devian:Console_Toggle(self.console.index, 0) | 298 <Texture parentKey="Background" setAllPoints="true"> |
301 else | 299 <Color a="0.5" r="0" g="0" b="0" /> |
302 if self.console.index == Devian.currentProfile.current_channel or (not self.console.enabled) then | 300 </Texture> |
303 Devian:Console_Toggle(self.console.index) | 301 </Layer> |
304 if self.console.enabled then | |
305 if self.console.minimized then | |
306 self.console:MinMax() | |
307 end | |
308 self.console:ToFront() | |
309 end | |
310 else | |
311 self.console:ToFront() | |
312 end | |
313 end | |
314 elseif button == "RightButton" then | |
315 self.console:MinMax() | |
316 end | |
317 self.console:Save() | |
318 </OnMouseDown> | |
319 <OnEnter> | |
320 --print(self:GetName(),'got mouse') | |
321 Devian.DockHighlight(self) | |
322 </OnEnter> | |
323 </Scripts> | |
324 <Layers> | |
325 <Layer level="OVERLAY"> | 302 <Layer level="OVERLAY"> |
303 <Texture parentKey="Stripe"> | |
304 <Anchors> | |
305 <Anchor point="TOPLEFT" /> | |
306 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="-3" /> | |
307 </Anchors> | |
308 </Texture> | |
326 </Layer> | 309 </Layer> |
327 </Layers> | 310 </Layers> |
328 <Frames> | 311 <Frames> |
329 <Frame name="$parentText" parentKey="caption" alpha="0" blendMode="BLEND" enableMouse="false"> | 312 <Frame name="$parentText" parentKey="caption" alpha="1" blendMode="BLEND" enableMouse="false"> |
330 <Size x="100" y="30" /> | 313 <Size x="64" y="24" /> |
331 <Anchors> | 314 <Anchors> |
332 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" /> | 315 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" /> |
333 </Anchors> | 316 </Anchors> |
334 <Layers> | 317 <Layers> |
335 <Layer level="OVERLAY"> | 318 <Layer level="OVERLAY"> |
336 <FontString text="Test String" inherits="DevianText" parentKey="name" setAllPoints="true"> | 319 <FontString text="Test String" inherits="DevianDockHeader" parentKey="name" wordwrap="false" setAllPoints="true"> |
320 <Anchors> | |
321 <Anchor point="BOTTOM" /> | |
322 </Anchors> | |
337 <Color r="1" g="1" b="1" a="1" /> | 323 <Color r="1" g="1" b="1" a="1" /> |
338 <Shadow> | 324 <Shadow> |
339 <Color r="0" g="0" b="0" a="1" /> | 325 <Color r="0" g="0" b="0" a="1" /> |
340 <Offset x="0" y="-2" /> | 326 <Offset x="0" y="-2" /> |
341 </Shadow> | 327 </Shadow> |
342 <Animations> | |
343 <AnimationGroup> | |
344 <Scale scaleX="1.4" scaleY="1.4" looping="NONE"> | |
345 <Origin point="CENTER" x="0" y="0" /> | |
346 | |
347 </Scale> | |
348 </AnimationGroup> | |
349 </Animations> | |
350 </FontString> | 328 </FontString> |
351 </Layer> | 329 </Layer> |
352 </Layers> | 330 </Layers> |
331 <Animations> | |
332 <AnimationGroup parentKey="pulse" looping="BOUNCE" setToFinalAlpha="false"> | |
333 <Alpha fromAlpha=".5" toAlpha="1" duration="0.4" endDelay="0.6" order="1" childKey="name" /> | |
334 | |
335 </AnimationGroup> | |
336 </Animations> | |
353 </Frame> | 337 </Frame> |
354 </Frames> | 338 </Frames> |
355 </Button> | 339 </Button> |
356 | 340 |
357 </Ui> | 341 </Ui> |