Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ Mod directory creation from template #45

Merged
merged 7 commits into from
Mar 20, 2023

Conversation

KANAjetzt
Copy link
Member

@KANAjetzt KANAjetzt commented Mar 19, 2023

  • New template directory res://addons/mod_tool/templates
  • New template res://addons/mod_tool/templates/default
  • Added a "Select Template" Button to the Export tab
  • Added a FileDialog to select a template directory
  • Updated create_mod.gd
    • Copy the selected template dir
    • Rename it to the Mod-ID
    • Open the mod_main.gd file in the script editor
    • Update the manifest.json with the mod name and namespace
    • Open the manifest editor tab

closes #31

Added `include_empty_dirs := false` to `get_flat_view_dict()` util. This also adds empty dirs to the data. Also added a default value for `path_current_template_dir` in the store.
@KANAjetzt KANAjetzt added the enhancement New feature or request label Mar 19, 2023
@KANAjetzt KANAjetzt added this to the v1.0.0 milestone Mar 19, 2023
@KANAjetzt KANAjetzt requested a review from Qubus0 March 19, 2023 21:21
@KANAjetzt KANAjetzt changed the title feat: ✨ Mod dir creation from template feat: ✨ Mod directory creation from template Mar 19, 2023
Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

addons/mod_tool/global/store.gd Outdated Show resolved Hide resolved
addons/mod_tool/interface/create_mod/create_mod.gd Outdated Show resolved Hide resolved
the mod name and namespace can be retrieved from the Manifest after it is initialized so no need to store it in the store as well.
Removed `manifest_dict` completly and manifest_dict_json from the ModToolStore. Updated `update_ui()` to use `.has()` so the `manifest_dict` is no longer needed.
@KANAjetzt KANAjetzt added this pull request to the merge queue Mar 20, 2023
@KANAjetzt KANAjetzt merged commit ab8f759 into main Mar 20, 2023
@KANAjetzt KANAjetzt deleted the mod_dir_creation_from_template branch March 20, 2023 21:25
@KANAjetzt KANAjetzt mentioned this pull request Mar 20, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mod Directory Creator
2 participants