Author Topic: Menu Question  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

Offline KilroyIsDeadTopic starter

  • Full Member
  • ***
  • Posts: 155
  • Activity:
    0%
  • Reputation Power: 2
  • KilroyIsDead has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
Menu Question
« on: May 17, 2009, 07:51:26 AM »
0
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
Give a man a fire, he'll be warm the rest of the night;
Set a man afire, he'll be warm the rest of his life.

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: Menu Question
« Reply #1 on: May 17, 2009, 08:28:12 AM »
0
nope ;*(

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Menu Question
« Reply #2 on: May 17, 2009, 09:36:46 AM »
0
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

Offline KilroyIsDeadTopic starter

  • Full Member
  • ***
  • Posts: 155
  • Activity:
    0%
  • Reputation Power: 2
  • KilroyIsDead has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
Re: Menu Question
« Reply #3 on: May 17, 2009, 10:37:36 AM »
0
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.




There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Mining Storage.jpg
Give a man a fire, he'll be warm the rest of the night;
Set a man afire, he'll be warm the rest of his life.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Question
« Reply #4 on: May 17, 2009, 10:41:48 AM »
0
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
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline KilroyIsDeadTopic starter

  • Full Member
  • ***
  • Posts: 155
  • Activity:
    0%
  • Reputation Power: 2
  • KilroyIsDead has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
Re: Menu Question
« Reply #5 on: May 17, 2009, 10:55:10 AM »
0
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.
Give a man a fire, he'll be warm the rest of the night;
Set a man afire, he'll be warm the rest of his life.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Question
« Reply #6 on: May 17, 2009, 11:17:52 AM »
0
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.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: