annotate Devian.xml @ 32:c6a2c2df4790

v2 work
author Nenue
date Sat, 26 Dec 2015 21:51:57 -0500
parents 31ca76e04766
children e6650821a2c0
rev   line source
Nenue@4 1 <Ui>
Nenue@32 2 <!--@no-lib-strip@-->
Nenue@32 3 <Script file="Libs\LibStub\LibStub.lua" />
Nenue@32 4 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" />
Nenue@32 5 <Include file="Libs\AceAddon-3.0\Console-3.0.xml" />
Nenue@32 6 <!--@end-no-lib-strip@-->.
Nenue@14 7
Nenue@14 8 <Texture name="DevianBorder" virtual="true" setAllPoints="false">
Nenue@14 9 <Color r="1" g="0" b="0" a="1" />
Nenue@14 10 <Size x="2" y="2" />
Nenue@14 11 </Texture>
Nenue@14 12
Nenue@13 13 <Frame
Nenue@13 14 name="DevianConsole"
Nenue@13 15 parent="UIParent"
Nenue@13 16 enableMouse="true"
Nenue@13 17 enableMouseWheel="true"
Nenue@13 18 clampedToScreen="true"
Nenue@13 19 movable="true"
Nenue@13 20 resizable="true"
Nenue@13 21 toplevel="true"
Nenue@13 22 hidden="true"
Nenue@13 23 virtual="true">
Nenue@5 24 <ResizeBounds>
Nenue@5 25 <minResize x="200" y="20" />
Nenue@5 26 <maxResize x="1920" y="1200" />
Nenue@5 27 </ResizeBounds>
Nenue@4 28 <Scripts>
Nenue@32 29 <OnShow>
Nenue@32 30 self.header:SetText(self.index..' '.. self.signature)
Nenue@32 31 </OnShow>
Nenue@4 32 <OnMouseWheel>
Nenue@4 33 local up = delta > 0
Nenue@4 34 if IsControlKeyDown() then
Nenue@13 35 if up then self.out:ScrollToTop()
Nenue@13 36 else self.out:ScrollToBottom() end
Nenue@4 37 elseif IsShiftKeyDown() then
Nenue@13 38 if up then self.out:PageUp()
Nenue@13 39 else self.out:PageDown() end
Nenue@4 40 else
Nenue@13 41 if up then self.out:ScrollUp()
Nenue@13 42 else self.out:ScrollDown() end
Nenue@4 43 end
Nenue@4 44 </OnMouseWheel>
Nenue@4 45 </Scripts>
Nenue@4 46
Nenue@4 47 <Frames>
Nenue@13 48 <ScrollingMessageFrame
Nenue@13 49 name="$parentScrollFrame"
Nenue@13 50 parentkey="out"
Nenue@13 51 maxLines="500"
Nenue@13 52 fade="false"
Nenue@13 53 displayduration="2147483647"
Nenue@13 54 insertMode="BOTTOM">
Nenue@4 55 <Anchors>
Nenue@4 56 <Anchor point="TOPLEFT" y="-20" />
Nenue@4 57 <Anchor point="BOTTOMRIGHT" />
Nenue@4 58 </Anchors>
Nenue@5 59 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true"
Nenue@4 60 justifyH="LEFT"
Nenue@4 61 indented="true"
Nenue@4 62 setAllPoints="true">
Nenue@4 63 <FontHeight>
Nenue@5 64 <AbsValue val="13"/>
Nenue@4 65 </FontHeight>
Nenue@4 66 </FontString>
Nenue@4 67
Nenue@4 68 <Layers>
Nenue@4 69 <Layer level="BACKGROUND">
Nenue@13 70 <Texture name="$parentbg" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND">
Nenue@4 71 <Color r="1" g="1" b="1" a="1"/>
Nenue@7 72 <Gradient orientation="VERTICAL">
Nenue@7 73 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@7 74 <MaxColor r="0" g="0" b="0" a="0.3"/>
Nenue@4 75 </Gradient>
Nenue@4 76 </Texture>
Nenue@4 77 </Layer>
Nenue@14 78 <Layer level="OVERLAY">
Nenue@28 79 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD">
Nenue@14 80 <Anchors>
Nenue@14 81 <Anchor point="BOTTOMRIGHT" x="-1" y="1" />
Nenue@14 82 </Anchors>
Nenue@14 83 <Size x="18" y="18" />
Nenue@32 84 <Color r="0.4" g="0.4" b="0.4" a="1"/>
Nenue@14 85 <Gradient orientation="VERTICAL">
Nenue@32 86 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/>
Nenue@32 87 <MinColor r="0.4" g="0.4" b="0.4" a="1"/>
Nenue@14 88 </Gradient>
Nenue@14 89 </Texture>
Nenue@14 90 </Layer>
Nenue@4 91 </Layers>
Nenue@4 92 </ScrollingMessageFrame>
Nenue@4 93 </Frames>
Nenue@4 94 <Layers>
Nenue@32 95 <Layer level="ARTWORK">
Nenue@13 96 <Texture parentKey="titlebar" alphaMode="BLEND">
Nenue@4 97 <Anchors>
Nenue@4 98 <Anchor point="TOPLEFT" />
Nenue@4 99 <Anchor point="TOPRIGHT" />
Nenue@4 100 </Anchors>
Nenue@4 101 <Size y="20" />
Nenue@4 102 <Color r="0.3" g="0.3" b="0.3" a="1" />
Nenue@11 103 <Gradient orientation="VERTICAL">
Nenue@11 104 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@11 105 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/>
Nenue@11 106 </Gradient>
Nenue@4 107 </Texture>
Nenue@13 108 <FontString parentKey="header" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true"
Nenue@4 109 justifyH="LEFT"
Nenue@4 110 indented="true">
Nenue@4 111 <Anchors>
Nenue@4 112 <Anchor point="TOPLEFT" x="4" y="-2" />
Nenue@4 113 </Anchors>
Nenue@4 114 <Size y="20" />
Nenue@4 115 <FontHeight>
Nenue@4 116 <AbsValue val="12"/>
Nenue@4 117 </FontHeight>
Nenue@4 118 </FontString>
Nenue@4 119 </Layer>
Nenue@14 120 <Layer level="BORDER">
Nenue@32 121 <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder">
Nenue@4 122 <Anchors>
Nenue@14 123 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" />
Nenue@4 124 </Anchors>
Nenue@14 125 </Texture>
Nenue@32 126 <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder">
Nenue@14 127 <Anchors>
Nenue@14 128 <Anchor point="TOPLEFT" y="2" />
Nenue@14 129 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
Nenue@14 130 </Anchors>
Nenue@14 131 </Texture>
Nenue@32 132 <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder">
Nenue@14 133 <Anchors>
Nenue@14 134 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" />
Nenue@14 135 </Anchors>
Nenue@14 136 </Texture>
Nenue@32 137 <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder">
Nenue@14 138 <Anchors>
Nenue@14 139 <Anchor point="TOPLEFT" x="-2" />
Nenue@14 140 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" />
Nenue@14 141 </Anchors>
Nenue@14 142 </Texture>
Nenue@14 143 <Texture name="DevBorderBL" parentArray="border" inherits="DevianBorder">
Nenue@14 144 <Anchors>
Nenue@14 145 <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" />
Nenue@14 146 </Anchors>
Nenue@14 147 </Texture>
Nenue@14 148 <Texture name="DevBorderB" parentArray="border" inherits="DevianBorder">
Nenue@14 149 <Anchors>
Nenue@14 150 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
Nenue@14 151 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" />
Nenue@14 152 </Anchors>
Nenue@14 153 </Texture>
Nenue@14 154 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder">
Nenue@14 155 <Anchors>
Nenue@14 156 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" />
Nenue@14 157 </Anchors>
Nenue@14 158 </Texture>
Nenue@32 159 <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder">
Nenue@14 160 <Anchors>
Nenue@14 161 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" />
Nenue@14 162 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" />
Nenue@14 163 </Anchors>
Nenue@4 164 </Texture>
Nenue@4 165 </Layer>
Nenue@4 166 </Layers>
Nenue@4 167 </Frame>
Nenue@4 168 </Ui>