Mercurial > wow > devian
comparison Devian.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 | f6fae1a4c66c |
| 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/ | 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"> | 2 ..\FrameXML\UI.xsd"> |
| 3 <!--@no-lib-strip@--> | 3 <!--@no-lib-strip@--> |
| 4 <Script file="Libs\LibStub\LibStub.lua" /> | |
| 5 <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml" /> | |
| 6 <Include file="Libs\AceConsole-3.0\Console-3.0.xml" /> | |
| 7 <!--@end-no-lib-strip@--> | 4 <!--@end-no-lib-strip@--> |
| 8 | 5 |
| 6 <Script file="Devian.lua" /> | |
| 9 | 7 |
| 10 <Texture virtual="true" name="DevianBorder" setAllPoints="false"> | 8 <Frame name="Devian" mixin="DevianCore" parent="UIParent"> |
| 11 <Color r="1" g="0" b="0" a="1" /> | 9 <Scripts> |
| 12 <Size x="2" y="2" /> | 10 <OnLoad method="OnLoad" /> |
| 13 </Texture> | 11 <OnEvent method="OnEvent" /> |
| 12 </Scripts> | |
| 13 </Frame> | |
| 14 | |
| 14 | 15 |
| 15 | 16 |
| 16 <Texture virtual="true" name="DevianHeader" alphaMode="BLEND"> | 17 <Texture virtual="true" name="DevianHeader" alphaMode="BLEND"> |
| 17 <Anchors> | 18 <Anchors> |
| 18 <Anchor point="TOPLEFT" /> | 19 <Anchor point="TOPLEFT" /> |
| 46 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); | 47 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0); |
| 47 </OnClick> | 48 </OnClick> |
| 48 </Scripts> | 49 </Scripts> |
| 49 </Button> | 50 </Button> |
| 50 | 51 |
| 51 <Font name="DevianDockHeader" font="Fonts\ARIALN.TTF" outline="NORMAL" virtual="true" height="14" /> | |
| 52 | 52 |
| 53 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" outline="NORMAL" virtual="true"> | 53 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" height="13" justifyH="LEFT" outline="NORMAL" virtual="true"> |
| 54 <FontHeight> | |
| 55 <AbsValue val="13" /> | |
| 56 </FontHeight> | |
| 57 <Color r="1" g="1" b="1" a="1" /> | 54 <Color r="1" g="1" b="1" a="1" /> |
| 58 </Font> | 55 </Font> |
| 59 | 56 |
| 60 <Frame name="DevianDDMenu" virtual="true" inherits="UIDropDownMenuTemplate" id="1"> | |
| 61 <Scripts> | |
| 62 <OnLoad> | |
| 63 </OnLoad> | |
| 64 </Scripts> | |
| 65 </Frame> | |
| 66 | 57 |
| 67 <ScrollingMessageFrame | |
| 68 name="DevianBuffer" | |
| 69 maxLines="500" | |
| 70 fade="false" | |
| 71 displayduration="2147483647" | |
| 72 insertMode="BOTTOM" | |
| 73 virtual="true"> | |
| 74 <Anchors> | |
| 75 <Anchor point="TOPLEFT" y="-20" /> | |
| 76 <Anchor point="BOTTOMRIGHT" /> | |
| 77 </Anchors> | |
| 78 <FontString inherits="DevianFont" wordwrap="true" | |
| 79 justifyH="LEFT" | |
| 80 indented="true" | |
| 81 setAllPoints="true" | |
| 82 parentArray="_msg"> | |
| 83 <FontHeight> | |
| 84 <AbsValue val="13"/> | |
| 85 </FontHeight> | |
| 86 </FontString> | |
| 87 | |
| 88 <Layers> | |
| 89 <Layer level="ARTWORK"> | |
| 90 <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> | |
| 91 <Color r="1" g="1" b="1" a="1"/> | |
| 92 <Gradient orientation="VERTICAL"> | |
| 93 <MinColor r="0" g="0" b="0" a="0.7"/> | |
| 94 <MaxColor r="0" g="0" b="0" a="0.3"/> | |
| 95 </Gradient> | |
| 96 </Texture> | |
| 97 </Layer> | |
| 98 <Layer level="OVERLAY"> | |
| 99 <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" strata="HIGH" alphaMode="ADD"> | |
| 100 <Anchors> | |
| 101 <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> | |
| 102 </Anchors> | |
| 103 <Size x="18" y="18" /> | |
| 104 <Color r="0.4" g="0.4" b="0.4" a="1"/> | |
| 105 <Gradient orientation="VERTICAL"> | |
| 106 <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> | |
| 107 <MinColor r="0.4" g="0.4" b="0.4" a="1"/> | |
| 108 </Gradient> | |
| 109 </Texture> | |
| 110 </Layer> | |
| 111 </Layers> | |
| 112 </ScrollingMessageFrame> | |
| 113 | |
| 114 <Frame | |
| 115 name="DevianConsole" | |
| 116 parent="UIParent" | |
| 117 enableMouse="true" | |
| 118 enableMouseWheel="true" | |
| 119 clampedToScreen="true" | |
| 120 movable="true" | |
| 121 resizable="true" | |
| 122 toplevel="true" | |
| 123 hidden="true" | |
| 124 virtual="true"> | |
| 125 <ResizeBounds> | |
| 126 <minResize x="200" y="20" /> | |
| 127 <maxResize x="1920" y="1200" /> | |
| 128 </ResizeBounds> | |
| 129 <Scripts> | |
| 130 <OnShow> | |
| 131 self.title:SetText(self.index..' '.. self.signature) | |
| 132 </OnShow> | |
| 133 <OnMouseWheel> | |
| 134 local up = delta > 0 | |
| 135 if IsControlKeyDown() then | |
| 136 if up then self.out:ScrollToTop() | |
| 137 else self.out:ScrollToBottom() end | |
| 138 elseif IsShiftKeyDown() then | |
| 139 if up then self.out:PageUp() | |
| 140 else self.out:PageDown() end | |
| 141 else | |
| 142 if up then self.out:ScrollUp() | |
| 143 else self.out:ScrollDown() end | |
| 144 end | |
| 145 </OnMouseWheel> | |
| 146 </Scripts> | |
| 147 <Layers> | |
| 148 <Layer level="OVERLAY"> | |
| 149 <Texture parentKey="header" inherits="DevianHeader"> | |
| 150 <Anchors> | |
| 151 <Anchor point="TOPLEFT" /> | |
| 152 <Anchor point="TOPRIGHT" /> | |
| 153 <Size y="20" /> | |
| 154 </Anchors> | |
| 155 </Texture> | |
| 156 <FontString parentKey="title" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" | |
| 157 justifyH="LEFT" | |
| 158 indented="true"> | |
| 159 <Anchors> | |
| 160 <Anchor point="TOPLEFT" x="4" y="0" /> | |
| 161 </Anchors> | |
| 162 <Size y="20" /> | |
| 163 <FontHeight> | |
| 164 <AbsValue val="12"/> | |
| 165 </FontHeight> | |
| 166 </FontString> | |
| 167 </Layer> | |
| 168 <Layer level="BORDER"> | |
| 169 <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder"> | |
| 170 <Anchors> | |
| 171 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> | |
| 172 </Anchors> | |
| 173 </Texture> | |
| 174 <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder"> | |
| 175 <Anchors> | |
| 176 <Anchor point="TOPLEFT" y="2" /> | |
| 177 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> | |
| 178 </Anchors> | |
| 179 </Texture> | |
| 180 <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder"> | |
| 181 <Anchors> | |
| 182 <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> | |
| 183 </Anchors> | |
| 184 </Texture> | |
| 185 <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder"> | |
| 186 <Anchors> | |
| 187 <Anchor point="TOPLEFT" x="-2" /> | |
| 188 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> | |
| 189 </Anchors> | |
| 190 </Texture> | |
| 191 <Texture name="DevBorderBL" parentArray="border" inherits="DevianBorder"> | |
| 192 <Anchors> | |
| 193 <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" /> | |
| 194 </Anchors> | |
| 195 </Texture> | |
| 196 <Texture name="DevBorderB" parentArray="border" inherits="DevianBorder"> | |
| 197 <Anchors> | |
| 198 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> | |
| 199 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" /> | |
| 200 </Anchors> | |
| 201 </Texture> | |
| 202 <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder"> | |
| 203 <Anchors> | |
| 204 <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> | |
| 205 </Anchors> | |
| 206 </Texture> | |
| 207 <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder"> | |
| 208 <Anchors> | |
| 209 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> | |
| 210 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> | |
| 211 </Anchors> | |
| 212 </Texture> | |
| 213 </Layer> | |
| 214 </Layers> | |
| 215 <Frames> | |
| 216 <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> | |
| 217 <Anchors> | |
| 218 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> | |
| 219 </Anchors> | |
| 220 </Button> | |
| 221 <Frame name="$parentDDMenu" parentKey="menuFrame" inherits="DevianDDMenu" /> | |
| 222 <ScrollingMessageFrame parentKey="out" inherits="DevianBuffer" /> | |
| 223 </Frames> | |
| 224 <Animations> | |
| 225 <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true" ignoreFramerateThrottle="true"> | |
| 226 <Alpha parentKey="alphaOut" duration="0.5" order="1" /> | |
| 227 <Translation parentKey="translateOut" duration="0.5" order="1" /> | |
| 228 </AnimationGroup> | |
| 229 </Animations> | |
| 230 </Frame> | |
| 231 | |
| 232 <Frame | |
| 233 name="DevianDock" | |
| 234 parent="UIParent" | |
| 235 enableMouse="true" | |
| 236 alpha="0.1" | |
| 237 hidden="true" | |
| 238 frameStrata="LOW"> | |
| 239 <Scripts> | |
| 240 <OnMouseWheel> | |
| 241 Devian.Dock_OnMouseWheel(self, delta) | |
| 242 </OnMouseWheel> | |
| 243 </Scripts> | |
| 244 <Size x="32" y="20" /> | |
| 245 <Layers> | |
| 246 <Layer level="ARTWORK"> | |
| 247 <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="caption" alphaMode="BLEND"> | |
| 248 <Color r="1" g="1" b="1" a="1" /> | |
| 249 <Gradient orientation="VERTICAL"> | |
| 250 <MaxColor r="0.15" g=".15" b="0.15" a="0.4" /> | |
| 251 <MinColor r="0" g="0" b="0" a="0" /> | |
| 252 </Gradient> | |
| 253 </Texture> | |
| 254 | |
| 255 </Layer> | |
| 256 <Layer level="OVERLAY"> | |
| 257 | |
| 258 </Layer> | |
| 259 </Layers> | |
| 260 </Frame> | |
| 261 <Button name="DevianExecButton" parent="UIParent" hidden="true"> | 58 <Button name="DevianExecButton" parent="UIParent" hidden="true"> |
| 262 <Size x="32" y="32" /> | 59 <Size x="32" y="32" /> |
| 263 <Anchors> | 60 <Anchors> |
| 264 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="DevianDock" x="-4"/> | 61 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="DevianDock" x="-4"/> |
| 265 </Anchors> | 62 </Anchors> |
