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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Jan 10, 2009 7:50 pm   

[237] Problem encountered renaming a variable.
 
If one attempts to rename a variable to an existing name, a dialog box appears giving one 3 choices: Rename to a new name, delete the variable, or cancel the operation.
The problem arises when one attempts to cancel the operation. Pressing Cancel dismisses the dialog box, bot it does not cancel the operation. No matter what one attempts to do within the editor, the dialog box will reappear insisting that an action be taken regarding the renaming operation. If this is the proper function of Cancel, then, perhaps, a different label for the button should be used. The button could also be removed altogether since using it has no net effect.
_________________
Sic itur ad astra.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 12, 2009 6:20 pm   
 
It's doing exactly what it is supposed to...cancelling the dialog box and allowing you to fix the problem yourself. You should be able to rename the variable yourself after clicking cancel, or click the Cancel Changes button in the editor panel to revert the name to it's previous value. But if you were attempting to click on a different setting, then you won't be able to view another setting until you deal with the problem. You are not allowed to have two variables in the same class with the same name and CMUD isn't going to let you do much until you fix the issue.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Tue Jan 13, 2009 7:05 am   
 
I understand why it is doing what it is doing. My point is that by canceling the operation I am saying that I no longer want to rename the setting, I want to keep the old name. But that is no longer possible since the Editor insists that I give it a new name. I expected that Cancel would work the same as ESC in the Windows rename operation where pressing that button cancels the operation and the item retains its old name.
_________________
Sic itur ad astra.
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Jan 13, 2009 5:38 pm   
 
The dialog box that is being shown has no idea what the "old name" is. So it has no way to restore that. When the dialog is cancelled, you are allowed to change the name back in the editor. You can click the Cancel Changes button in the editor to restore the old values of the setting that you are editing. The Cancel on the Dialog box that you mentioned doesn't do this automatically because doing a "Cancel Changes" will undo *all* changes that you made to the setting, and not just the name. And people would be upset if they lost their script edits because of this. So CMUD forces you to deal with cancelling the changes yourself.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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