Skip to content

[New Feature Implementation Details] Ability to keep current profile active while using template editor #79

@RisaDev

Description

@RisaDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedThis issue is up for grabs for someone else to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions