ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: KilroyIsDead on May 17, 2009, 07:51:26 AM

Title: Menu Question
Post by: KilroyIsDead on May 17, 2009, 07:51:26 AM
Can a single tab in EUO have more than one window?

I call another script that manages a menu, but then when I try to create a window in the main application it kills the other menu
Title: Re: Menu Question
Post by: OMGBurgers on May 17, 2009, 08:28:12 AM
nope ;*(
Title: Re: Menu Question
Post by: rana70 on May 17, 2009, 09:36:46 AM
OMGBurgers is right, you can only have one window per running script.

What I usually do to get around this limitation ..
I change the size of this window ..
eg to provide less or more options within the single display...

Like .. have a Setup Button in the small regular display ...
and if someone needs the extra Buttons/Funtctions...
I extend the Display... until the user finished with this extra part ...

cu 

cu
Title: Re: Menu Question
Post by: KilroyIsDead on May 17, 2009, 10:37:36 AM
I like the ideas.  I'm already managing the window size dynamically, But I was looking to have a suite of menus.

They are mostly resource gathering and crafter resoure management.  BUt I wanted to be able to have separate windows for Mining resources one for lumber yard stuff and one for tailoring needs.

Here's a sample of the Ore Storage...

I grouped the resources into 4 groups Ore, the raw stuff out of the mine, Ingots, Granite, and Gems which are the recipe gems + black rock.  The tool keeps track of inventory and in the future will create or break down commodity deeds and the like.



Title: Re: Menu Question
Post by: TrailMyx on May 17, 2009, 10:41:48 AM
You should check out my list handling subs.  With these you can dynamically add to/delete from, sort, copy information within lists.  You can use them as either a ListBox or ComboBox, or not have them associated with anything on-screen, and can just manage internal lists.

http://www.scriptuo.com/index.php?topic=21.0;highlight=list+handling
Title: Re: Menu Question
Post by: KilroyIsDead on May 17, 2009, 10:55:10 AM
I'll look into that.

I'm decomposing the interaction between Claw and heartwood, That's what I really need to do, but I feel like there needs to be a semiphore so that two clients don't try to access the same resource at any given time.  This should reduce client crashes.
Title: Re: Menu Question
Post by: TrailMyx on May 17, 2009, 11:17:52 AM
Whenever I need to manage inter-script communication, I just establish a global namespace.  Since global namespaces are available to any script tab running in a specific instance of EUO, this is the easiest method and will definitely satisfy your need for semaphore communication.  Also a great idea is to put in check to make sure you aren't lifting anything, targeting anything, or frozen doing something.

I use the list manager in my stats builder if you need an example of the code in use.