EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-24-2005, 02:48 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default opening pages in a window

I have a ? for the guru's here:

I want to use a button that I can click to open a new page that can be displayed within a current window. Namely, the inventory window.

Once the window displays, I would like to have the window use a close button to hide that window so the inventory window is back to normal.

I tried using onpress and onactivate, but I am not seeing my page open.

I started my new page with visible = false.

Using a button and the onpress property, I told it "newpage.visible = true paperdoll.visible = false" it is not working. I click my button and do not see my new page. Any help please is welcomed.
-dn
Reply With Quote
  #2  
Unread 02-24-2005, 03:13 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

Based on "newpage.visible = true paperdoll.visible = false" and assuming your button and newpage are within the EquipmentPage object my guess is you need to use this code:
Code:
Parent.newpage.Visible=true Parent.PaperDoll.Visible=false
Use OnPress for now. After you get the button to work to hide the PaperDoll (why the hell is it called a paperdoll? it's a 3D real-time render) and how your window, you can either use a dual button system to show/hide, a single button that uses !Visible variables to toggle visibility, or a single checkbox to show/hide the two objects.

If you still have trouble, post your XML file.

Quib
Reply With Quote
  #3  
Unread 02-24-2005, 03:30 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

On my newpage do I set that to visible = false within its own properties ?

Or leave as visible and in the Inventory property use Onshow = Parent.Newpage.Visible=false

here is my XML tree:

Using UIBuilder btw -

-Inventory
...-Inventory
......-Newpage
......-Coinpage
......-etc the rest of the normal pages.

Newpage is what I want hidden when Inventory is opened.

Newpage is to be shown over top the paperdoll when the button I have is pressed. Then, Newpage is to be closed via a button on its page to allow paperdoll to be seen again and newpage to close.

Last edited by depechenode : 02-24-2005 at 03:33 PM.
Reply With Quote
  #4  
Unread 02-24-2005, 03:34 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

Those two things would accomplish the same thing, so it doesn't REALLY matter which way you do it. I'd recommend setting Visible=false in the newpage object. It's more efficient to directly set the variable than to use OnEvents wherever possible.

Quib
Reply With Quote
  #5  
Unread 02-24-2005, 03:35 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

I need to know where in the tree your button is as that has a direct impact on the code in the OnEvent.

Quib
Reply With Quote
  #6  
Unread 02-24-2005, 03:37 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

Button to open Newpage is located in:

-Inventory
...-Inventory
...-button for new page


basically it is located on same branch as the close, option and help button.
Reply With Quote
  #7  
Unread 02-24-2005, 03:43 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

K, set newpage's Visible property to false.

Try the following code on the button:
Code:
Parent.EquipmentPage.PaperDoll.Visible=false Parent.newpage.Visible=true
Quib
Reply With Quote
  #8  
Unread 02-24-2005, 03:48 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

hehe thanks Quib you are a BIG help!!


Now, I got the Newpage to open. Not too concerned for the moment on the paperdol atm.

Now that I can open the Newpage but I can't get the Newpage to close.

The button to close the Newpage is on the Newpage itself. Using the default close button. I have onpress Parent.Newpage.Visible=False.

It won't close.

So please if you can help me with this, then I will on the paperdoll hiding.

Thanks Quib!!
Reply With Quote
  #9  
Unread 02-24-2005, 03:54 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

lil more info for you Quib, paperdoll should not be of concern now to me. I think I don't need to worry about hiding it. Just need the close button on Newpage to close that page. Thanks!
Reply With Quote
  #10  
Unread 02-24-2005, 04:02 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

The button on newpage needs the following OnPress:
Code:
Parent.Visible=false
Since the close button is ON newpage, it's parent IS newpage. The open button is a child of the main page object, and so you specify that newpage is what is being made visible.

Quib
Reply With Quote
  #11  
Unread 02-24-2005, 04:05 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

OK thank you!! I am setting it up now to see if works! Thanks Quib!!
Reply With Quote
  #12  
Unread 02-24-2005, 04:22 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

Ok got the button to work! It closes Newpage. BUT, now paperdoll no longer comes back.

here is the Close button's Onpress from Newpage:

Parent.Visible=False EquipmentPage.PaperDoll.Visible=True
Reply With Quote
  #13  
Unread 02-24-2005, 04:29 PM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

Got it to wrok woo hoo Ty Quib for your help.

I am finishing my mod then I will post my newest mod for the Inventory window!

-dn
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 06:48 AM.


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