After about a week and half of playing with this code I'm finding it impossible for me to figure out. Maybe it's impossible to do though, maybe some one can figure this out. Sorry about the code, this coming straight from my coding program so I have all my notes to myself in it. BTW i want it to target the players name in the window as your defensive target. I would love to get the defensive target auto-update like the text does on this window to show who gets agro. I can figure that part out myself if I can get help with setting your defensive target on clicking the name in the window.
Code:
<!-- The Component Window that Pulls your Offensive Targets Target and Displays it for you -->
<ComponentWindow name="_anti_group_entry_first" interpretAs="UseControl" singleInstance="true">
<UseControl type="Window">
<VGUIWindow>
<!--Window that holds the text Settings-->
<!-- Note: Maybe change this visible value to false depending on how many complaints from users seeing the white lines all the time-->
<Rect x="2" y="2" width="100" height="50"/>
<Settings name="_anti_group_entry_first"
searchKey="_anti_group_entry_first"
resizeOnChildren="true"
visible="true
">
</Settings>
<!-- End: Window that holds the text settings -->
<!--Offensive Targets Target Text-->
<UseControl type="TextField" >
<TextField fontSize="10" color="white" centered="false">
<Rect x="0" y="2" width="100" height="18"/>
<Text>NPCs Target</Text>
</TextField>
<Settings name="_anti_group_entry_first_target"
searchKey="_anti_group_entry_first_target"
dropShadowText="true"
notifyOnLeftClick="true"
neverClickThrough="true">
<Action event="raid_set_target" senderName="#SetAsSender">
<Notifications>
<Message>LEFTCLICK</Message>
</Notifications>
</Action>
</Settings>
</UseControl>
<!--End: Offensive Targets Target Text-->
</VGUIWindow>
</UseControl>
</ComponentWindow>
<!--End: The Component Window that Pulls your Offensive Targets Target and Displays it for you -->
<!-- I got drunk and had a wierd idea to make this window-->
<!-- Note: Don't forget to change the positioning of this window after it works -->
<VGUIWindow name="Silentnoise Offensive Target Hotbar">
<Rect x="500" y="500" width="255" height="50"/>
<Settings searchKey="target"
resizeOnChildren="false"
movable="true"
layoutMovable="true"
layoutOutline="true">
</Settings>
<!-- Line Color Settings Blue -->
<!-- Note: Maybe add another color line to give it different looks, strips that are smaller and in front of or another strip the same size that is black to increase the brightness.-->
<UseControl type="Window">
<VGUIWindow>
<!--Entry Settings-->
<Rect x="2" y="15" width="400" height="20"/>
<Settings name="_anti_group_entry_first"
searchKey="_anti_group_entry_first"
resizeOnChildren="true"
movable="true"
setBackgroundColor="blue"
setBackgroundColorOpacity="100"
useColoredBackground="true"
visible="true">
</Settings>
</VGUIWindow>
</UseControl>
<!-- End: Line Color Settings Blue -->
<!-- Rescue/Healer Hotbar -->
<!-- Note: After get this working lower spell macros down from 5 down to 3 -->
<!-- Note: Don't forget to bind keys to this hotbar. Maybe backspace with ctrl,alt, and shift -->
<UseControl type="WindowBank">
<WindowBank numBanks="1"
beginDragDrop="true"
allSourcesValid="true"
showSpinner="true"
emptySlotGraphic="background"
bankID="577"
registerAsOptionalBank="true">
<!-- The settings on each hotkey button -->
<Rect x="100" y="10" width="517" height="42"/>
<SlotSize>
<Size width="30" height="30"/>
</SlotSize>
<SlotStart>
<Point x="0" y="0"/>
</SlotStart>
<SlotSpacing>
<Point x="31" y="0"/>
</SlotSpacing>
<!-- End: Hotkey button settings -->
<ValidSourceNames/>
<!--If it's already a hotkey it's pulling it's grahics here-->
<ValidDropTypes>
<WndType>BUTTON</WndType>
<WndType>ABILITYSLOT</WndType>
<WndType>ITEMSLOT</WndType>
</ValidDropTypes>
<!-- End: Valid hotkey graphic -->
<!-- Blank Slot Graphics -->
<GraphicName label="background" isBaseName="false">
<Name>VgrdIconBlankSlot</Name>
</GraphicName>
<!-- End: Blank Slot Graphic -->
</WindowBank>
<!-- Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<!-- Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<!-- Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<Settings searchKey=""
name="">
<!-- End: Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<!-- End: Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<!-- End: Bind Keys Setting Here Don't Forgot this or this is pointless window -->
<!-- Commands to make your hotkeys -->
<Action event="hotkey_drag_drop" senderName="#SetAsSender">
<Notifications>
<Message>DRAGDROP</Message>
</Notifications>
</Action>
<Action event="hotkey_make_macro" senderName="#SetAsSender">
<Notifications>
<Message>DOUBLECLICK</Message>
<Message>RIGHTCLICK</Message>
</Notifications>
</Action>
<Action event="wndbank_activate_slot" senderName="#SetAsSender">
<Notifications>
<Message>BUTTON_PRESS</Message>
<Message>ABILITYSLOT_SELITEM</Message>
<Message>ITEMSLOT_SELITEM</Message>
</Notifications>
</Action>
<Action event="hotkey_macro_edit" senderName="#SetAsSender">
<Notifications>
<Message>RIGHTCLICK</Message>
</Notifications>
</Action>
<!-- End: Commands to make your hotkeys -->
</Settings>
</UseControl>
<!-- End: Rescue/Healer Hotbar -->
<!-- Don't screw with after you got this working -->
<UseComponent name="_anti_group_entry_first" gameVarLink="TargetCombatInfo">
<Point x="2" y="15"/>
<Settings>
<Bind member="TargetName" searchKey="_anti_group_entry_first_target"/>
</Settings>
</UseComponent>
<!-- End: Don't screw with this after you get it working -->
</VGUIWindow>
<!-- End: Another drunk idea window -->