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

Edit Templates with data, after mod directory is created #44

Open
KANAjetzt opened this issue Mar 19, 2023 · 3 comments
Open

Edit Templates with data, after mod directory is created #44

KANAjetzt opened this issue Mar 19, 2023 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@KANAjetzt
Copy link
Member

Create an easy way to make templates variable.

For mod_main.gd:

const MOD_DIR := "AuthorName-ModName" 
const MODNAME_LOG_NAME := "AuthorName-ModName
const {%MOD_NAME%}_MOD_DIR := "{%NAMESPACE%}-{%NAME%}" 
const {%MOD_NAME%}_LOG_NAME := "{%NAMESPACE%}-{%NAME%}"
@KANAjetzt KANAjetzt added the enhancement New feature or request label Mar 19, 2023
@KANAjetzt KANAjetzt added this to the v.1.1.0 milestone Mar 19, 2023
@Qubus0
Copy link
Collaborator

Qubus0 commented Apr 7, 2023

godot will complain about these files not following the correct syntax, so maybe we should not use the .gd extension. we could use .gd.template or something similar. that means it can't be opened in godot anymore though

@KANAjetzt
Copy link
Member Author

I'm thinking that templates can include an init_template.gd script that gets executed by the Dev Tool if it exists.

@Qubus0
Copy link
Collaborator

Qubus0 commented Jul 15, 2023

yep that sounds good. i also figured out a way to stop godot from complaining. adding an empty file named .gdignore to a directory will exclude it from the whole editor. the downside would be that those templates can't be edited in the editor after that, but that should be fine since the templates A) won't be edited much and B) can just be edited in vsc and such

@KANAjetzt KANAjetzt modified the milestones: 3.x - v0.2.0, 3.x - v0.x Nov 30, 2024
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

No branches or pull requests

2 participants