EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Problems using dummy pages for positioning (https://www.eq2interface.com/forums/showthread.php?t=4951)

Agathorn 11-24-2005 11:39 AM

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.

depechenode 11-24-2005 11:56 AM

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.

Agathorn 11-24-2005 01:40 PM

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 :(

depechenode 11-24-2005 02:51 PM

Then just add a Hide_Window command (twice) after the two Show commands in the event.

Agathorn 11-24-2005 03:52 PM

That is what I had done but the windows showed and never hid. I'll try it again I guess.

Agathorn 11-24-2005 07:28 PM

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 :p

Thanks for your help.


All times are GMT -5. The time now is 03:36 PM.

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