vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<!-- TargetOfTarget: Keeps Target of Target shown below TargetFrame      -->
<!--                                                                     -->
<!-- Copyright (c) 2005 Itchyban of Veeshan                              -->
<!--                                                                     -->
<!-- Version 2.1 Beta 1                                                    -->
<!--                                                                     -->
<!-- $Header: /usr/local/cvsroot/WoW/Interface/AddOns/TargetOfTarget/TargetOfTarget.xml,v 1.48 2005/05/30 17:09:49 jeff Exp $ -->

<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="TargetOfTarget.lua"/>
  <Script file="AlternateUIs.lua"/>
  <Script file="LocalUIs.lua"/>

  <Button name="HoTT_Display"
          frameStrata="MEDIUM"
          parent="UIParent"
          enableMouse="true">

    <Scripts>
      <OnClick>
        HoTT_Display_OnClick(arg1);
      </OnClick>

      <OnLoad>
        this:RegisterEvent("PLAYER_TARGET_CHANGED");
        this:RegisterEvent("PLAYER_ENTERING_WORLD");
        this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
      </OnLoad>

      <OnEvent>
        HoTT_Display_OnEvent()
      </OnEvent>

      <OnUpdate>
        HoTT_Display_OnUpdate(arg1);
      </OnUpdate>
    </Scripts>

    <Size>
      <AbsDimension x="127" y="30"/>
    </Size>

    <Anchors>
      <Anchor point="TOPLEFT"
              relativeTo="TargetFrameHealthBar"
              relativePoint="BOTTOMLEFT">
        <Offset>
          <AbsDimension x="-5" y="-36"/>
        </Offset>
      </Anchor>

      <Anchor point="TOPRIGHT"
              relativeTo="TargetFrameHealthBar"
              relativePoint="BOTTOMRIGHT">
        <Offset>
          <AbsDimension x="3" y="-36"/>
        </Offset>
      </Anchor>
    </Anchors>

    <Frames>


      <Frame name="HoTT_Display_NameArea" 
             frameStrata="MEDIUM"
             parent="HoTT_Display" 
             enableMouse="false">
        
        <Scripts>
          <OnLoad>
            HoTT_Display_NameArea_Text:SetText("(undetermined)");
          </OnLoad>
        </Scripts>

        <Size>
          <AbsDimension x="127" y="24"/>
        </Size>

        <Anchors>
          <Anchor point="TOPLEFT"
                  relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="0" y="0"/>
            </Offset>
          </Anchor>

          <Anchor point="TOPRIGHT"
                  relativePoint="TOPRIGHT">
            <Offset>
              <AbsDimension x="0" y="0"/>
            </Offset>
          </Anchor>
        </Anchors>

        <Backdrop bgFile="Interface/DialogFrame/UI-DialogBox-Background" 
                  edgeFile="Interface/Tooltips/UI-Tooltip-Border" 
                  tile="true">

          <BackgroundInsets>
            <AbsInset left="5" right="5" top="5" bottom="5"/>
          </BackgroundInsets>

          <TileSize>
            <AbsValue val="16"/>
          </TileSize>

          <EdgeSize>
            <AbsValue val="16"/>
          </EdgeSize>
        </Backdrop>

        <Layers>
          <Layer level="ARTWORK">
            <FontString name="HoTT_Display_NameArea_Text" 
                        inherits="GameFontNormalSmall"
                        justifyH="CENTER">
              <Anchors>
                <Anchor point="LEFT">
                  <Offset>
                    <AbsDimension x="0" y="0" />
                  </Offset>
                </Anchor>
                <Anchor point="RIGHT">
                  <Offset>
                    <AbsDimension x="0" y="0" />
                  </Offset>
                </Anchor>
              </Anchors>

              <Scripts>
                <OnLoad>
                  this:SetText("(undetermined)");
                </OnLoad>
              </Scripts>

            </FontString>
          </Layer>
          <Layer level="OVERLAY">
            <Texture name="HoTT_Display_Dead" 
                     file="Interface\TargetingFrame\UI-TargetingFrame-Skull">
              <Size>
                <AbsDimension x="16" y="16"/>
              </Size>
              <Anchors>
                <Anchor point="CENTER">
                  <Offset>
                    <AbsDimension x="0" y="0"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <Color r="1.0" g="1.0" b="1.0" a="0.5"/>
            </Texture>
          </Layer>
        </Layers>
      </Frame>


      <StatusBar name="HoTT_Display_Bar" 
                 inherits="TextStatusBar"
                 parent="HoTT_Display">

        <Size>
          <AbsDimension x="123" y="6"/>
        </Size>

        <Anchors>
          <Anchor point="TOPLEFT"
                  relativeTo="HoTT_Display_NameArea"
                  relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="2" y="0"/>
            </Offset>
          </Anchor>
          <Anchor point="TOPRIGHT"
                  relativeTo="HoTT_Display_NameArea"
                  relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-2" y="0"/>
            </Offset>
          </Anchor>
        </Anchors>

        <Scripts>
          <OnLoad>
            --this:SetMinMaxValues(0,100);
            --this:SetValue(100);
            --this:RegisterEvent("UNIT_HEALTH");
            --this:RegisterEvent("UNIT_MAXHEALTH");
          </OnLoad>

          <OnValueChanged>
            --HoTT_Display_Bar_OnValueChanged(arg1)
          </OnValueChanged>

          <OnEvent>
            --HoTT_Display_Bar_OnEvent(arg1)
          </OnEvent>

          <OnShow>
            --HoTT_Display_Bar_OnEvent(this.unit)
            HoTT_Display_Bar:Hide();
          </OnShow>

          <OnUpdate>
            --HoTT_Display_Bar_OnUpdate(arg1)
          </OnUpdate>

        </Scripts>

        <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>

      </StatusBar>

    </Frames>

  </Button>

  <!-- Frame for the "guts" of the code                            -->
  <!-- Needs to be at end so it can initialize other frames OnLoad -->

  <Frame name="HoTT_MainFrame"
         frameStrata="BACKGROUND"
         hidden="true"> 

    <Size>
      <AbsDimension x="120" y="16"/>
    </Size>

    <Scripts>
      <OnLoad>
        HoTT_Set_XML_CVS("$Revision: 1.48 $");
        HoTT_MainFrame_OnLoad();
      </OnLoad>

      <OnEvent>
        HoTT_MainFrame_OnEvent();
      </OnEvent>
    </Scripts>

  </Frame>


</Ui>