annotate Devian.xml @ 12:0f91c3679c01

Added tag v1.2-r11 for changeset 65fcb81f4e0a
author Nenue
date Sat, 19 Dec 2015 03:14:25 -0500
parents 65fcb81f4e0a
children 080dfa4990fb
rev   line source
Nenue@4 1 <Ui>
Nenue@4 2 <Frame name="DevianConsole" parent="UIParent" enableMouse="true" enableMouseWheel="true" movable="true" resizable="true" toplevel="true" hidden="true" clampedToScreen="true">
Nenue@4 3 <KeyValues>
Nenue@4 4 <KeyValue key="format" value="Devian [%s]" />
Nenue@4 5 </KeyValues>
Nenue@5 6 <ResizeBounds>
Nenue@5 7 <minResize x="200" y="20" />
Nenue@5 8 <maxResize x="1920" y="1200" />
Nenue@5 9 </ResizeBounds>
Nenue@4 10 <Scripts>
Nenue@4 11 <OnMouseDown>
Nenue@4 12 if button == 'LeftButton' then
Nenue@4 13 if self.sizer:IsMouseOver() then
Nenue@4 14 return self:StartSizing()
Nenue@4 15 end
Nenue@4 16 return self:StartMoving()
Nenue@4 17 end
Nenue@4 18 </OnMouseDown>
Nenue@4 19 <OnMouseUp>
Nenue@4 20 if button == 'RightButton' then
Nenue@5 21 return Devian:ToggleMinMax()
Nenue@4 22 end
Nenue@4 23 self:StopMovingOrSizing()
Nenue@4 24 Devian:SavePos()
Nenue@4 25 </OnMouseUp>
Nenue@4 26 <OnMouseWheel>
Nenue@4 27 local up = delta > 0
Nenue@4 28 if IsControlKeyDown() then
Nenue@4 29 if up then self.console:ScrollToTop()
Nenue@4 30 else self.console:ScrollToBottom() end
Nenue@4 31 elseif IsShiftKeyDown() then
Nenue@4 32 if up then self.console:PageUp()
Nenue@4 33 else self.console:PageDown() end
Nenue@4 34 else
Nenue@4 35 if up then self.console:ScrollUp()
Nenue@4 36 else self.console:ScrollDown() end
Nenue@4 37 end
Nenue@4 38 </OnMouseWheel>
Nenue@4 39 <OnUpdate>
Nenue@4 40 if not self.throttle then
Nenue@4 41 self.throttle = GetTime()
Nenue@4 42 elseif (GetTime()-self.throttle &lt; 0.2) then
Nenue@4 43 return
Nenue@4 44 else
Nenue@4 45 self.throttle = GetTime()
Nenue@4 46 end
Nenue@4 47
Nenue@4 48 self.text:SetText(string.format(self.format, GetTime()))
Nenue@4 49 </OnUpdate>
Nenue@4 50 </Scripts>
Nenue@4 51
Nenue@4 52 <Frames>
Nenue@4 53 <ScrollingMessageFrame name="$parentBuffer" parentkey="console" maxLines="500" displayduration="2000000">
Nenue@4 54 <Anchors>
Nenue@4 55 <Anchor point="TOPLEFT" y="-20" />
Nenue@4 56 <Anchor point="BOTTOMRIGHT" />
Nenue@4 57 </Anchors>
Nenue@5 58 <FontString font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" wordwrap="true"
Nenue@4 59 justifyH="LEFT"
Nenue@4 60 indented="true"
Nenue@4 61 setAllPoints="true">
Nenue@4 62 <FontHeight>
Nenue@5 63 <AbsValue val="13"/>
Nenue@4 64 </FontHeight>
Nenue@4 65 </FontString>
Nenue@4 66
Nenue@4 67 <Layers>
Nenue@4 68 <Layer level="BACKGROUND">
Nenue@7 69 <Texture name="DevianConsoleBG" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND">
Nenue@4 70 <Color r="1" g="1" b="1" a="1"/>
Nenue@7 71 <Gradient orientation="VERTICAL">
Nenue@7 72 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@7 73 <MaxColor r="0" g="0" b="0" a="0.3"/>
Nenue@4 74 </Gradient>
Nenue@4 75 </Texture>
Nenue@4 76 </Layer>
Nenue@4 77 </Layers>
Nenue@4 78 </ScrollingMessageFrame>
Nenue@4 79 </Frames>
Nenue@4 80 <Layers>
Nenue@4 81 <Layer level="OVERLAY">
Nenue@4 82 <Texture parentKey="tbar" alphaMode="BLEND">
Nenue@4 83 <Anchors>
Nenue@4 84 <Anchor point="TOPLEFT" />
Nenue@4 85 <Anchor point="TOPRIGHT" />
Nenue@4 86 </Anchors>
Nenue@4 87 <Size y="20" />
Nenue@4 88 <Color r="0.3" g="0.3" b="0.3" a="1" />
Nenue@11 89 <Gradient orientation="VERTICAL">
Nenue@11 90 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@11 91 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/>
Nenue@11 92 </Gradient>
Nenue@4 93 </Texture>
Nenue@5 94 <FontString parentKey="text" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true"
Nenue@4 95 justifyH="LEFT"
Nenue@4 96 indented="true">
Nenue@4 97 <Anchors>
Nenue@4 98 <Anchor point="TOPLEFT" x="4" y="-2" />
Nenue@4 99 <Anchor point="TOPRIGHT" x="-4" />
Nenue@4 100 </Anchors>
Nenue@4 101 <Size y="20" />
Nenue@4 102 <FontHeight>
Nenue@4 103 <AbsValue val="12"/>
Nenue@4 104 </FontHeight>
Nenue@4 105 </FontString>
Nenue@4 106 </Layer>
Nenue@4 107 <Layer level="HIGHLIGHT">
Nenue@11 108 <Texture parentKey="sizer" strata="HIGH" alphaMode="ADD">
Nenue@4 109 <Anchors>
Nenue@4 110 <Anchor point="BOTTOMRIGHT" />
Nenue@4 111 </Anchors>
Nenue@4 112 <Size x="20" y="20" />
Nenue@4 113 <Color r="1" g="1" b="1" a="0.7"/>
Nenue@4 114 </Texture>
Nenue@4 115 </Layer>
Nenue@4 116 </Layers>
Nenue@4 117 </Frame>
Nenue@4 118 </Ui>