|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Thu Jun 04, 2009 8:19 pm
[3.08] (Not a bug) Pasting buttons |
When you copy-pasting buttons CMUD shifts priorities for the original button and all of its clones. Visually, if you have auto-arrangement of buttons, cloned button will be placed before the source button, but newly creadted via New-Button... will be placed after. What is this done for?
Interestingly, clones have priority step = 1 while internally CMUD keeps increase priority counter by 10 with each pasted copy.
In the untitled session:
1) Create a button Clone
2) Right-click on it the tree, Copy
3) Rename the button to "Source"
4) Press Ctrl+V several times
5) Add manually a new button to see CMUD priority counter value revealed. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 08, 2009 5:16 pm |
When you Paste *any* setting, CMUD checks to see if an existing setting has a matching Priority number. If a conflict is detected, CMUD modifies the existing setting with a new priority (+10 to the old value) and then recursively checks for any additional conflicts.
So yes, when Pasting, any settings with the same priority will get "moved down" in the priority list. That is just how Pasting works and it's not just for buttons, it's for anything.
Adding a "New" setting is different: CMUD takes the current maximum priority value in the database, adds 10, and makes this the priority of the new setting. So new settings get added to the end of the priority list. The difference for buttons and triggers is that when adding a new setting via the settings editor, the priority value of the new setting is taken from the currently selected setting, plus 10. So yes, a New button will get added *after* the currently selected button, rather than being put at the complete bottom of the button list.
This behavior is not likely to change. |
|
|
|
|
|
|
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
|
|