EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-24-2005, 11:39 AM
Agathorn Agathorn is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Test
Posts: 405
Default Problems using dummy pages for positioning

I'm trying to use a couple dummy pages in my Inventory module to store positoning and sizing information that is used by Inventory.Inventory for various functios.

However the problem i'm having is that for some reason, those pages are like not "available" unless the user first does a /show_window on them. For example one button on my inventory window toggles the visible status of Inventory.InventoryDockDummy. If you click that nothing will happen unless youve first shown and then hidden the window with /show_window and /hide_window. Then it works fine.

In another case I use a dummy window, Inventory.InventorySaved to save some values of my main inventory window between states. However, again this window won't even work to write/read values unless its first been shown with /show_window.

Once either window has been shown with /show_window they can then be safely hidden and function exactly as desired even though they hidden.
__________________
Test server native since day 1
Currently working on:
Serenity UI Suite
Take a look and give feedback!
Reply With Quote
  #2  
Unread 11-24-2005, 11:56 AM
depechenode's Avatar
depechenode depechenode is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
Default

Try tieing the window you wish to have available to an OnHide event triggered off your Player window. That way, when you load EQ2 and the player window pops, then the onhide event of that window will do what you are trying do as if you typed those two commands you mentioned to get it to work. Just put those two commands you use manually in the player window onhide = event. You have to place the commands in duplicate however, for it to work correct.

Here is my onhide event for my player window tht opens my custom mainhud inventory window:
OnHide =
show_window=(MainHud.Inventory)
show_window=(MainHud.Inventory)


I am not sure why my onhide actually works, you would think on show would work best, but I think it works for when you camp out and sets the setting for the next log in. I guess.. but It works none the less for me.
Reply With Quote
  #3  
Unread 11-24-2005, 01:40 PM
Agathorn Agathorn is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Test
Posts: 405
Default

Hmm well I did do somethign similiar in the OnShow and that worked..to a degree. Problem was I could show the dummy windows but not hide them. I was trying to show then hide them in the event. I want them loaded so the sxript works but rather not have the player SEE them
__________________
Test server native since day 1
Currently working on:
Serenity UI Suite
Take a look and give feedback!
Reply With Quote
  #4  
Unread 11-24-2005, 02:51 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

Then just add a Hide_Window command (twice) after the two Show commands in the event.
Reply With Quote
  #5  
Unread 11-24-2005, 03:52 PM
Agathorn Agathorn is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Test
Posts: 405
Default

That is what I had done but the windows showed and never hid. I'll try it again I guess.
__________________
Test server native since day 1
Currently working on:
Serenity UI Suite
Take a look and give feedback!
Reply With Quote
  #6  
Unread 11-24-2005, 07:28 PM
Agathorn Agathorn is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Test
Posts: 405
Default

Well I did it again and this time the second set of commands to hide the windows works. *shrug* Guess I had some typos or somethign the first time. Now I feel like an idiot

Thanks for your help.
__________________
Test server native since day 1
Currently working on:
Serenity UI Suite
Take a look and give feedback!
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:57 AM.


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