Mercurial > wow > devian
comparison Devian.xml @ 35:3304455a3f45
code organizing; UI stuff is in the UI script, Devian prime just deals with config and print
corner menu elements placed and hooked, still needs follow-up code
author | Nenue |
---|---|
date | Sun, 27 Dec 2015 03:51:17 -0500 |
parents | e6650821a2c0 |
children | bec37163b7fe |
comparison
equal
deleted
inserted
replaced
34:7441f3bce940 | 35:3304455a3f45 |
---|---|
1 <Ui> | 1 <Ui> |
2 <!--@no-lib-strip@--> | 2 <!--@no-lib-strip@--> |
3 <Script file="Libs\LibStub\LibStub.lua" /> | 3 <Script file="Libs\LibStub\LibStub.lua" /> |
4 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> | 4 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> |
5 <Include file="Libs\AceAddon-3.0\Console-3.0.xml" /> | 5 <Include file="Libs\AceAddon-3.0\Console-3.0.xml" /> |
6 <!--@end-no-lib-strip@-->. | 6 <!--@end-no-lib-strip@--> |
7 | |
7 | 8 |
8 <Texture virtual="true" name="DevianBorder" setAllPoints="false"> | 9 <Texture virtual="true" name="DevianBorder" setAllPoints="false"> |
9 <Color r="1" g="0" b="0" a="1" /> | 10 <Color r="1" g="0" b="0" a="1" /> |
10 <Size x="2" y="2" /> | 11 <Size x="2" y="2" /> |
11 </Texture> | 12 </Texture> |
21 <Gradient orientation="VERTICAL"> | 22 <Gradient orientation="VERTICAL"> |
22 <MinColor r="0" g="0" b="0" a="0.7"/> | 23 <MinColor r="0" g="0" b="0" a="0.7"/> |
23 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/> | 24 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/> |
24 </Gradient> | 25 </Gradient> |
25 </Texture> | 26 </Texture> |
27 | |
28 <Button virtual="true" name="DevianDDButton" parentKey="button" alphaMode="BLEND"> | |
29 <Scripts> | |
30 <OnClick> | |
31 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); | |
32 </OnClick> | |
33 </Scripts> | |
34 <Size x="16" y="16" /> | |
35 <Layers> | |
36 <Layer level="ARTWORK"> | |
37 <Texture file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD"> | |
38 <Color a="1" r="1" g="1" b="1" /> | |
39 </Texture> | |
40 </Layer> | |
41 </Layers> | |
42 </Button> | |
43 | |
44 | |
45 | |
46 <Frame name="DevianDDMenu" virtual="true" inherits="UIDropDownMenuTemplate" id="1"> | |
47 <Scripts> | |
48 <OnLoad> | |
49 local f = self:GetParent() | |
50 UIDropDownMenu_Initialize(self, function() | |
51 local info = { | |
52 text = "Some Text", | |
53 value = "OptionVariable", | |
54 func = function () print(self:GetParent().signature, 'how') end | |
55 } | |
56 -- can also be done as function() FunctionCalledWhenOptionIsClicked() end; | |
57 | |
58 -- Add the above information to the options menu as a button. | |
59 UIDropDownMenu_AddButton(info); | |
60 end, 'MENU')</OnLoad> | |
61 </Scripts> | |
62 </Frame> | |
26 | 63 |
27 <ScrollingMessageFrame | 64 <ScrollingMessageFrame |
28 name="DevianBuffer" | 65 name="DevianBuffer" |
29 maxLines="500" | 66 maxLines="500" |
30 fade="false" | 67 fade="false" |
172 </Anchors> | 209 </Anchors> |
173 </Texture> | 210 </Texture> |
174 </Layer> | 211 </Layer> |
175 </Layers> | 212 </Layers> |
176 <Frames> | 213 <Frames> |
214 <Frame name="$parentDDMenu" parentKey="menuFrame" inherits="DevianDDMenu" /> | |
215 <Button name="$parentMenuButton" parentKey="menuButton" inherits="DevianDDButton" enableMouse="true"> | |
216 <Anchors> | |
217 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> | |
218 </Anchors> | |
219 </Button> | |
177 <ScrollingMessageFrame parentKey="out" inherits="DevianBuffer" /> | 220 <ScrollingMessageFrame parentKey="out" inherits="DevianBuffer" /> |
178 </Frames> | 221 </Frames> |
179 </Frame> | 222 </Frame> |
180 | |
181 | |
182 | 223 |
183 <Frame | 224 <Frame |
184 name="DevianDockFrame" | 225 name="DevianDockFrame" |
185 inherits="DevianConsole" | 226 inherits="DevianConsole" |
186 virtual="true"> | 227 virtual="true"> |