EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-31-2005, 10:00 PM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default 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
Reply With Quote
  #2  
Unread 01-31-2005, 10:10 PM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

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
Reply With Quote
  #3  
Unread 01-31-2005, 11:33 PM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default

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?
Reply With Quote
  #4  
Unread 01-31-2005, 11:34 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #5  
Unread 02-01-2005, 03:05 AM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default

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
Reply With Quote
  #6  
Unread 02-01-2005, 03:12 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

OnShow sometimes has issues triggering.

Try this:

OnHide="visible=true show_window=(MainHUD.Player2) show_window=(MainHUD.Player2)" visible="false"
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #7  
Unread 02-01-2005, 03:25 AM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default

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.
Reply With Quote
  #8  
Unread 02-01-2005, 03:30 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #9  
Unread 02-01-2005, 03:49 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

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
Reply With Quote
  #10  
Unread 02-01-2005, 04:21 AM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default

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.
Reply With Quote
  #11  
Unread 02-01-2005, 03:30 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

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
Reply With Quote
  #12  
Unread 02-02-2005, 01:11 PM
pheebau pheebau is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 26
Default

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...
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 04:52 AM.


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