EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 09-22-2007, 09:31 PM
FloridaFringe FloridaFringe is offline
A Griffon
 
Join Date: Sep 2005
Server: Lucan DLere
Posts: 459
Default Tracking Window Close Options

Hello. I'm using the following: MaddBomber's Tracking Window and would like to stop it from closing when I select a target to track. I've looked through the code and the only 2 lines with "close" are:

Line 19:

<Button LocalTooltip="Stop Tracking" Name="Close" OnPress="parent.parent.Parent.CancelButton.Press=&apos;true&apos;" PackLocation="fff,nfn" PackLocationProp="0001/0001,0000/0001" ScrollExtent="18,18" Size="18,18" Style="close.style" Tooltip="Stop Tracking" UserMovable="true"></Button>

Line 79:

<Namespace Name="close">

Should one or both of these be removed? Is there any additional code that might help?

I would still like to be able to close the window via the X button just not by performing a specific track.

Any help would be highly appreciated. Thank you kindly.

Also, are there any major repercussions from making a bad xml edit? I was afraid to try removing either line to see what would happen since I wasn't sure if I could seriously mess something up by doing so.
Reply With Quote
  #2  
Unread 09-23-2007, 12:48 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

I wouldn't worry too much about messing anything up. If you do you can just go back to what you had before.

I think that button is hard coded to close the window. Have you tried putting an OnPress command to open the window on that button?
__________________

Visit Othesus World!
Reply With Quote
  #3  
Unread 09-23-2007, 03:55 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

I'm 99% sure the "Track" button is hard coded to close the window. I know that in some cases, like the tinkered harvestable tracker, the usage of track is limited and so having the window remain up might invalidate that limitation.

You might try othesus's suggestion of adding a show window command to the track button.

As for editing it and messing things up -- at worst you'll just screw up that window (and at very worst, cause it to crash you). So long as you revert the edits things will return to normal.
Reply With Quote
  #4  
Unread 09-23-2007, 04:44 PM
FloridaFringe FloridaFringe is offline
A Griffon
 
Join Date: Sep 2005
Server: Lucan DLere
Posts: 459
Default

Thank you for the responses. I'll work with the OnPress and see how it goes but I'm rather inexperienced so it's probably going to be a bit of a guessing game. Would it something like this by any chance:

OnPress="/show_window MainHUD.Tracking"

I got this idea from the ThorUI Tracking window that doesn't close when selecting a target and has a separate Cancel button to close instead. I'll continue to look at the code for that and see what I can come up with.

Again, thank you kindly and any other input that anyone might be willing to add would be highly appreciated.
Reply With Quote
  #5  
Unread 09-23-2007, 05:40 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Yeah, except you wouldn't use a "/"

I would just compare the code for the one you know does what you want and the one you're using and examine the areas that differ.
Reply With Quote
  #6  
Unread 09-26-2007, 02:39 AM
FloridaFringe FloridaFringe is offline
A Griffon
 
Join Date: Sep 2005
Server: Lucan DLere
Posts: 459
Default

Well, I tried the ThorUI file and it didn't end up working, which leads me to believe that it might not be possible since it was supposedly working before. I compared the code regardless but the two windows just don't seem to be coded near enough for me to see anything jumping out.

I plan on continuing to work with the show_window command to see if I can get that in there in the right place and syntax. However, if there's anyone more knowledgeable than I that might be willing to take a look to see if it's even possible then that would be highly appreciated.

So far I have ignored Line 79 and have focused my attention on Line 20 & it's reference to the OkButton on Line 170.


Line 20: <Button LocalTooltip="Start Tracking" Location="0,137" Name="Track" OnPress="parent.parent.Parent.OkButton.Press=&apos;true&apos;" PackLocation="fff,fff" PackLocationProp="0001/0001,0001/0001" ScrollExtent="18,18" Size="18,18" Style="settings.style" Tooltip="Start Tracking" UserMovable="true"></Button>

Line 170: <Button LocalText="Ok" Name="OkButton" Opacity="0.000" ScrollExtent="1,1" Size="1,1">Ok</Button>


I've tried the following without any success but that could just be because I really don't have much of a clue on what I'm doing:

Test 1: <Button LocalTooltip="Start Tracking" Location="0,137" Name="Track" OnPress="parent.parent.Parent.OkButton.Press=&apos;true&apos; show_window MainHUD.Tracking" PackLocation="fff,fff" PackLocationProp="0001/0001,0001/0001" ScrollExtent="18,18" Size="18,18" Style="settings.style" Tooltip="Start Tracking" UserMovable="true"></Button>

Test 2: <Button LocalTooltip="Start Tracking" Location="0,137" Name="Track" OnPress="parent.parent.Parent.OkButton.Press=&apos;true&apos; show_window (MainHUD.Tracking)" PackLocation="fff,fff" PackLocationProp="0001/0001,0001/0001" ScrollExtent="18,18" Size="18,18" Style="settings.style" Tooltip="Start Tracking" UserMovable="true"></Button>

Test 3: <Button LocalText="Ok" Name="OkButton" OnPress="show_window MainHUD.Tracking" Opacity="0.000" ScrollExtent="1,1" Size="1,1">Ok</Button>

Test 4: <Button LocalText="Ok" Name="OkButton" OnPress="show_window (MainHUD.Tracking)" Opacity="0.000" ScrollExtent="1,1" Size="1,1">Ok</Button>


The only thing that I can say for certain is that if you remove the OnPress portion of the original Line 20 then the window doesn't close. It doesn't track either but it doesn't close so both seem connected on that one command. Now if only they could be separated so that the Close aspect could be removed from the equation while leaving the Track portion intact.

Right now this would have to be my biggest issue, mainly since I started playing a Dirge, so if need be I'll just have to resort to sending in some feedback and hoping for the best.

Again, thanks for the responses and any further assistance that anyone can offer.
Reply With Quote
Reply



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 -5. The time now is 01:08 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI