EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 07-12-2008, 07:04 PM
RickF7666's Avatar
RickF7666 RickF7666 is offline
A Griffawn
Interface Author - Click to view interfaces
 
Join Date: Jun 2005
Server: Oasis
Posts: 70
Default Changing info a window from another

I was wondering if it was possible to have a button in one window change something in another window. And of course if it is possible, how it would be done.
Reply With Quote
  #2  
Unread 07-12-2008, 08:12 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Yeah, just go up the structure of the window, and then go one more to be in MainHud for example, then go by the window name, and down the structure to what'cha wanna do.


I think there's an easier way, like a quick way to start at the top of the UI structure, but I don't remember where the post was.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #3  
Unread 07-13-2008, 07:19 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Just know that there are two versions of the UI in memory, one in the form that it was loaded from disk, and one which is the collection of all windows loaded into the active UI (i.e. on which a /show_window was done either manually or automatically). All your active windows reside in the same subtree (root._HUD), even if on disk they are in separate subtrees/modules (e.g. root.MainHUD and root.Custom).

You can manipulate both of them, but for it to affect currently active windows you need to manipulate those in the _HUD tree. For changes to persist across characters during the session they need to be (also) made to the other non-active trees.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #4  
Unread 07-28-2008, 04:13 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I'm trying to move my includes.xml file from my InfoCenter into the eq2ui_custom.xml so that I can re-use information in my Journal modification.

In essence it was easy as changing where the <include> is, and changing Parent.Includes.blah.blah.text into Parent.Parent.Includes.x.x.text
The page used to be located in Custom.InfoCenter.Includes, and now resides in Custom.Includes via the "tree".

However, I'm having trouble. And the wierd part is that it will function correctly in UIBuilder and not in the game. I tried using root.Custom.Includes.x.x.text as well, and that did not fly.

I thought maybe I needed to include the includes.xml above the InfoCenter, but that didn't change anything. Any ideas? Does the file name have to named a certain way? The whole reason for this change is apparently the game doesn't like it when you try to include the same file in 2 different places, which is lame.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #5  
Unread 07-28-2008, 04:40 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

You can't include the same file twice, and you cannot have two different files with the same name in the xml.

Apart from that it does not matter whether your window is in MainHUD or Custom, because in both cases it will be a child of _HUD, hence you do not need to change any references to it (see my post above).
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 07-28-2008, 04:42 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Gotcha. Well, instead of the page "Includes" being inside the page "InfoCenter" it is now just under Custom. However, I'm having no luck retrieving the text this way. But it works just fine in the UIBuilder.

I'll have to keep messing with it.

*edit* here I attached a screenshot to show.

Code:
OnPress="Parent.Parent.Parent.Parent.Parent.SETPAGE.OnPress=('Parent.TabPages.Miscellaneous.Text.Body.text=')##('Parent.Parent.Includes.Miscellaneous.')##(Name)##('.text')
Parent.Parent.Parent.Parent.Parent.SETPAGE.press=true"
SETPAGE is what is having the OnPress modified, and where the "Parent.x.x.x.x" to the Includes page is being modified.

It "should" be working. And like I said, works fine in UIBuilder. Any ideas??
Attached Thumbnails
Click image for larger version

Name:	infocenter_troubles.jpg
Views:	266
Size:	150.2 KB
ID:	6486  
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 07-28-2008 at 04:53 PM.
Reply With Quote
  #7  
Unread 07-28-2008, 04:52 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

*edit*

attached a screenshot above.

*Edit*

NEVERMIND

It was picky....

I had to change Parent.Parent.Includes into Parent.Parent.Parent.Custom.Includes
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 07-28-2008 at 04:55 PM.
Reply With Quote
  #8  
Unread 07-29-2008, 01:58 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by Drumstix42 View Post
It was picky....

I had to change Parent.Parent.Includes into Parent.Parent.Parent.Custom.Includes
That means you did not do a /show_window Custom.Includes first (see my post #3 above).

But that is just as well, you don't need those includes in the active set and thus can save some memory by referencing them the way you do now.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #9  
Unread 07-29-2008, 02:12 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Sweet. I more fully understand the different between the two now.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
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 07:53 AM.


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