Mercurial > wow > devian
view 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 |
line wrap: on
line source
<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/ ..\FrameXML\UI.xsd"> <Script file="Console.lua" /> <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true"> <Scripts> <OnLoad method="OnLoad" /> <OnShow method="OnShow" /> <OnMouseWheel method="OnMouseWheel" /> <OnDragStart method="OnDragStart" /> <OnDragStop method="OnDragStop" /> <OnMouseUp method="OnMouseUp" /> <OnEnter method="OnEnter" /> <OnLeave method="OnLeave" /> </Scripts> <Layers> <Layer level="OVERLAY"> <Texture parentKey="header" inherits="DevianHeader"> <Anchors> <Anchor point="TOPLEFT" /> <Anchor point="TOPRIGHT" /> <Size y="20" /> </Anchors> </Texture> <FontString parentKey="title" font="Interface\Addons\Devian\font\SourceCodePro-Bold.ttf" wordwrap="true" justifyH="LEFT" indented="true"> <Anchors> <Anchor point="TOPLEFT" x="4" y="0" /> </Anchors> <Size y="20" /> <FontHeight> <AbsValue val="12"/> </FontHeight> </FontString> </Layer> <Layer level="BORDER"> <Texture name="DevBorderUR" parentArray="border" parentkey="topright" inherits="DevianBorder"> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" /> </Anchors> </Texture> <Texture name="DevBorderU" parentArray="border" parentKey="top" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" y="2" /> <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" /> </Anchors> </Texture> <Texture name="DevBorderUL" parentArray="border" parentKey="topleft" inherits="DevianBorder"> <Anchors> <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" /> </Anchors> </Texture> <Texture name="DevBorderL" parentArray="border" parentKey="left" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" x="-2" /> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" /> </Anchors> </Texture> <Texture name="DevBorderBL" parentArray="border" inherits="DevianBorder"> <Anchors> <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" /> </Anchors> </Texture> <Texture name="DevBorderB" parentArray="border" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" /> </Anchors> </Texture> <Texture name="DevBorderBR" parentArray="border" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" /> </Anchors> </Texture> <Texture name="DevBorderR" parentArray="border" parentKey="right" inherits="DevianBorder"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" /> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" /> </Anchors> </Texture> </Layer> <Layer level="ARTWORK"> <Texture name="$parentBackdrop" parentKey="backdrop" setAllPoints="true" alphaMode="BLEND"> <Color r="1" g="1" b="1" a="1"/> </Texture> </Layer> </Layers> <Frames> <Button name="$parentMenuButton" parentKey="dropmenu" inherits="DevianDDButton" enableMouse="true"> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-4" y="0" /> </Anchors> </Button> <Frame name="$parentDDMenu" parentKey="menuFrame" id="1"> <Scripts> <OnLoad> </OnLoad> </Scripts> </Frame> <ScrollingMessageFrame inherits="DevianBuffer" /> <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" maxLines="500" fade="false" displayDuration="3600" fadeDuration="3600" insertMode="BOTTOM"> <Anchors> <Anchor point="TOPLEFT" x="3" y="-20" /> <Anchor point="BOTTOMRIGHT" x="-3" y="0" /> </Anchors> <Layers> <Layer level="OVERLAY"> </Layer> </Layers> </ScrollingMessageFrame> <Button name="$parentResizeButton" parentKey="ResizeButton"> <Scripts> <OnLoad> self:RegisterForDrag('LeftButton') </OnLoad> <OnDragStart> self:GetParent():StartSizing() </OnDragStart> <OnDragStop> self:GetParent():StopMovingOrSizing() </OnDragStop> </Scripts> <Anchors> <Anchor point="BOTTOMRIGHT" x="-1" y="1" /> </Anchors> <Size x="18" y="18" /> <Layers> <Layer level="ARTWORK"> <Texture name="DevianGripperRight" file="Interface\Addons\Devian\corner.blp" parentKey="grip" alphaMode="ADD"> <Color r="0.4" g="0.4" b="0.4" a="1"/> <Gradient orientation="VERTICAL"> <MaxColor r="0.9" g="0.9" b="0.9" a="1"/> <MinColor r="0.4" g="0.4" b="0.4" a="1"/> </Gradient> </Texture> </Layer> </Layers> </Button> </Frames> <Animations> <AnimationGroup name="moveFade" parentKey="moveFade" setToFinalAlpha="true"> <Alpha parentKey="alphaOut" duration="0.5" order="1" /> <Translation parentKey="translateOut" duration="0.5" order="1" /> </AnimationGroup> </Animations> </Frame> </Ui>