view 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
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">
  <!--@no-lib-strip@-->
  <!--@end-no-lib-strip@-->

  <Script file="Devian.lua" />

  <Frame name="Devian" mixin="DevianCore" parent="UIParent">
      <Scripts>
        <OnLoad method="OnLoad" />
        <OnEvent method="OnEvent" />
      </Scripts>
  </Frame>



  <Texture virtual="true" name="DevianHeader" alphaMode="BLEND">
    <Anchors>
      <Anchor point="TOPLEFT" />
      <Anchor point="TOPRIGHT" />
    </Anchors>
    <Size y="20" />
    <Color r="0.3" g="0.3" b="0.3" a="1" />
    <Gradient orientation="VERTICAL">
      <MinColor r="0" g="0" b="0" a="0.7"/>
      <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/>
    </Gradient>
  </Texture>


  <Button virtual="true" name="DevianButton" alphaMode="BLEND">
    <Size x="32" y="16" />
    <Layers>
      <Layer level="ARTWORK">
        <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD">
          <Color a="1" r="1" g="1" b="1" />
          <TexCoords top="0.47" left="0" bottom="0.9" right="1" />
        </Texture>

      </Layer>
    </Layers>
  </Button>

  <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND">
    <Scripts>
      <OnClick>
        ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0);
      </OnClick>
    </Scripts>
  </Button>


  <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" height="13" justifyH="LEFT" outline="NORMAL" virtual="true">
    <Color r="1" g="1" b="1" a="1" />
  </Font>


  <Button name="DevianExecButton" parent="UIParent" hidden="true">
    <Size x="32" y="32" />
    <Anchors>
      <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="DevianDock" x="-4"/>
    </Anchors>

    <NormalTexture file="Interface/Addons/Devian/arrow.blp" setAllPoints="true" alphaMode="ADD">
      <Color r="1" g="1" b="1" a="1" />
    </NormalTexture>
    <PushedTexture file="Interface/Addons/Devian/arrow.blp" setAllPoints="true" alphaMode="ADD">
      <Anchors>
        <Anchor point="TOPRIGHT" x="-1" y="-1" />
        <Anchor point="BOTTOMLEFT" x="1" y="1" />
      </Anchors>
      <Color r="1" g="0" b="0.5" a="1" />
    </PushedTexture>



    <Layers>
      <Layer level="ARTWORK">

      </Layer>
    </Layers>
  </Button>

  <Button name="DevianBeacon" hidden="true" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM" mixin="DevianDockButtonMixin">
    <Size x="64" y="24" />

    <Scripts>
      <OnShow method="OnShow" />
      <OnEnter method="OnEnter" />
      <OnMouseDown method="OnMouseDown" />
      <OnClick method="Select" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Background" setAllPoints="true">
          <Color a="0.5" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <Texture parentKey="Stripe">
          <Anchors>
            <Anchor point="TOPLEFT" />
            <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="-3" />
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <Frames>
      <Frame name="$parentText" parentKey="caption" alpha="1" blendMode="BLEND" enableMouse="false">
        <Size x="64" y="24" />
        <Anchors>
          <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" />
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <FontString text="Test String" inherits="DevianDockHeader" parentKey="name" wordwrap="false" setAllPoints="true">
              <Anchors>
                <Anchor point="BOTTOM" />
              </Anchors>
              <Color r="1" g="1" b="1" a="1" />
              <Shadow>
                <Color r="0" g="0" b="0" a="1" />
                <Offset x="0" y="-2" />
              </Shadow>
            </FontString>
          </Layer>
        </Layers>
        <Animations>
          <AnimationGroup parentKey="pulse" looping="BOUNCE" setToFinalAlpha="false">
            <Alpha fromAlpha=".5" toAlpha="1" duration="0.4" endDelay="0.6" order="1" childKey="name" />

          </AnimationGroup>
        </Animations>
      </Frame>
    </Frames>
  </Button>

</Ui>