Mercurial > wow > devian
comparison Console.xml @ 98:33bc8baba858
start of a lot of v3 groundwork based on better knowledge of the addon interface:
- use of mixin as a lexical center for generated frames
- removal of unfinished segments
| author | Nenue |
|---|---|
| date | Wed, 26 Oct 2016 10:17:43 -0400 |
| parents | |
| children | 7d94df3804a7 |
comparison
equal
deleted
inserted
replaced
| 97:34131d11e61b | 98:33bc8baba858 |
|---|---|
| 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ | |
| 2 ..\FrameXML\UI.xsd"> | |
| 3 <Script file="Console.lua" /> | |
| 4 | |
| 5 | |
| 6 <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true"> | |
| 7 <Scripts> | |
| 8 <OnLoad method="OnLoad" /> | |
| 9 <OnShow method="OnShow" /> | |
| 10 <OnMouseWheel method="OnMouseWheel" /> | |
| 11 <OnDragStart method="OnDragStart" /> | |
| 12 <OnDragStop method="OnDragStop" /> | |
| 13 <OnMouseUp method="OnMouseUp" /> | |
| 14 <OnEnter method="OnEnter" /> | |
| 15 <OnLeave method="OnLeave" /> | |
| 16 </Scripts> | |
| 17 <Layers> | |
| 18 <Layer level="OVERLAY"> | |
| 19 <Texture parentKey="header" inherits="DevianHeader"> | |
| 20 <Anchors> | |
| 21 <Anchor point="TOPLEFT" /> | |
| 22 <Anchor point="TOPRIGHT" /> | |
| 23 <Size y="20" /> | |
| 24 </Anchors> | |
| 25 </Texture> | |
| 26 <FontString parentKey="title" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" | |
| 27 justifyH="LEFT" | |
| 28 indented="true"> | |
| 29 <Anchors> | |
| 30 <Anchor point="TOPLEFT" x="4" y="0" /> | |
| 31 </Anchors> | |
| 32 <Size y="20" /> | |
| 33 <FontHeight> | |
| 34 <AbsValue val="12"/> | |
| 35 </FontHeight> | |
| 36 </FontString> | |
| 37 </Layer> | |
| 38 <Layer level="BORDER"> | |
| 39 <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder"> | |
| 40 <Anchors> | |
| 41 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> | |
| 42 </Anchors> | |
| 43 </Texture> | |
| 44 <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder"> | |
| 45 <Anchors> | |
| 46 <Anchor point="TOPLEFT" y="2" /> | |
| 47 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> | |
| 48 </Anchors> | |
| 49 </Texture> | |
| 50 <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder"> | |
| 51 <Anchors> | |
| 52 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> | |
| 53 </Anchors> | |
| 54 </Texture> | |
| 55 <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder"> | |
| 56 <Anchors> | |
| 57 <Anchor point="TOPLEFT" x="-2" /> | |
| 58 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> | |
| 59 </Anchors> | |
| 60 </Texture> | |
| 61 <Texture name="DevBorderBL" parentArray="border" inherits="DevianBorder"> | |
| 62 <Anchors> | |
| 63 <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" /> | |
| 64 </Anchors> | |
| 65 </Texture> | |
| 66 <Texture name="DevBorderB" parentArray="border" inherits="DevianBorder"> | |
| 67 <Anchors> | |
| 68 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> | |
| 69 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" /> | |
| 70 </Anchors> | |
| 71 </Texture> | |
| 72 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder"> | |
| 73 <Anchors> | |
| 74 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> | |
| 75 </Anchors> | |
| 76 </Texture> | |
| 77 <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder"> | |
| 78 <Anchors> | |
| 79 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> | |
| 80 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> | |
| 81 </Anchors> | |
| 82 </Texture> | |
| 83 </Layer> | |
| 84 | |
| 85 <Layer level="ARTWORK"> | |
| 86 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> | |
| 87 <Color r="1" g="1" b="1" a="1"/> | |
| 88 </Texture> | |
| 89 </Layer> | |
| 90 </Layers> | |
| 91 <Frames> | |
| 92 <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> | |
| 93 <Anchors> | |
| 94 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> | |
| 95 </Anchors> | |
| 96 </Button> | |
| 97 | |
| 98 <Frame name="$parentDDMenu" parentKey="menuFrame" id="1"> | |
| 99 <Scripts> | |
| 100 <OnLoad> | |
| 101 </OnLoad> | |
| 102 </Scripts> | |
| 103 </Frame> | |
| 104 <ScrollingMessageFrame inherits="DevianBuffer" /> | |
| 105 | |
| 106 | |
| 107 <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" maxLines="500" fade="false" displayDuration="3600" fadeDuration="3600" insertMode="BOTTOM"> | |
| 108 <Anchors> | |
| 109 <Anchor point="TOPLEFT" x="3" y="-20" /> | |
| 110 <Anchor point="BOTTOMRIGHT" x="-3" y="0" /> | |
| 111 </Anchors> | |
| 112 <Layers> | |
| 113 <Layer level="OVERLAY"> | |
| 114 </Layer> | |
| 115 </Layers> | |
| 116 </ScrollingMessageFrame> | |
| 117 <Button name="$parentResizeButton" parentKey="ResizeButton"> | |
| 118 <Scripts> | |
| 119 <OnLoad> | |
| 120 self:RegisterForDrag('LeftButton') | |
| 121 </OnLoad> | |
| 122 <OnDragStart> | |
| 123 self:GetParent():StartSizing() | |
| 124 </OnDragStart> | |
| 125 <OnDragStop> | |
| 126 self:GetParent():StopMovingOrSizing() | |
| 127 </OnDragStop> | |
| 128 </Scripts> | |
| 129 <Anchors> | |
| 130 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> | |
| 131 </Anchors> | |
| 132 <Size x="18" y="18" /> | |
| 133 <Layers> | |
| 134 <Layer level="ARTWORK"> | |
| 135 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" alphaMode="ADD"> | |
| 136 <Color r="0.4" g="0.4" b="0.4" a="1"/> | |
| 137 <Gradient orientation="VERTICAL"> | |
| 138 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> | |
| 139 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> | |
| 140 </Gradient> | |
| 141 </Texture> | |
| 142 </Layer> | |
| 143 </Layers> | |
| 144 </Button> | |
| 145 | |
| 146 </Frames> | |
| 147 <Animations> | |
| 148 <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true"> | |
| 149 <Alpha parentKey="alphaOut" duration="0.5" order="1" /> | |
| 150 <Translation parentKey="translateOut" duration="0.5" order="1" /> | |
| 151 </AnimationGroup> | |
| 152 </Animations> | |
| 153 </Frame> | |
| 154 </Ui> |
