view Veneer.xml @ 95:43303398d1b9

- Pre-load veneer frames for buffs, set their triggers when the appropriate frames have spawned. - Add border frames into the PETBATTLES frame lock table so they are hidden properly. Normal triggers don't work here.
author Nenue
date Sun, 01 Jan 2017 19:56:35 -0500
parents 6e2cb847c3c6
children 3f4794dca91b
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="Veneer.lua" />
  <Include file="Templates.xml" />







  <Frame name="Veneer" inherits="VeneerMixinScripts" mixin="VeneerCore" hidden="true" enableMouse="true" movable="true" frameStrata="DIALOG">
    <Size x="400" y="400" />
    <Anchors>
      <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
    </Anchors>
    <Scripts>
      <OnDragStart method="OnDragStart" />
      <OnDragStop method="OnDragStop" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture setAllPoints="true">
          <Color r="0" g="0" b="0" a="0.7" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
          <Anchors>
            <Anchor point="TOPLEFT" x="3" y="-4" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="$parentCloseButton" parentKey="close" text="X">
        <ButtonText inherits="SystemFont_Small" />
        <Scripts>
          <OnClick>
            self:GetParent():Close()
          </OnClick>
        </Scripts>
        <Size x="24" y="24" />
        <Anchors>
          <Anchor point="TOPRIGHT" x="-5" y="-5" />
        </Anchors>
        <NormalTexture parentKey="normal" setAllPoints="true">
          <Color a="1" r="0" g="0" b="0" />
        </NormalTexture>
        <PushedTexture setAllPoints="true">
          <Color a="1" r="1" g="0" b="0" />
        </PushedTexture>
        <HighlightTexture setAllPoints="true" alphaMode="ADD">
          <Color a=".5" r="1" g=".7" b="0.5" />
        </HighlightTexture>
      </Button>
      <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
        <ButtonText inherits="SystemFont_Small" />
        <Scripts>
          <OnClick>
            self:GetParent():ToggleGuides(self)
          </OnClick>
        </Scripts>
        <Size x="36" y="24" />
        <Anchors>
          <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
        </Anchors>
        <NormalTexture parentKey="normal" setAllPoints="true">
          <Color a="1" r="0" g="0" b="0" />
        </NormalTexture>
        <PushedTexture setAllPoints="true">
          <Color a="1" r="1" g="0" b="0" />
        </PushedTexture>
        <HighlightTexture setAllPoints="true" alphaMode="ADD">
          <Color a=".5" r="1" g=".7" b="0.5" />
        </HighlightTexture>
      </Button>
    </Frames>
  </Frame>


</Ui>