annotate Devian.xml @ 48:2bf7eb1844cb v2.0-raw

commenting out prints
author Nenue
date Mon, 04 Jan 2016 07:56:08 -0500
parents eb7544afd77a
children c3166f700438
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@35 6 <!--@end-no-lib-strip@-->
Nenue@35 7
Nenue@14 8
Nenue@33 9 <Texture virtual="true" name="DevianBorder" setAllPoints="false">
Nenue@14 10 <Color r="1" g="0" b="0" a="1" />
Nenue@14 11 <Size x="2" y="2" />
Nenue@14 12 </Texture>
Nenue@14 13
Nenue@33 14
Nenue@36 15 <Texture virtual="true" name="DevianHeader" alphaMode="BLEND">
Nenue@33 16 <Anchors>
Nenue@33 17 <Anchor point="TOPLEFT" />
Nenue@33 18 <Anchor point="TOPRIGHT" />
Nenue@33 19 </Anchors>
Nenue@33 20 <Size y="20" />
Nenue@33 21 <Color r="0.3" g="0.3" b="0.3" a="1" />
Nenue@33 22 <Gradient orientation="VERTICAL">
Nenue@33 23 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@33 24 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/>
Nenue@33 25 </Gradient>
Nenue@33 26 </Texture>
Nenue@33 27
Nenue@47 28
Nenue@47 29 <Button virtual="true" name="DevianButton" alphaMode="BLEND">
Nenue@36 30 <Size x="32" y="16" />
Nenue@35 31 <Layers>
Nenue@35 32 <Layer level="ARTWORK">
Nenue@47 33 <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD">
Nenue@35 34 <Color a="1" r="1" g="1" b="1" />
Nenue@36 35 <TexCoords top="0.47" left="0" bottom="0.9" right="1" />
Nenue@35 36 </Texture>
Nenue@35 37 </Layer>
Nenue@35 38 </Layers>
Nenue@35 39 </Button>
Nenue@35 40
Nenue@47 41 <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND">
Nenue@47 42 <Scripts>
Nenue@47 43 <OnClick>
Nenue@47 44 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0);
Nenue@47 45 </OnClick>
Nenue@47 46 </Scripts>
Nenue@47 47 </Button>
Nenue@35 48
Nenue@47 49 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" outline="NORMAL" virtual="true">
Nenue@47 50 <FontHeight>
Nenue@47 51 <AbsValue val="13" />
Nenue@47 52 </FontHeight>
Nenue@47 53 <Color r="1" g="1" b="1" a="1" />
Nenue@47 54 </Font>
Nenue@35 55
Nenue@35 56 <Frame name="DevianDDMenu" virtual="true" inherits="UIDropDownMenuTemplate" id="1">
Nenue@35 57 <Scripts>
Nenue@35 58 <OnLoad>
Nenue@36 59 </OnLoad>
Nenue@35 60 </Scripts>
Nenue@35 61 </Frame>
Nenue@35 62
Nenue@33 63 <ScrollingMessageFrame
Nenue@33 64 name="DevianBuffer"
Nenue@33 65 maxLines="500"
Nenue@33 66 fade="false"
Nenue@33 67 displayduration="2147483647"
Nenue@33 68 insertMode="BOTTOM"
Nenue@33 69 virtual="true">
Nenue@33 70 <Anchors>
Nenue@33 71 <Anchor point="TOPLEFT" y="-20" />
Nenue@33 72 <Anchor point="BOTTOMRIGHT" />
Nenue@33 73 </Anchors>
Nenue@47 74 <FontString inherits="DevianFont" wordwrap="true"
Nenue@33 75 justifyH="LEFT"
Nenue@33 76 indented="true"
Nenue@33 77 setAllPoints="true">
Nenue@33 78 <FontHeight>
Nenue@33 79 <AbsValue val="13"/>
Nenue@33 80 </FontHeight>
Nenue@33 81 </FontString>
Nenue@33 82
Nenue@33 83 <Layers>
Nenue@33 84 <Layer level="BACKGROUND">
Nenue@33 85 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND">
Nenue@33 86 <Color r="1" g="1" b="1" a="1"/>
Nenue@33 87 <Gradient orientation="VERTICAL">
Nenue@33 88 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@33 89 <MaxColor r="0" g="0" b="0" a="0.3"/>
Nenue@33 90 </Gradient>
Nenue@33 91 </Texture>
Nenue@33 92 </Layer>
Nenue@33 93 <Layer level="OVERLAY">
Nenue@33 94 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD">
Nenue@33 95 <Anchors>
Nenue@33 96 <Anchor point="BOTTOMRIGHT" x="-1" y="1" />
Nenue@33 97 </Anchors>
Nenue@33 98 <Size x="18" y="18" />
Nenue@33 99 <Color r="0.4" g="0.4" b="0.4" a="1"/>
Nenue@33 100 <Gradient orientation="VERTICAL">
Nenue@33 101 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/>
Nenue@33 102 <MinColor r="0.4" g="0.4" b="0.4" a="1"/>
Nenue@33 103 </Gradient>
Nenue@33 104 </Texture>
Nenue@33 105 </Layer>
Nenue@33 106 </Layers>
Nenue@33 107 </ScrollingMessageFrame>
Nenue@33 108
Nenue@13 109 <Frame
Nenue@13 110 name="DevianConsole"
Nenue@13 111 parent="UIParent"
Nenue@13 112 enableMouse="true"
Nenue@13 113 enableMouseWheel="true"
Nenue@13 114 clampedToScreen="true"
Nenue@13 115 movable="true"
Nenue@13 116 resizable="true"
Nenue@13 117 toplevel="true"
Nenue@13 118 hidden="true"
Nenue@13 119 virtual="true">
Nenue@5 120 <ResizeBounds>
Nenue@5 121 <minResize x="200" y="20" />
Nenue@5 122 <maxResize x="1920" y="1200" />
Nenue@5 123 </ResizeBounds>
Nenue@4 124 <Scripts>
Nenue@32 125 <OnShow>
Nenue@33 126 self.title:SetText(self.index..' '.. self.signature)
Nenue@32 127 </OnShow>
Nenue@4 128 <OnMouseWheel>
Nenue@4 129 local up = delta > 0
Nenue@4 130 if IsControlKeyDown() then
Nenue@13 131 if up then self.out:ScrollToTop()
Nenue@13 132 else self.out:ScrollToBottom() end
Nenue@4 133 elseif IsShiftKeyDown() then
Nenue@13 134 if up then self.out:PageUp()
Nenue@13 135 else self.out:PageDown() end
Nenue@4 136 else
Nenue@13 137 if up then self.out:ScrollUp()
Nenue@13 138 else self.out:ScrollDown() end
Nenue@4 139 end
Nenue@4 140 </OnMouseWheel>
Nenue@4 141 </Scripts>
Nenue@4 142 <Layers>
Nenue@36 143 <Layer level="OVERLAY">
Nenue@36 144 <Texture parentKey="header" inherits="DevianHeader">
Nenue@36 145 <Anchors>
Nenue@36 146 <Anchor point="TOPLEFT" />
Nenue@36 147 <Anchor point="TOPRIGHT" />
Nenue@36 148 <Size y="20" />
Nenue@36 149 </Anchors>
Nenue@36 150 </Texture>
Nenue@33 151 <FontString parentKey="title" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true"
Nenue@4 152 justifyH="LEFT"
Nenue@4 153 indented="true">
Nenue@4 154 <Anchors>
Nenue@36 155 <Anchor point="TOPLEFT" x="4" y="0" />
Nenue@4 156 </Anchors>
Nenue@4 157 <Size y="20" />
Nenue@4 158 <FontHeight>
Nenue@4 159 <AbsValue val="12"/>
Nenue@4 160 </FontHeight>
Nenue@4 161 </FontString>
Nenue@4 162 </Layer>
Nenue@14 163 <Layer level="BORDER">
Nenue@32 164 <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder">
Nenue@4 165 <Anchors>
Nenue@14 166 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" />
Nenue@4 167 </Anchors>
Nenue@14 168 </Texture>
Nenue@32 169 <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder">
Nenue@14 170 <Anchors>
Nenue@14 171 <Anchor point="TOPLEFT" y="2" />
Nenue@14 172 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
Nenue@14 173 </Anchors>
Nenue@14 174 </Texture>
Nenue@32 175 <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder">
Nenue@14 176 <Anchors>
Nenue@14 177 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" />
Nenue@14 178 </Anchors>
Nenue@14 179 </Texture>
Nenue@32 180 <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder">
Nenue@14 181 <Anchors>
Nenue@14 182 <Anchor point="TOPLEFT" x="-2" />
Nenue@14 183 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" />
Nenue@14 184 </Anchors>
Nenue@14 185 </Texture>
Nenue@14 186 <Texture name="DevBorderBL" parentArray="border" inherits="DevianBorder">
Nenue@14 187 <Anchors>
Nenue@14 188 <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" />
Nenue@14 189 </Anchors>
Nenue@14 190 </Texture>
Nenue@14 191 <Texture name="DevBorderB" parentArray="border" inherits="DevianBorder">
Nenue@14 192 <Anchors>
Nenue@14 193 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
Nenue@14 194 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" />
Nenue@14 195 </Anchors>
Nenue@14 196 </Texture>
Nenue@14 197 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder">
Nenue@14 198 <Anchors>
Nenue@14 199 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" />
Nenue@14 200 </Anchors>
Nenue@14 201 </Texture>
Nenue@32 202 <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder">
Nenue@14 203 <Anchors>
Nenue@14 204 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" />
Nenue@14 205 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" />
Nenue@14 206 </Anchors>
Nenue@4 207 </Texture>
Nenue@4 208 </Layer>
Nenue@4 209 </Layers>
Nenue@33 210 <Frames>
Nenue@36 211 <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true">
Nenue@35 212 <Anchors>
Nenue@35 213 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" />
Nenue@35 214 </Anchors>
Nenue@35 215 </Button>
Nenue@36 216 <Frame name="$parentDDMenu" parentKey="menuFrame" inherits="DevianDDMenu" />
Nenue@33 217 <ScrollingMessageFrame parentKey="out" inherits="DevianBuffer" />
Nenue@33 218 </Frames>
Nenue@33 219 </Frame>
Nenue@33 220
Nenue@33 221 <Frame
Nenue@46 222 name="DevianDock"
Nenue@47 223 parent="UIParent"
Nenue@47 224 enableMouse="true"
Nenue@47 225 alpha="0.1"
Nenue@47 226 hidden="true"
Nenue@47 227 frameStrata="LOW">
Nenue@47 228 <Scripts>
Nenue@47 229 <OnEnter>
Nenue@47 230 Devian.DockHighlight(self)
Nenue@47 231 </OnEnter>
Nenue@47 232 <OnLeave>
Nenue@47 233 Devian.DockHighlight(self)
Nenue@47 234 </OnLeave>
Nenue@47 235 </Scripts>
Nenue@46 236 <Anchors>
Nenue@47 237 <Anchor point="TOP" relativePoint="TOP" x="0" y="1" />
Nenue@46 238 </Anchors>
Nenue@47 239 <Size x="32" y="20" />
Nenue@33 240 <Layers>
Nenue@33 241 <Layer level="ARTWORK">
Nenue@47 242 <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="bar" alphaMode="BLEND">
Nenue@46 243 <Color r="1" g="1" b="1" a="1" />
Nenue@46 244 <Gradient orientation="VERTICAL">
Nenue@46 245 <MaxColor r="0" g="0" b="0" a="1" />
Nenue@47 246 <MinColor r="0" g="0" b="0" a="0" />
Nenue@46 247 </Gradient>
Nenue@33 248 </Texture>
Nenue@46 249
Nenue@46 250 </Layer>
Nenue@46 251 <Layer level="OVERLAY">
Nenue@46 252
Nenue@33 253 </Layer>
Nenue@33 254 </Layers>
Nenue@4 255 </Frame>
Nenue@47 256
Nenue@47 257 <Button name="DevianBeacon" hidden="true" inherits="DevianButton" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM">
Nenue@47 258 <Size x="64" y="32" />
Nenue@47 259 <TexCoords top="0" left="0" bottom="1" right="1" />
Nenue@47 260
Nenue@47 261 <Scripts>
Nenue@47 262 <OnShow>
Nenue@47 263 if self.console.index ~= DevianDB.current_channel then
Nenue@47 264 UIFrameFadeIn(self,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, DevianDB.dock_onshow_fade_to)
Nenue@47 265 UIFrameFadeIn(self.caption,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, 0)
Nenue@47 266 end
Nenue@47 267 </OnShow>
Nenue@47 268 <OnMouseDown>
Nenue@47 269 --print("click", self:GetName(), button, self.console.index)
Nenue@47 270 if button == "LeftButton" then
Nenue@47 271 if IsShiftKeyDown() then
Nenue@47 272 Devian:Console_Toggle(self.console.index, 0)
Nenue@47 273 else
Nenue@48 274 if self.console.index == DevianDB.current_channel or (not self.console.enabled) then
Nenue@48 275 Devian:Console_Toggle(self.console.index)
Nenue@48 276 if self.console.enabled then
Nenue@48 277 if self.console.minimized then
Nenue@48 278 self.console:MinMax()
Nenue@48 279 end
Nenue@48 280 self.console:ToFront()
Nenue@47 281 end
Nenue@48 282 else
Nenue@47 283 self.console:ToFront()
Nenue@47 284 end
Nenue@47 285 end
Nenue@47 286 elseif button == "RightButton" then
Nenue@47 287 self.console:MinMax()
Nenue@47 288 end
Nenue@47 289 self.console:Save()
Nenue@47 290 </OnMouseDown>
Nenue@47 291 <OnEnter>
Nenue@47 292 Devian.DockHighlight(self)
Nenue@47 293 </OnEnter>
Nenue@47 294 <OnLeave>
Nenue@47 295 Devian.DockHighlight(self)
Nenue@47 296 </OnLeave>
Nenue@47 297 </Scripts>
Nenue@47 298 <Layers>
Nenue@47 299 <Layer level="OVERLAY">
Nenue@47 300 </Layer>
Nenue@47 301 </Layers>
Nenue@47 302 <Frames>
Nenue@47 303 <Frame name="$parentText" parentKey="caption" alpha="0" blendMode="BLEND">
Nenue@47 304 <Size x="200" y="30" />
Nenue@47 305 <Anchors>
Nenue@47 306 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" />
Nenue@47 307 </Anchors>
Nenue@47 308 <Layers>
Nenue@47 309 <Layer level="OVERLAY">
Nenue@47 310 <FontString text="Test String" inherits="DevianText" parentKey="name" setAllPoints="true">
Nenue@47 311 <Color r="1" g="1" b="1" a="1" />
Nenue@47 312 <Shadow>
Nenue@47 313 <Color r="0" g="0" b="0" a="1" />
Nenue@47 314 <Offset x="0" y="-2" />
Nenue@47 315 </Shadow>
Nenue@47 316 <Animations>
Nenue@47 317 <AnimationGroup>
Nenue@47 318 <Scale scaleX="1.4" scaleY="1.4" looping="NONE">
Nenue@47 319 <Origin point="CENTER" x="0" y="0" />
Nenue@47 320
Nenue@47 321 </Scale>
Nenue@47 322 </AnimationGroup>
Nenue@47 323 </Animations>
Nenue@47 324 </FontString>
Nenue@47 325 </Layer>
Nenue@47 326 </Layers>
Nenue@47 327 </Frame>
Nenue@47 328 </Frames>
Nenue@47 329 </Button>
Nenue@47 330
Nenue@4 331 </Ui>