EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   OnShow and where to use it ? (https://www.eq2interface.com/forums/showthread.php?t=10937)

maximoz 04-30-2008 04:05 PM

OnShow and where to use it ?
 
Hi All experienced modders,

I did a search and saw that using the experience xml file is a good way to use onshow to display custom window.

What i am not sure is where exactly in the experience xml file do i insert this onshow? Is it any object?

Thanks!

Landiin 04-30-2008 10:38 PM

On the root node of the window is where you want to put it.

Code:

<Page Name="Experience" OnShow="show_window custom.mywindow">
...
</Page>


maximoz 05-01-2008 03:08 AM

Thanks Landiin.

Another question: does the command needs to be entered twice ? That is:
<Page Name="Experience" OnShow="show_window custom.mywindow show_window custom.mywindow">

Also if i want to show my inventory when i login, is the command "show_window MainHUD.Inventory" ?

I read somewhere it used to be so.

dragowulf 05-01-2008 07:44 AM

Quote:

Originally Posted by maximoz (Post 72422)
Thanks Landiin.

Another question: does the command needs to be entered twice ? That is:
<Page Name="Experience" OnShow="show_window custom.mywindow show_window custom.mywindow">

Also if i want to show my inventory when i login, is the command "show_window MainHUD.Inventory" ?

I read somewhere it used to be so.

command for showing inventory is "show_window Inventory.Inventory"

Landiin 05-01-2008 08:31 AM

Quote:

Originally Posted by maximoz (Post 72422)
Thanks Landiin.

Another question: does the command needs to be entered twice ? That is:
<Page Name="Experience" OnShow="show_window custom.mywindow show_window custom.mywindow">

Also if i want to show my inventory when i login, is the command "show_window MainHUD.Inventory" ?

I read somewhere it used to be so.

No you only need to enter the command once if you do it the way I showed. If you used show_window=custom.mywindow you would have to enter it twice, so don't use the = :P

What dragowulf said for the inventory window.

maximoz 05-01-2008 09:11 AM

Thanks to the both of you!

Will give it a try once the server is up :)

Hmm is there somewhere i can find info on when to use MainHUD.mywindow vs Parent.MainHUD.mywindow vs Parent.Parent vs mywindow.mywindow, etc ?


All times are GMT -5. The time now is 02:36 AM.

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