Mercurial > wow > devian
comparison Devian.xml @ 32:c6a2c2df4790
v2 work
author | Nenue |
---|---|
date | Sat, 26 Dec 2015 21:51:57 -0500 |
parents | 31ca76e04766 |
children | e6650821a2c0 |
comparison
equal
deleted
inserted
replaced
31:6fcfe60bbd0f | 32:c6a2c2df4790 |
---|---|
1 <Ui> | 1 <Ui> |
2 <!--@no-lib-strip@--> | |
3 <Script file="Libs\LibStub\LibStub.lua" /> | |
4 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> | |
5 <Include file="Libs\AceAddon-3.0\Console-3.0.xml" /> | |
6 <!--@end-no-lib-strip@-->. | |
2 | 7 |
3 <Texture name="DevianBorder" virtual="true" setAllPoints="false"> | 8 <Texture name="DevianBorder" virtual="true" setAllPoints="false"> |
4 <Color r="1" g="0" b="0" a="1" /> | 9 <Color r="1" g="0" b="0" a="1" /> |
5 <Size x="2" y="2" /> | 10 <Size x="2" y="2" /> |
6 </Texture> | 11 </Texture> |
19 <ResizeBounds> | 24 <ResizeBounds> |
20 <minResize x="200" y="20" /> | 25 <minResize x="200" y="20" /> |
21 <maxResize x="1920" y="1200" /> | 26 <maxResize x="1920" y="1200" /> |
22 </ResizeBounds> | 27 </ResizeBounds> |
23 <Scripts> | 28 <Scripts> |
24 <OnShow></OnShow> | 29 <OnShow> |
25 <OnMouseDown> | 30 self.header:SetText(self.index..' '.. self.signature) |
26 self:ToFront() | 31 </OnShow> |
27 if button == 'LeftButton' then | |
28 if self.out.grip:IsMouseOver() then | |
29 return self:StartSizing() | |
30 end | |
31 return self:StartMoving() | |
32 end | |
33 </OnMouseDown> | |
34 <OnMouseUp> | |
35 if button == 'RightButton' then | |
36 return self:MinMax() | |
37 end | |
38 self:StopMovingOrSizing() | |
39 self.x = nil -- free these up | |
40 self.y = nil | |
41 self.width = nil | |
42 self.height = nil | |
43 self:Save() | |
44 </OnMouseUp> | |
45 <OnMouseWheel> | 32 <OnMouseWheel> |
46 local up = delta > 0 | 33 local up = delta > 0 |
47 if IsControlKeyDown() then | 34 if IsControlKeyDown() then |
48 if up then self.out:ScrollToTop() | 35 if up then self.out:ScrollToTop() |
49 else self.out:ScrollToBottom() end | 36 else self.out:ScrollToBottom() end |
53 else | 40 else |
54 if up then self.out:ScrollUp() | 41 if up then self.out:ScrollUp() |
55 else self.out:ScrollDown() end | 42 else self.out:ScrollDown() end |
56 end | 43 end |
57 </OnMouseWheel> | 44 </OnMouseWheel> |
58 <OnUpdate> | |
59 if not self.throttle then | |
60 self.throttle = GetTime() | |
61 elseif (GetTime()-self.throttle < 0.2) then | |
62 return | |
63 else | |
64 self.throttle = GetTime() | |
65 end | |
66 local text = string.gsub(self.format, '%%t', GetTime(), 1) | |
67 text = string.gsub(text, '%%n', self.signature, 1) | |
68 self.header:SetText(text) | |
69 </OnUpdate> | |
70 </Scripts> | 45 </Scripts> |
71 | 46 |
72 <Frames> | 47 <Frames> |
73 <ScrollingMessageFrame | 48 <ScrollingMessageFrame |
74 name="$parentScrollFrame" | 49 name="$parentScrollFrame" |
104 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD"> | 79 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD"> |
105 <Anchors> | 80 <Anchors> |
106 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> | 81 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> |
107 </Anchors> | 82 </Anchors> |
108 <Size x="18" y="18" /> | 83 <Size x="18" y="18" /> |
109 <Color r="1" g="1" b="1" a="1"/> | 84 <Color r="0.4" g="0.4" b="0.4" a="1"/> |
110 <Gradient orientation="VERTICAL"> | 85 <Gradient orientation="VERTICAL"> |
111 <MaxColor r="0.2" g="0.2" b="0.2" a="1"/> | 86 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> |
112 <MinColor r="0.5" g="0.5" b="0.5" a="1"/> | 87 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> |
113 </Gradient> | 88 </Gradient> |
114 </Texture> | 89 </Texture> |
115 </Layer> | 90 </Layer> |
116 </Layers> | 91 </Layers> |
117 </ScrollingMessageFrame> | 92 </ScrollingMessageFrame> |
118 </Frames> | 93 </Frames> |
119 <Layers> | 94 <Layers> |
120 <Layer level="BORDER"> | 95 <Layer level="ARTWORK"> |
121 <Texture parentKey="titlebar" alphaMode="BLEND"> | 96 <Texture parentKey="titlebar" alphaMode="BLEND"> |
122 <Anchors> | 97 <Anchors> |
123 <Anchor point="TOPLEFT" /> | 98 <Anchor point="TOPLEFT" /> |
124 <Anchor point="TOPRIGHT" /> | 99 <Anchor point="TOPRIGHT" /> |
125 </Anchors> | 100 </Anchors> |
133 <FontString parentKey="header" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" | 108 <FontString parentKey="header" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" |
134 justifyH="LEFT" | 109 justifyH="LEFT" |
135 indented="true"> | 110 indented="true"> |
136 <Anchors> | 111 <Anchors> |
137 <Anchor point="TOPLEFT" x="4" y="-2" /> | 112 <Anchor point="TOPLEFT" x="4" y="-2" /> |
138 <Anchor point="TOPRIGHT" x="-4" /> | |
139 </Anchors> | 113 </Anchors> |
140 <Size y="20" /> | 114 <Size y="20" /> |
141 <FontHeight> | 115 <FontHeight> |
142 <AbsValue val="12"/> | 116 <AbsValue val="12"/> |
143 </FontHeight> | 117 </FontHeight> |
144 </FontString> | 118 </FontString> |
145 </Layer> | 119 </Layer> |
146 <Layer level="BORDER"> | 120 <Layer level="BORDER"> |
147 <Texture name="DevBorderUR" parentArray="border" inherits="DevianBorder"> | 121 <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder"> |
148 <Anchors> | 122 <Anchors> |
149 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> | 123 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> |
150 </Anchors> | 124 </Anchors> |
151 </Texture> | 125 </Texture> |
152 <Texture name="DevBorderU" parentArray="border" inherits="DevianBorder"> | 126 <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder"> |
153 <Anchors> | 127 <Anchors> |
154 <Anchor point="TOPLEFT" y="2" /> | 128 <Anchor point="TOPLEFT" y="2" /> |
155 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> | 129 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> |
156 </Anchors> | 130 </Anchors> |
157 </Texture> | 131 </Texture> |
158 <Texture name="DevBorderUL" parentArray="border" inherits="DevianBorder"> | 132 <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder"> |
159 <Anchors> | 133 <Anchors> |
160 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> | 134 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> |
161 </Anchors> | 135 </Anchors> |
162 </Texture> | 136 </Texture> |
163 <Texture name="DevBorderL" parentArray="border" inherits="DevianBorder"> | 137 <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder"> |
164 <Anchors> | 138 <Anchors> |
165 <Anchor point="TOPLEFT" x="-2" /> | 139 <Anchor point="TOPLEFT" x="-2" /> |
166 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> | 140 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> |
167 </Anchors> | 141 </Anchors> |
168 </Texture> | 142 </Texture> |
180 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder"> | 154 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder"> |
181 <Anchors> | 155 <Anchors> |
182 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> | 156 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> |
183 </Anchors> | 157 </Anchors> |
184 </Texture> | 158 </Texture> |
185 <Texture name="DevBorderR" parentArray="border" inherits="DevianBorder"> | 159 <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder"> |
186 <Anchors> | 160 <Anchors> |
187 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> | 161 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> |
188 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> | 162 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> |
189 </Anchors> | 163 </Anchors> |
190 </Texture> | 164 </Texture> |