Mercurial > wow > devian
comparison Devian.xml @ 33:e6650821a2c0
Debugging pass on console code.
| author | Nenue |
|---|---|
| date | Sun, 27 Dec 2015 02:30:46 -0500 |
| parents | c6a2c2df4790 |
| children | 3304455a3f45 |
comparison
equal
deleted
inserted
replaced
| 32:c6a2c2df4790 | 33:e6650821a2c0 |
|---|---|
| 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 <Texture name="DevianBorder" virtual="true" setAllPoints="false"> | 8 <Texture virtual="true" name="DevianBorder" setAllPoints="false"> |
| 9 <Color r="1" g="0" b="0" a="1" /> | 9 <Color r="1" g="0" b="0" a="1" /> |
| 10 <Size x="2" y="2" /> | 10 <Size x="2" y="2" /> |
| 11 </Texture> | 11 </Texture> |
| 12 | |
| 13 | |
| 14 <Texture virtual="true" name="DevianHeader" parentKey="titlebar" alphaMode="BLEND"> | |
| 15 <Anchors> | |
| 16 <Anchor point="TOPLEFT" /> | |
| 17 <Anchor point="TOPRIGHT" /> | |
| 18 </Anchors> | |
| 19 <Size y="20" /> | |
| 20 <Color r="0.3" g="0.3" b="0.3" a="1" /> | |
| 21 <Gradient orientation="VERTICAL"> | |
| 22 <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 </Gradient> | |
| 25 </Texture> | |
| 26 | |
| 27 <ScrollingMessageFrame | |
| 28 name="DevianBuffer" | |
| 29 maxLines="500" | |
| 30 fade="false" | |
| 31 displayduration="2147483647" | |
| 32 insertMode="BOTTOM" | |
| 33 virtual="true"> | |
| 34 <Anchors> | |
| 35 <Anchor point="TOPLEFT" y="-20" /> | |
| 36 <Anchor point="BOTTOMRIGHT" /> | |
| 37 </Anchors> | |
| 38 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" | |
| 39 justifyH="LEFT" | |
| 40 indented="true" | |
| 41 setAllPoints="true"> | |
| 42 <FontHeight> | |
| 43 <AbsValue val="13"/> | |
| 44 </FontHeight> | |
| 45 </FontString> | |
| 46 | |
| 47 <Layers> | |
| 48 <Layer level="BACKGROUND"> | |
| 49 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> | |
| 50 <Color r="1" g="1" b="1" a="1"/> | |
| 51 <Gradient orientation="VERTICAL"> | |
| 52 <MinColor r="0" g="0" b="0" a="0.7"/> | |
| 53 <MaxColor r="0" g="0" b="0" a="0.3"/> | |
| 54 </Gradient> | |
| 55 </Texture> | |
| 56 </Layer> | |
| 57 <Layer level="OVERLAY"> | |
| 58 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD"> | |
| 59 <Anchors> | |
| 60 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> | |
| 61 </Anchors> | |
| 62 <Size x="18" y="18" /> | |
| 63 <Color r="0.4" g="0.4" b="0.4" a="1"/> | |
| 64 <Gradient orientation="VERTICAL"> | |
| 65 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> | |
| 66 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> | |
| 67 </Gradient> | |
| 68 </Texture> | |
| 69 </Layer> | |
| 70 </Layers> | |
| 71 </ScrollingMessageFrame> | |
| 12 | 72 |
| 13 <Frame | 73 <Frame |
| 14 name="DevianConsole" | 74 name="DevianConsole" |
| 15 parent="UIParent" | 75 parent="UIParent" |
| 16 enableMouse="true" | 76 enableMouse="true" |
| 25 <minResize x="200" y="20" /> | 85 <minResize x="200" y="20" /> |
| 26 <maxResize x="1920" y="1200" /> | 86 <maxResize x="1920" y="1200" /> |
| 27 </ResizeBounds> | 87 </ResizeBounds> |
| 28 <Scripts> | 88 <Scripts> |
| 29 <OnShow> | 89 <OnShow> |
| 30 self.header:SetText(self.index..' '.. self.signature) | 90 self.title:SetText(self.index..' '.. self.signature) |
| 31 </OnShow> | 91 </OnShow> |
| 32 <OnMouseWheel> | 92 <OnMouseWheel> |
| 33 local up = delta > 0 | 93 local up = delta > 0 |
| 34 if IsControlKeyDown() then | 94 if IsControlKeyDown() then |
| 35 if up then self.out:ScrollToTop() | 95 if up then self.out:ScrollToTop() |
| 41 if up then self.out:ScrollUp() | 101 if up then self.out:ScrollUp() |
| 42 else self.out:ScrollDown() end | 102 else self.out:ScrollDown() end |
| 43 end | 103 end |
| 44 </OnMouseWheel> | 104 </OnMouseWheel> |
| 45 </Scripts> | 105 </Scripts> |
| 46 | |
| 47 <Frames> | |
| 48 <ScrollingMessageFrame | |
| 49 name="$parentScrollFrame" | |
| 50 parentkey="out" | |
| 51 maxLines="500" | |
| 52 fade="false" | |
| 53 displayduration="2147483647" | |
| 54 insertMode="BOTTOM"> | |
| 55 <Anchors> | |
| 56 <Anchor point="TOPLEFT" y="-20" /> | |
| 57 <Anchor point="BOTTOMRIGHT" /> | |
| 58 </Anchors> | |
| 59 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true" | |
| 60 justifyH="LEFT" | |
| 61 indented="true" | |
| 62 setAllPoints="true"> | |
| 63 <FontHeight> | |
| 64 <AbsValue val="13"/> | |
| 65 </FontHeight> | |
| 66 </FontString> | |
| 67 | |
| 68 <Layers> | |
| 69 <Layer level="BACKGROUND"> | |
| 70 <Texture name="$parentbg" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> | |
| 71 <Color r="1" g="1" b="1" a="1"/> | |
| 72 <Gradient orientation="VERTICAL"> | |
| 73 <MinColor r="0" g="0" b="0" a="0.7"/> | |
| 74 <MaxColor r="0" g="0" b="0" a="0.3"/> | |
| 75 </Gradient> | |
| 76 </Texture> | |
| 77 </Layer> | |
| 78 <Layer level="OVERLAY"> | |
| 79 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD"> | |
| 80 <Anchors> | |
| 81 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> | |
| 82 </Anchors> | |
| 83 <Size x="18" y="18" /> | |
| 84 <Color r="0.4" g="0.4" b="0.4" a="1"/> | |
| 85 <Gradient orientation="VERTICAL"> | |
| 86 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> | |
| 87 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> | |
| 88 </Gradient> | |
| 89 </Texture> | |
| 90 </Layer> | |
| 91 </Layers> | |
| 92 </ScrollingMessageFrame> | |
| 93 </Frames> | |
| 94 <Layers> | 106 <Layers> |
| 95 <Layer level="ARTWORK"> | 107 <Layer level="ARTWORK"> |
| 96 <Texture parentKey="titlebar" alphaMode="BLEND"> | 108 <FontString parentKey="title" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" |
| 97 <Anchors> | |
| 98 <Anchor point="TOPLEFT" /> | |
| 99 <Anchor point="TOPRIGHT" /> | |
| 100 </Anchors> | |
| 101 <Size y="20" /> | |
| 102 <Color r="0.3" g="0.3" b="0.3" a="1" /> | |
| 103 <Gradient orientation="VERTICAL"> | |
| 104 <MinColor r="0" g="0" b="0" a="0.7"/> | |
| 105 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/> | |
| 106 </Gradient> | |
| 107 </Texture> | |
| 108 <FontString parentKey="header" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" | |
| 109 justifyH="LEFT" | 109 justifyH="LEFT" |
| 110 indented="true"> | 110 indented="true"> |
| 111 <Anchors> | 111 <Anchors> |
| 112 <Anchor point="TOPLEFT" x="4" y="-2" /> | 112 <Anchor point="TOPLEFT" x="4" y="-2" /> |
| 113 </Anchors> | 113 </Anchors> |
| 161 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> | 161 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> |
| 162 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> | 162 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> |
| 163 </Anchors> | 163 </Anchors> |
| 164 </Texture> | 164 </Texture> |
| 165 </Layer> | 165 </Layer> |
| 166 <Layer level="OVERLAY"> | |
| 167 <Texture name="$parentHeader" parentKey="header" inherits="DevianHeader"> | |
| 168 <Anchors> | |
| 169 <Anchor point="TOPLEFT" /> | |
| 170 <Anchor point="TOPRIGHT" /> | |
| 171 <Size y="20" /> | |
| 172 </Anchors> | |
| 173 </Texture> | |
| 174 </Layer> | |
| 166 </Layers> | 175 </Layers> |
| 176 <Frames> | |
| 177 <ScrollingMessageFrame parentKey="out" inherits="DevianBuffer" /> | |
| 178 </Frames> | |
| 179 </Frame> | |
| 180 | |
| 181 | |
| 182 | |
| 183 <Frame | |
| 184 name="DevianDockFrame" | |
| 185 inherits="DevianConsole" | |
| 186 virtual="true"> | |
| 187 <Layers> | |
| 188 <Layer level="ARTWORK"> | |
| 189 <Texture name="$parentHeader" parentKey="headerbar" inherits="DevianHeader"> | |
| 190 <Anchors> | |
| 191 <Anchor point="TOPLEFT" /> | |
| 192 <Size x="150" y="20" /> | |
| 193 </Anchors> | |
| 194 </Texture> | |
| 195 <!-- channel headers are moved here --> | |
| 196 </Layer> | |
| 197 </Layers> | |
| 198 <Frames> | |
| 199 <!-- channel scrollers are moved in here --> | |
| 200 </Frames> | |
| 167 </Frame> | 201 </Frame> |
| 168 </Ui> | 202 </Ui> |
