ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Superslayer on February 01, 2009, 10:01:14 AM

Title: Calling a script, and my menu disappears
Post by: Superslayer on February 01, 2009, 10:01:14 AM
Well, like in the title, I have a script that uses a menu and remains up until you're done running it and whatnot.  However, when I call another script, my menu disappears and the called scripts' menu shows up.  That good and bad.  I need both script menus up. I'm calling the TM_IDOC_locator16 script and it'd be great to have them both running and both showing their menu.  It's quite essential to my script.  Is there a way for this to happen?  What kind of changes are/would be needed?

There will probably be at least 2 more called scripts not including the idoc locater that will have menu's, and those too will be very necessary to have open along with my own.
Title: Re: Calling a script, and my menu disappears
Post by: TrailMyx on February 01, 2009, 10:14:56 AM
That's the problem with EUO.  You can only have one active UI per script tab.  You can have multiple UIs in your code, but you have to actually re-create it each time you want to display it.  Actually, I have the provisions in SUO for many active UI windows.  :)
Title: Re: Calling a script, and my menu disappears
Post by: Superslayer on February 01, 2009, 10:17:44 AM
That's beautiful to know TM.  Even more reason for me to love this site.  However,...ACK!! now I gotta work on parts of my script that I know I'm gonna dread !!  Hehe,..that's ok, needs to be done :P :D :o ::) :-\
Title: Re: Calling a script, and my menu disappears
Post by: TrailMyx on February 01, 2009, 10:50:25 AM
That's one of those scripts I was going to put together is a framework that will manage multiple menus for you.  Just have too many projects... ;)
Title: Re: Calling a script, and my menu disappears
Post by: Superslayer on February 01, 2009, 10:52:12 AM
*plus one Karma for TrailMyx*