EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Changing info a window from another (https://www.eq2interface.com/forums/showthread.php?t=11284)

RickF7666 07-12-2008 07:04 PM

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.

Drumstix42 07-12-2008 08:12 PM

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.

gm9 07-13-2008 07:19 AM

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.

Drumstix42 07-28-2008 04:13 PM

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.

gm9 07-28-2008 04:40 PM

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).

Drumstix42 07-28-2008 04:42 PM

1 Attachment(s)
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. :mad:

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

Drumstix42 07-28-2008 04:52 PM

*edit*

attached a screenshot above.

*Edit*

NEVERMIND

It was picky....

I had to change Parent.Parent.Includes into Parent.Parent.Parent.Custom.Includes

gm9 07-29-2008 01:58 AM

Quote:

Originally Posted by Drumstix42 (Post 74558)
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.

Drumstix42 07-29-2008 02:12 AM

Sweet. I more fully understand the different between the two now.


All times are GMT -5. The time now is 08:27 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI