1. Hi,

    I was able to get TargetText working great and even able to add click and drag to the frame.  see xml code below. I'm wonering will the click and drag code in my TargetText code affect TargetTextbuffs or will it just move with TargetText window.  if not what would I need to add to the TargetTextbuff XML code to allow it to be draged when I click on the TargetText window.  Thanks

    <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">

     <Frame name="TargetTextFrame" enableMouse="true" movable="true" parent="UIParent">

      <Size x="200" y="86"/>

      <Anchors>

       <Anchor point="CENTER" relativePoint="CENTER"/>

      </Anchors>

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

       <EdgeSize val="16"/>

       <TileSize val="16"/>

       <Color r="0.75" g="0.75" b="0.75"/>

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

      </Backdrop>

      <Layers>

       <Layer level="ARTWORK">

        <!-- Need to explicitly justify left because setting the size implies centered -->

        <FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT">

         <Size x="150" y="14"/>

         <Anchors>

          <Anchor point="TOPLEFT">

           <Offset x="10" y="-9"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentLevel" inherits="GameFontHighlight">

         <Anchors>

          <Anchor point="TOPRIGHT">

           <Offset x="-10" y="-9"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentClass" inherits="GameFontHighlight">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentPvP" inherits="GameFontHighlight" text="PvP">

         <Anchors>

          <Anchor point="TOPRIGHT" relativeTo="$parentLevel" relativePoint="BOTTOMRIGHT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentReaction" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentClass" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentFaction" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPRIGHT" relativeTo="$parentPvP" relativePoint="BOTTOMRIGHT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentHealthLabel" inherits="GameFontNormalSmall" text="HEALTH">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentReaction" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentHealth" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="LEFT" relativeTo="$parentHealthLabel" relativePoint="RIGHT">

           <Offset x="10" y="0"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentManaLabel" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentHealthLabel" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentMana" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentHealth" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

       </Layer>

      </Layers>

      <Scripts>

       <OnLoad>

        TargetText:OnLoad()

        self:RegisterForDrag("LeftButton")

       </OnLoad>

       <OnEvent>

        TargetText:OnEvent(event, ...)

       </OnEvent>

       <OnShow>

        TargetText:RegisterUpdates()

       </OnShow>

       <OnHide>

        TargetText:UnregisterUpdates()

       </OnHide>

         <OnDragStart>

             self:StartMoving()

         </OnDragStart>

             <OnDragStop>

                self:StopMovingOrSizing()

             </OnDragStop>

      </Scripts>

     </Frame>

     

    </Ui>

     

     

  2. Hi,

    I was able to get TargetText working great and even able to add click and drag to the frame.  see xml code below. I'm wonering will the click and drag code in my TargetText code affect TargetTextbuffs or will it just move with TargetText window.  if not what would I need to add to the TargetTextbuff XML code to allow it to be draged when I click on the TargetText window.  Thanks

    <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">

     <Frame name="TargetTextFrame" enableMouse="true" movable="true" parent="UIParent">

      <Size x="200" y="86"/>

      <Anchors>

       <Anchor point="CENTER" relativePoint="CENTER"/>

      </Anchors>

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

       <EdgeSize val="16"/>

       <TileSize val="16"/>

       <Color r="0.75" g="0.75" b="0.75"/>

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

      </Backdrop>

      <Layers>

       <Layer level="ARTWORK">

        <!-- Need to explicitly justify left because setting the size implies centered -->

        <FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT">

         <Size x="150" y="14"/>

         <Anchors>

          <Anchor point="TOPLEFT">

           <Offset x="10" y="-9"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentLevel" inherits="GameFontHighlight">

         <Anchors>

          <Anchor point="TOPRIGHT">

           <Offset x="-10" y="-9"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentClass" inherits="GameFontHighlight">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentPvP" inherits="GameFontHighlight" text="PvP">

         <Anchors>

          <Anchor point="TOPRIGHT" relativeTo="$parentLevel" relativePoint="BOTTOMRIGHT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentReaction" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentClass" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentFaction" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPRIGHT" relativeTo="$parentPvP" relativePoint="BOTTOMRIGHT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentHealthLabel" inherits="GameFontNormalSmall" text="HEALTH">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentReaction" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentHealth" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="LEFT" relativeTo="$parentHealthLabel" relativePoint="RIGHT">

           <Offset x="10" y="0"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentManaLabel" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentHealthLabel" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

        <FontString name="$parentMana" inherits="GameFontNormalSmall">

         <Anchors>

          <Anchor point="TOPLEFT" relativeTo="$parentHealth" relativePoint="BOTTOMLEFT">

           <Offset x="0" y="-2"/>

          </Anchor>

         </Anchors>

        </FontString>

       </Layer>

      </Layers>

      <Scripts>

       <OnLoad>

        TargetText:OnLoad()

        self:RegisterForDrag("LeftButton")

       </OnLoad>

       <OnEvent>

        TargetText:OnEvent(event, ...)

       </OnEvent>

       <OnShow>

        TargetText:RegisterUpdates()

       </OnShow>

       <OnHide>

        TargetText:UnregisterUpdates()

       </OnHide>

         <OnDragStart>

             self:StartMoving()

         </OnDragStart>

             <OnDragStop>

                self:StopMovingOrSizing()

             </OnDragStop>

      </Scripts>

     </Frame>

     

    </Ui>

     

     

  3. If the buffs are anchored to the main frame, they will move with it automatically.

  4. Thanks,

    I still have to get some stuff sorted out to get the buffs working.