view Console.xml @ 111:5c591d9b4029 tip

Added tag v8.0.1-20181807-1 for changeset 930922e1ec5b
author Nenue
date Wed, 18 Jul 2018 15:02:50 -0400
parents 930922e1ec5b
children
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" />

  <Button name="DevianSizeButtonTemplate" virtual="true" mixin="DevianConsoleSizeButtonMixin">
    <PushedTexture setAllPoints="true">
      <Color r="1" g="1" b="1" a="0.5" />
    </PushedTexture>
    <HighlightTexture setAllPoints="true">
      <Color r="1" g="0.5" b="0" a="0.2" />
    </HighlightTexture>
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnDragStart method="OnDragStart" />
      <OnDragStop method="OnDragStop" />
    </Scripts>
  </Button>

  <Frame name="DevianConsoleTemplate" toplevel="true" parent="UIParent" mixin="DevianConsoleMixin" virtual="true" hidden="true">
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnShow method="OnShow" />
      <OnHide method="OnHide" />
      <OnEvent method="OnEvent" />
      <OnMouseWheel method="OnMouseWheel" />
      <OnDragStart method="OnDragStart" />
      <OnDragStop method="OnDragStop" />
      <OnMouseDown method="OnMouseDown" />
      <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">
          <Anchors>
            <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderU" parentArray="border" parentKey="top">
          <Anchors>
            <Anchor point="TOPLEFT"  y="2" />
            <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderUL" parentArray="border" parentKey="topleft">
          <Anchors>
            <Anchor point="BOTTOMRIGHT" parentArray="border" relativePoint="TOPLEFT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderL" parentArray="border" parentKey="left">
          <Anchors>
            <Anchor point="TOPLEFT"  x="-2" />
            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderBL" parentArray="border">
          <Anchors>
            <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderB" parentArray="border">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" y="-2" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderBR" parentArray="border">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT" />
          </Anchors>
        </Texture>
        <Texture name="DevBorderR" parentArray="border" parentKey="right">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" />
            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="2" />
          </Anchors>
        </Texture>
      </Layer>

      <Layer level="BACKGROUND">
        <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="DropdownButton" enableMouse="true">
        <Size x="18" y="16" />
        <Anchors>
          <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-1" y="-1" />
        </Anchors>
        <Layers>
          <Layer level="BACKGROUND">
            <Texture setAllPoints="true" parentKey="Background" >
              <Color a="1" r="1" g="1" b="1" />
              <Gradient orientation="VERTICAL">
                <MaxColor a="1" r=".25" g=".35" b=".65" />
                <MinColor a="1" r=".05" g=".05" b=".05" />
              </Gradient>
            </Texture>
          </Layer>
        </Layers>
      </Button>

      <Frame name="$parentDDMenu" parentKey="DropdownFrame" inherits="UIDropDownMenuTemplate" id="1" />


      <ScrollingMessageFrame parentKey="out" name="$parentScrollFrame" frameLevel="12">
        <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" frameLevel="23">
        <Scripts>
          <OnLoad>
            self:RegisterForDrag('LeftButton')
          </OnLoad>
          <OnDragStart>
            self:GetParent():StartSizing()
          </OnDragStart>
          <OnDragStop>
            self:GetParent():OnDragStop()
          </OnDragStop>
          <OnEnter>
            self.Icon:SetVertexColor(1,1,1,1)
          </OnEnter>
          <OnLeave>
            self.Icon:SetVertexColor(0.4,0.4,0.4,1)
          </OnLeave>
        </Scripts>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" x="-1" y="1" />
        </Anchors>
        <Size x="24" y="24" />
        <Layers>
          <Layer level="BACKGROUND">
            <Texture setAllPoints="true" parentKey="Background" />
          </Layer>
          <Layer level="ARTWORK">

            <Texture file="Interface\Addons\Devian\corner.blp" parentKey="Icon" alphaMode="ADD">
              <Size x="24" y="24" />
              <Color r="0.4" g="0.4" b="0.4" a="1"/>
              <Anchors>
                <Anchor point="BOTTOMRIGHT" />
              </Anchors>
            </Texture>
          </Layer>
        </Layers>
      </Button>


      <Button name="$parentHorizontalSizer" parentKey="GripSide" inherits="DevianSizeButtonTemplate" frameLevel="25">
        <Size x="8" />
        <Anchors>
          <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.DropdownButton" />
          <Anchor point="BOTTOM" y="24" />
        </Anchors>
      </Button>

      <Button name="$parentVerticalSizer" parentKey="GripBottom" inherits="DevianSizeButtonTemplate" frameLevel="24">
        <Size y="8" />
        <Anchors>
          <Anchor point="BOTTOMLEFT" />
          <Anchor point="RIGHT" x="-24" />
        </Anchors>
      </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>