EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Creating a new page under MainHud (https://www.eq2interface.com/forums/showthread.php?t=1238)

pheebau 01-31-2005 10:00 PM

Creating a new page under MainHud
 
I've been creating a new page under MainHud - it is a copy of the player page - I've changed the page name to be different - what I don't understand is why it won't show up - Visible is set to true (default) - Is it ok to create one's own page with different names and expecting them to be displayed as the regular EQ2 standard ones?

Thanks for any help

Quib 01-31-2005 10:10 PM

Custom pages won't show automatically. You can either make another window load yours using OnShow="show_window=(MainHUD.yourwindowname) show_window=(MainHUD.yourwindowname)" or by typing /show_window MainHUD.yourwindowname in the chat window.

At least this is the general rule, there are exceptions when you use some of SOE's unused windows.

Quib

pheebau 01-31-2005 11:33 PM

Thanks Quib. That helps a lot.

I can show the window if I use /show_window MainHUD.Player2

However I've set the OnShow property of the Experience page to be:

OnShow=show_window=(MainHUD.Player2)

the windows Player2 does not appear upon loading the first MainHUD page...

'Player2' is the name of my new page under MainHUD.

Any idea?

Deathbane27 01-31-2005 11:34 PM

Need to do show_window=(MainHUD.Player2) TWICE. First time it sets a property on the Experience page, second time it actually executes the command.

pheebau 02-01-2005 03:05 AM

Thanks DB,

I tried it as well and not good.

Here is what I have tried:

/* With quotes */
OnShow="show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)"

/* Without quotes */
OnShow=show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)

I've the OnShow set on the main Experience page - maybe I should try another page.

if I do
/show_window MainHUD.Player2
then it works

Gonna try with a different page...maybe XP

Deathbane27 02-01-2005 03:12 AM

OnShow sometimes has issues triggering.

Try this:

OnHide="visible=true show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)" visible="false"

pheebau 02-01-2005 03:25 AM

DB,

I just tried on the main Experience page and still a no go :(

I've copy-pasted the following in the OnHide entry field:

"visible=true show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)" visible="false"

(with quotes of course)

Arghhh ;)

Thanks for your help.

Deathbane27 02-01-2005 03:30 AM

Er...

Clear the OnShow field.

Paste the following into the OnHide field:

visible=true show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)

Paste the following into the Visible field:

false

Quib 02-01-2005 03:49 AM

Visible is the initial value. If your UI ini says X window is visible it'll change from the default to the saved state; true to true (no change so no call is made) or false to true (which is what we want to happen). This means you want to set the window Visible=false and use the OnShow message which EQ2 will call when it forces the window to show upon logging in.

In other words, if you set Visible=false and try to do an OnHide message, it won't get called during login if you last camped with that window open.

This is how it's worked for me anyway.

Quib

pheebau 02-01-2005 04:21 AM

Quote:

Originally Posted by Deathbane27
Er...

Clear the OnShow field.

Paste the following into the OnHide field:

visible=true show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)

Paste the following into the Visible field:

false

Ok - I did exactly this - I'm using the main Experience page as the bootstrap to launch the Player2 page which I created - Visible has been set to false and OnHide to the above on the Experience page - still a no go - no display of Player2 - Maybe I could create a macro doing the show_window and have the macro called by the UI interface hooks - Not sure this is even supported - probably not...

If you guys want to try it out - just duplicate the Player page into a Player2 page at the same level - I changed the description of Player2....now try to make it launch from the Experience page....this is what am trying to do basically - Page2 always works fine when typing /show_window in the console...

Thanks.

sunthas 02-01-2005 03:30 PM

Quote:

Originally Posted by pheebau
Ok - I did exactly this - I'm using the main Experience page as the bootstrap to launch the Player2 page which I created - Visible has been set to false and OnHide to the above on the Experience page - still a no go - no display of Player2 - Maybe I could create a macro doing the show_window and have the macro called by the UI interface hooks - Not sure this is even supported - probably not...

If you guys want to try it out - just duplicate the Player page into a Player2 page at the same level - I changed the description of Player2....now try to make it launch from the Experience page....this is what am trying to do basically - Page2 always works fine when typing /show_window in the console...

Thanks.

What about using that clock mod that we used on my ammo window.

http://www.eq2interface.com/forums/s...ead.php?t=1127

Just change it from MainHUD.Inventory to MainHUD.Player2

pheebau 02-02-2005 01:11 PM

Thanks Guys,

Setting OnHide="visible=true show_window=(MainHud.Inventory) show_window=(MainHud.Inventory)" on the new page made it work - it now appears fine after logging....Nice trick...


All times are GMT -5. The time now is 05:17 AM.

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