Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Sat Oct 27, 2007 7:45 pm   

[2.09] Another Editor-DB synchronization issue
 
Another problem with synchronization - this time with my beloved buttons.

All steps except 8 can be performed in the untitled session.

1) Open CMUD, hit Esc, open the editor.
2) Create a button, give it any caption you like.
3) Switch button type to Toggle (you may switch to Multistate as well), switch to Options tab (this will add "State 1" row in the Tree view), but do not type anything for newly created State 1. Instead, click on the button name in the tree or on any other setting in the tree view. The "State 1" row will be removed from the tree view (CMUD consider that user has changed his mind and do not want the button to have an additional state).
4) Select New->Add New Button state to add second button state again. I must point that at first time it is very hard, may be impossible, to realize that you can add a new button state from the New drop-down button, because at normal conditions that menu item is not visible and people may be just not aware of its existence. Ok, add new button state and again, do not type anything, just click on any other setting in tree view to remove "State 1" row from the tree.
5) Repeat step 4 as many times as you want, but even 1 time is enough.

6) Switch to XML tab and see garbage left from each step 4 repetition (<state color="black"></state>...)
7) Now add second button state for true and choose any color you like. Close the editor and test your button. You will see that in the new state the button has black background no matter what color you chose.

8) This step can't be performed in the untitled session, because it requires CMUD restart. After restart, if you tried to do all the steps in your session, not in the untitled, you will see that in DB all settings was stored correctly, without any garbage. So there is a issue on how the Editor handles adding/removing button states from cache.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Oct 29, 2007 8:53 pm   
 
OK, I think I fixed the main problem here. The main problem is that CMUD isn't supposed to delete the button state in step 3. Blank button states are allowed, so I have fixed that.
Quote:
I must point that at first time it is very hard, may be impossible, to realize that you can add a new button state from the New drop-down button, because at normal conditions that menu item is not visible and people may be just not aware of its existence

Why isn't the New button visible? It should always be on the toolbar. You can also use the New submenu in the Edit menu.

Anyway, I also found that if you manually delete a button state (right-click and delete), then you still end up with the same garbage XML state, so you are correct that it isn't deleting the button state from the cache properly. I've added that to the bug list too.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Oct 30, 2007 6:13 am   
 
I think he means how the options on the New menu for trigger and button states aren't there until you have a trigger or a button selected and click the menu. Someone (especially someone expecting a format similar to zMUD, where trigger states are on a tab of the original trigger) might be confused as to how they create a new state.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)

Last edited by Fang Xianfu on Tue Oct 30, 2007 11:32 am; edited 1 time in total
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Tue Oct 30, 2007 6:58 am   
 
Someone... Confused First time I was confused myself so much that I wrote a message to support.

Thanks, Fang, you've find the right words to make it clear... as always. Mr. Green
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Tue Oct 30, 2007 4:30 pm   
 
I suggest not to hide "Add new state" menu item but rather set its Enabled or like property to false (grayed).
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Oct 30, 2007 9:00 pm   
 
Ahh, ok, I see what you are saying. I supposed I could make the menu option visible and just disable it (and change it to something generic like "Add new child state" when you aren't editing a trigger or button).
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net