Closed benloh closed 1 year ago
In GitLab by @daveseah on Jul 30, 2022, 24:13
added 1 commit
In GitLab by @daveseah on Jul 30, 2022, 18:59
added 1 commit
added 3 commits
This probably should be fixed in a new merge request.
untitled
is showing up as a blueprint -- If a ScriptEditor is already open to a script, and Main changes projects, ScriptEditor remains on the old character. If you then edit an objref on the script, untitled
will show up as a blueprint. Solution is probably to force ScriptEditor reload when Main reloads? CharController needs to reload too.I've added / fixed a few things:
1) select empty line, then 2) select line number results in Uncaught TypeError: Cannot read properties of undefined (reading 'gsType') at SlotEditor_Block.render (SlotEditor_Block.jsx:214:42)
-- fix was to check for helpDict
before trying to reference helpDict.gsType
.
Expand help text by default -- assume novice use, rather than expert user
Replaced placeholder "prop" keyword help being displayed in Slot Editor with a generic Slot Editor help.
marked this merge request as ready
mentioned in commit 778f320a393870d24b979d8f2ddcb808d9f9a1d4
In GitLab by @daveseah on Jul 29, 2022, 23:43
Merges dev-sri/slot-editor-fixes -> dev-next
This merge request expands the help system as well as fixes some bugs
WHAT'S NEW
symbol-interpreter
make use of a new help dictionary calledcodex-gsargs.yaml
so they can be customized without editing this very finicky piece of code.method
dict name insertion, so no need to addname
to methodSig structures that are defined inside amethod
dictThere has been some significant cleanup and commenting of the various
*_Block
React components while inserting these new help strings.WHAT'S MISSING
We do not yet have the following help:
These features might be better documented in the Wiki. New GUI is required to be able to display this strings as rollovers or in a pop-up window. Or possibly reusing the DEVELOPER SYMBOL window at the bottom right.
TESTING
This should not break any script runtimes, though it is possible that there are still some validation errors. Please note that the help system does not try to trap system or syntax errors; it is just a way to report better context-sensitive text. It may be used by a future error management solution, of course, to display the appropriate help strings.
DICTIONARY FILES
These are the dictionary files that are currently in use. They're all under
src/app/help/
:gsArg
in validation tokens inclass-symbol-interpreter
Researchers may change the text in these files to experiment with wording. You can ensure that the YAML validates using the Prettier extension in Visual Studio Code if you have installed the recommended files in our workspace settings.