This is a quickly thrown together version of architecture/changes for feature which will allow users to edit template while currently used profile is being applied to the character. Something might be missing or overlooked.
The feature is up for grabs to anyone willing to work on it.
- Add checkbox into template editor which allows choosing if currently active profile should be applied in editor
- Checkbox value should be saved in configuration.
- Changing the toggle should apply changes in realtime without losing current template edits.
- When this toggle is enabled the entire right panel in "Profiles" menu should be locked, right now only "Enabled" checkbox is locked.
- Unlocking of "Enabled" option can be considered instead to allow user to switch between profiles during editing but this should be thoroughly tested and needs to be handled by
TemplateEditorManager (will likely need to listen to profile changes events and rebuild EditorProfile while not resetting CurrentlyEditedTemplate)
- Checkbox changing should call
TemplateChanged event with new types ActiveProfileApplicationEnabled and ActiveProfileApplicationDisabled based on the value of checkbox.
- All of the code handling
TemplateChanged events should be altered to handle those 2 new events properly.
- When entering editor/enabling the toggle/changing editor character
TemplateEditorManager should add all of the templates from profile currently affecting the editor character into the EditorProfile. CurrentlyEditedTemplate should be added at the end of the list to override any values provided by profile templates.
- When disabling the toggle
TemplateEditorManager should only keep CurrentlyEditedTemplate in the templates of EditorProfile.
This is a quickly thrown together version of architecture/changes for feature which will allow users to edit template while currently used profile is being applied to the character. Something might be missing or overlooked.
The feature is up for grabs to anyone willing to work on it.
TemplateEditorManager(will likely need to listen to profile changes events and rebuildEditorProfilewhile not resettingCurrentlyEditedTemplate)TemplateChangedevent with new typesActiveProfileApplicationEnabledandActiveProfileApplicationDisabledbased on the value of checkbox.TemplateChangedevents should be altered to handle those 2 new events properly.TemplateEditorManagershould add all of the templates from profile currently affecting the editor character into theEditorProfile.CurrentlyEditedTemplateshould be added at the end of the list to override any values provided by profile templates.TemplateEditorManagershould only keepCurrentlyEditedTemplatein the templates ofEditorProfile.