view SkeletonKey.xml @ 93:f9df7cd7bfd6 tip

revert pet spell subText collation remove an empty script handler
author Nenue
date Tue, 04 Sep 2018 23:00:21 -0400
parents 5005aecc2dc8
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="SkeletonKey.lua" />
  <Script file="ActionTemplates.lua" />
  <Script file="BindingsFrame.lua" />
  <Script file="Events.lua" />
  <Script file="KeyButton.lua" />
  <Script file="HotKey.lua" />

  <Font name="SkeletonKeyHeaderFont" height="18" font="Fonts\skurri.ttf" outline="NORMAL" justifyH="LEFT" justifyV="TOP" virtual="true" />
  <Font name="SkeletonKeyButtonFont" justifyH="LEFT" virtual="true"  inherits="NumberFontNormal"  />
  <Font name="SkeletonKeyMacroFont" height="12" font="Fonts\ARIALN.TTF" justifyH="LEFT" virtual="true" >
    <Color a="1" r="1" g="1" b="1" />
  </Font>

  <Font name="SkeletonKeyStatusFont" height="12" font="Fonts\ARIALN.TTF" justifyH="LEFT" virtual="true" />

  <Frame name="SkeletonKey" parent="UIParent" hidden="true" clampedToScreen="true" movable="true" enableMouse="true" toplevel="true" mixin="SkeletonKeyMixin">
    <Anchors>
      <Anchor point="TOP" y="-25" x="0" />
    </Anchors>
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnEvent method="OnEvent" />
      <OnShow method="OnShow" />
      <!--<OnUpdate method="OnUpdate" />-->
      <OnKeyDown method="OnKeyDown" />
      <OnKeyUp method="OnKeyUp" />
      <!--<OnMouseDown method="OnMouseDown" />
      <OnMouseUp method="OnMouseUp" />-->
      <OnMouseWheel method="OnMouseWheel" />
      <OnDragStart method="OnDragStart" />
      <OnDragStop method="OnDragStop" />
    </Scripts>
    <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
      <EdgeSize val="16" />
      <TileSize val="16" />
      <BorderColor a="1" r="1" g="1" b="1" />
      <BackgroundInsets top="4" left="4" bottom="4" right="4" />
      <Color r="0" g="0" b="0" a="1" />
    </Backdrop>
    <Size x="600" y="200" />
    <Layers>
      <Layer level="BACKGROUND">

        <Texture parentKey="info">
          <Anchors>
            <Anchor point="TOPLEFT" />
            <Anchor point="RIGHT" />
          </Anchors>
          <Size y="42" />
        </Texture>

        <Texture parentKey="headerbg" alphaMode="MOD">
          <Size y="32" />
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-2" />
            <Anchor point="RIGHT" x="-2" />
          </Anchors>
          <Color a="1" r="1" g="1" b="1" />
          <Gradient orientation="VERTICAL">
            <MinColor r="0" g="0" b="0"/>
            <MaxColor r="1" g="1" b="1"/>
          </Gradient>
        </Texture>



        <Texture parentKey="profilebg">
          <Size  y="102" />
          <Anchors>
            <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.headerbg" />
            <Anchor point="LEFT" x="2" y="0" />
            <Anchor point="RIGHT" x="-2" y="0" />
          </Anchors>
          <Color a="1" r="0" g="0" b="0" />
        </Texture>

        <Texture parentKey="bg">
          <Size y="4" />
          <Anchors>
            <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.profilebg" />
            <Anchor point="LEFT" x="4" y="0" />
          </Anchors>
          <Color a="1" r="0" g="0" b="0" />
        </Texture>

        <Texture parentKey="footer">
          <Size y="52" />
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="0" />
            <Anchor point="RIGHT" x="-2" />
          </Anchors>
          <Color a="1" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">

        <FontString inherits="SkeletonKeyHeaderFont" text="Bindings" parentKey="header">
          <Anchors>
            <Anchor point="TOPLEFT" />
          </Anchors>
        </FontString>

        <FontString parentKey="profiletext" inherits="SkeletonKeyHeaderFont" justifyH="LEFT" text="Foobar">
          <Anchors>
            <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.header" x="8" y="5" />
          </Anchors>
          <Color a="1" r="1" g="0.7" b="0" />
        </FontString>

        <FontString parentKey="statustext" inherits="SkeletonKeyStatusFont" justifyH="LEFT" justifyV="TOP">
          <Anchors>
            <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="12" y="7" />
          </Anchors>
        </FontString>


        <FontString parentKey="bindingstext" inherits="NumberFont_Outline_Large" justifyH="RIGHT" justifyV="TOP">
          <Anchors>
            <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeKey="$parent.bg" x="-12" y="7" />
          </Anchors>
          <Color a="1" r="0" g="1" b="0" />
        </FontString>

      </Layer>
    </Layers>
    <Frames>


      <Button parentKey="macroButton" name="$parentMacro" inherits="SecureActionButtonTemplate">
        <Attributes>
          <Attribute name="*type*" value="macro" />
        </Attributes>
      </Button>
      <Button parentKey="actionButton" name="$parentKey" inherits="SecureActionButtonTemplate" />

      <Frame name="$parentHotKeyText" mixin="SkeletonHotKeyMixin" parentArray="Plugins">
        <Scripts>
          <OnLoad method="OnLoad" />
          <OnEvent method="OnEvent" />
        </Scripts>
      </Frame>
<!--
      <Frame name="KeyBinderTutorial" parent="KeyBinder">

        <Size x="20" y="20" />
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.footer" x="2" y="-2" />
          <Anchor point="TOPRIGHT" relativeKey="$parent.footer" x="-2" y="-2" />
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <Texture name="$parentMouseLeftClick" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
              <Size x="15" y="20"/>
              <Anchors>
                <Anchor point="TOPLEFT" />
              </Anchors>
              <TexCoords left="0.0019531" right="0.1484375" top="0.4257813" bottom="0.6210938"/>
            </Texture>
            <FontString inherits="SkeletonKeyButtonFont" text="to change a key binding.">
              <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentMouseLeftClick" x="2" y="0" />
              </Anchors>
            </FontString>

            <Texture name="$parentMouseRightClick" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
              <Size x="15" y="20"/>
              <Anchors>
                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentMouseLeftClick" x="0" y="-2" />
              </Anchors>
              <TexCoords left="0.0019531" right="0.1484375" top="0.6269531" bottom="0.8222656"/>
            </Texture>
            <FontString inherits="SkeletonKeyButtonFont" text="to remove actions from profile.">
              <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentMouseRightClick" x="2" y="0" />
              </Anchors>
            </FontString>

          </Layer>
        </Layers>
      </Frame>-->

      <Button inherits="UIPanelCloseButton" parentKey="CloseButton">
        <Anchors>
          <Anchor point="TOPRIGHT" />
        </Anchors>
      </Button>


      <CheckButton name="KeyBinderStickyMode" inherits="UICheckButtonTemplate">
        <Size  y="32" x="32" />
        <Layers>
          <Layer level="OVERLAY">
            <FontString parentKey="header" inherits="SkeletonKeyButtonFont" text="Sticky Mode:" />
          </Layer>
        </Layers>
      </CheckButton>

      <CheckButton name="KeyBinderHoverInput" inherits="UICheckButtonTemplate">
        <Size  y="32" x="32" />
        <Anchors>
          <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="-4" y="0" relativeTo="KeyBinderStickyMode" />
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <FontString parentKey="header" inherits="SkeletonKeyButtonFont" text="Bind" />
            <FontString inherits="SkeletonKeyHeaderFont" text="Settings">
              <Anchors>
                <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="32" />
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </CheckButton>

      <CheckButton name="KeyBinderProtectBindings" inherits="UICheckButtonTemplate">
        <Size  y="32" x="32" />
        <Anchors>
          <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="-4" y="0" relativeTo="KeyBinderHoverInput" />
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <FontString parentKey="header" inherits="SkeletonKeyButtonFont" text="Safe" />
          </Layer>
        </Layers>
      </CheckButton>
    </Frames>
  </Frame>


  <CheckButton name="KeyButton" virtual="true" mixin="SkeletonKeyButtonMixin">
    <Size x="32" y="32" />
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnClick method="OnClick" />
      <OnDragStart method="OnDragStart" />
      <OnReceiveDrag method="OnReceiveDrag" />

      <OnEnter method="OnEnter" />
      <OnLeave method="OnLeave" />
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="border" setAllPoints="true">
          <Color a="1" r=".25" g=".25" b=".25" />
        </Texture>
      </Layer>
      <Layer level="BORDER">

        <Texture parentKey="bg">
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-2" />
            <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
          </Anchors>
          <Color a="0.5" r="0" g="0" b="0" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture setAllPoints="true" parentKey="icon">
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-2" />
            <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
          </Anchors>

          <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />

        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString inherits="NumberFontNormal" parentKey="header" wordwrap="false" justifyH="LEFT">

          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="-2" />
            <Anchor point="RIGHT" x="128" y="0" />
          </Anchors>
        </FontString>
        <FontString inherits="NumberFontNormal" parentKey="bind">
          <Anchors>
            <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
          </Anchors>
        </FontString>
        <FontString inherits="SkeletonKeyMacroFont" parentKey="macro">
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-2" />
            <Anchor point="RIGHT" x="-2" y="0" />
          </Anchors>
        </FontString>
        <FontString inherits="NumberFontNormal" parentKey="details" justifyH="LEFT">
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="-2" relativeKey="$parent.header" />
            <Anchor point="RIGHT" x="128" y="0" />
          </Anchors>
        </FontString>

        <Texture parentKey="ignoreTexture" file="Interface\PaperDollInfoFrame\UI-GearManager-LeaveItem-Transparent" hidden="true">
          <Size x="24" y="24" />
          <Anchors>
            <Anchor point="TOPLEFT" x="2" y="-2" />
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <HighlightTexture alphaMode="ADD">
      <Anchors>
        <Anchor point="TOPLEFT" x="2" y="-2" />
        <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
      </Anchors>
      <Color a="1" r="0.15" g="0.15" b="0.15" />
    </HighlightTexture>
    <Frames>
      <Frame parentKey="alert" hidden="true">
        <Size x="18" y="18" />
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bind" x="-2" />
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <Texture file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew" setAllPoints="true" />
          </Layer>
        </Layers>
      </Frame>
    </Frames>
  </CheckButton>

  <Frame parent="SkeletonKey" name="$parentActionList" mixin="SkeletonKeyActionListMixin" parentArray="Panels">
    <Scripts>
      <OnLoad method="OnLoad" />
      <OnShow method="OnShow" />
      <!--<OnEvent method="OnEvent" />-->
    </Scripts>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="bg" />
      </Layer>
      <Layer level="BORDER">


        <Texture parentKey="profileStripe">
          <Size y="4" />
          <Anchors>

            <Anchor point="TOP" />
            <Anchor point="LEFT" x="0" y="0" />
            <Anchor point="RIGHT" x="0" y="0" />
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <Frames>
      <Button parentKey="UnbindButton" hidden="true">
        <Size x="48" y="24" />
        <Layers>
          <Layer level="BACKGROUND">
            <Texture parentKey="Background">
              <Anchors>
                <Anchor point="TOPLEFT" x="-4" y="52" />
                <Anchor point="BOTTOMRIGHT" x="124" y="-4" />
              </Anchors>
              <Color a="0.9" r="0" g="0" b="0" />
            </Texture>
          </Layer>
          <Layer level="OVERLAY">

            <FontString parentKey="savingText" inherits="SkeletonKeyHeaderFont" text="Press a key.">
                <Anchors>
                  <Anchor point="TOP" relativePoint="BOTTOM" y="-3" />
                </Anchors>
              </FontString>
            <FontString inherits="SkeletonKeyButtonFont" text="Clear">
              <Anchors>
                <Anchor point="CENTER" />
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
        <NormalTexture>
          <Color a="1" r=".7" g="0.12" b=".06" />
        </NormalTexture>
        <HighlightTexture alphaMode="ADD">

          <Color a="1" r=".15" g="0.15" b=".15" />
        </HighlightTexture>
      </Button>
    </Frames>
  </Frame>

  <Button name="SkeletonKeyTabTemplate" parentArray="tabButtons" virtual="true">
    <Size x="48" y="32" />
    <Layers>
      <Layer level="BACKGROUND">
        <Texture parentKey="Background">
          <Color a="1" r="0.1" g="0.1" b="0.1" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture parentKey="Icon">
          <Size x="28" y="28" />
          <Anchors>
            <Anchor point="TOPLEFT" />
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString parentKey="Label" inherits="GameFontNormal">
          <Anchors>
            <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.Icon" x="3" y="0" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
  </Button>

</Ui>