Better editing for talk node keys #548
Reference in New Issue
Block a user
No description provided.
Delete Branch "talk-keys"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a more involved change than anything in my other scenedit PR.
I really don't like the way the 2 talk node keys are handled in the editor. Filling the fields with 4 spaces, expecting the designer to delete them and put in 4 other characters... just awkward. Also, 'purc' is impossible to remember and I never will.
New behavior is:
" ". If this is not harmless to the game logic, then I'll need to make the game aware that either key might be" ".And I just realized we might as well de-capitalize letters automatically. So that's done.
Copy/Paste is something worth making sure can't violate the new maxChars limit in field.cpp
I just tested copy/paste on Mac in the max-chars fields... and discovered that copy/paste isn't working in any text field. So I'll make a note of that somewhere else.
@@ -93,0 +93,4 @@/// Setting maxChars AFTER the player has a chance to type in the field would be a bad idea./// So would calling setText() with a string longer than maxChars./// Really, it should probably only be set in xml, as the attribute "max-chars".int maxChars = -1;I wouldn't call it a priority to have a runtime setter for
maxChars, but I don't think it's something that's difficult to do – it could just truncate the current text to the new maximum length. Similarly,setText()could truncate the text to the current maximum length.