Add posibility to change the template that the editor script is using. #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I often find myself using the editor script to setup a monarch scene then open up the gui scene/script and add a bunch of "defaults" that I always have. These are often a few fonts a texture and some layers and in the case of the script utility/gui modules.
Now I am tired of it, so I thought that it could be a good idea for the user to extend/change the template that the script.
The idea is that a user could create their template, open it as a text and copy it and use it as the return string.
(I also changed
gui_script_content
(and renamed it togui_script_template
) to be a function and thus use the same pattern as the other templates)Am of course open to alternatives if you have a better idea how the user can setup/supply templates.