VGInterface.com
Search Downloads


Go Back   VGInterface > Developer Discussions > XML modification help and discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2008, 10:30 AM
Silentnoise Silentnoise is offline
Junior Member
 
Join Date: Jan 2024
Posts: 4
Default I give

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 -->
Reply With Quote
  #2  
Old 03-14-2008, 10:39 AM
Kruzayn Kruzayn is offline
Junior Member
 
Join Date: Mar 2024
Posts: 6
Default

Im not too advanced in this stuff, but have you taken a look at the default group window or raid window? That should give you the correct click to target code....maybe it would be better to look at the encounter window...hmm...

could something along this line work?
<action event="execute_slash_command" SenderName="#SetAsSender" strData="/target <gamVar=?????????????>">

im not sure what the gamevar is for offensive targets target if there is one...

Another avenue for this would be if you can concatenate and just drop the display name there, im not sure of veriables and how they work in XML, but could you do a /target $offensivetargetstarget and populate that target from the label you used above? thus making it <action event="execute_slash_command" SenderName="#SetAsSender" strData="/target $offensivetargetstargets">

Last edited by Kruzayn : 03-14-2008 at 12:10 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:20 PM.

Contact Us - VGInterface - Terms of Service - Privacy Statement - Top

Our Network
EQInterface | EQ2Interface | WoWInterface | VGInterface | LoTROInterface | MMOInterface