|
cuprohastes Wanderer
Joined: 22 Oct 2006 Posts: 92
|
Posted: Tue May 19, 2009 10:57 am
[3.07] Multi state buttons fail when global package used by multiple sessions |
1: Create a session called Test
2: Open Test offline
3: Create a MULTI STATE button called "Testbutton"
3a: Add two new states to Testbutton
3b: State 1 label is "send 1" script is
3c: State 2 label is "send 2" script is
4: Test that the button works.
5: Create a new package called "Testglobal"
6: Move Testbutton to Testglobal. Note UI change.
7: Test button.
8: Create new session called Test2 with Testglobal package enabled.
9: close CMUD
10: Open CMud and open Test and Test 2 off line
11: In the first opened session Testbutton is a working multi-state button. In the second opened session the button has no function.[/list] |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue May 19, 2009 5:11 pm |
It's actually easier to reproduce than this.
1) Create a new module (make sure it is global)
2) Drag the multistate button to the new module
3) Create a new window (#WINDOW test)
4) Notice the "Testbutton" displayed in the new "test" window doesn't have any drop-down menu.
So yes, reproduced and added to bug list. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue May 19, 2009 9:10 pm |
OK, I think I have fixed this so that each button in each window gets it's own menu.
However, keep in mind that a *shared* Multistate button is still only a SINGLE OBJECT with a single state. So if you have a shared multistate button and you select state #2, the button in all windows will show state #2. Only the CAPTION of a shared button is set up to reflect the variables within the MUD window containing the button. Things like the state Variable field doesn't currently handle being shared in multiple windows.
So in general, a shared Multistate button probably isn't going to work the way you might expect. It's still just a single button. I might be able to improve this in the future, but not for this round of beta testing, sorry. |
|
|
|
cuprohastes Wanderer
Joined: 22 Oct 2006 Posts: 92
|
Posted: Wed May 20, 2009 12:09 pm |
Actually, that will probably work.
|
|
|
|
|
|