Skip to content

feat: ✨ Advanced Mod Configs #237

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2a1d2f0
feat: :sparkles: Added `JSONConfigFile` addon as submodule
KANAjetzt Apr 25, 2023
d2a4f9d
chore: :wrench: added `.gitmodules` to `.gitattributes`
KANAjetzt Apr 25, 2023
b403288
refactor: :recycle: remove `JSONConfigFile` add `JSON_Schema_Validator`
KANAjetzt Apr 26, 2023
d44b602
chore: :arrow_up: update JSON Schema Validator
KANAjetzt Apr 26, 2023
1161cf2
feat: :sparkles: added `config_schema` to `ModManifest`
KANAjetzt Apr 28, 2023
3fb703b
feat: :sparkles: Save default conifg to File
KANAjetzt Apr 29, 2023
7c70fab
refactor: :recycle: load mod config after the manifest
KANAjetzt Apr 30, 2023
00b8159
feat: :sparkles: added `get_dict_from_dict()`
KANAjetzt Apr 30, 2023
8ee8bf6
fix: :bug: only `_handle_mod_config()` if there is a schema
KANAjetzt Apr 30, 2023
8f92df8
refactor: :recycle: simplified `get_mod_config()`
KANAjetzt Apr 30, 2023
b2bd7d4
refactor: :construction: Adding `ModConfig` Resource
KANAjetzt May 1, 2023
001c170
fix: :construction: mod config loading
KANAjetzt May 2, 2023
bf590d8
chore: :bug:
KANAjetzt May 3, 2023
9661d5b
feat: :construction: wip: configs loading
KANAjetzt May 5, 2023
7bf11aa
feat: :sparkles: added `get_dir_paths_in_dir()`
KANAjetzt May 5, 2023
3004f2a
feat: :sparkles: added `get_file_paths_in_dir()`
KANAjetzt May 5, 2023
bde6d09
style: :art: added missing empty line
KANAjetzt May 5, 2023
50d4f7c
feat: :sparkles: imporved `ModConfig`
KANAjetzt May 5, 2023
c8463d8
refactor: :recycle: multiple entries per mod in `mod_list`
KANAjetzt May 6, 2023
9180396
feat: :sparkles: added `get_mod_config_schema(mod_id: String)`
KANAjetzt May 6, 2023
5c15f12
feat: :sparkles: Implemented `current_config`
KANAjetzt May 9, 2023
6f6d884
refactor: :recycle: Renamed funcs | use a dict to store configs
KANAjetzt May 10, 2023
cca7d81
feat: :sparkles: added `save_to_disc()` in `ModConfig`
KANAjetzt May 10, 2023
a1a260b
feat: :sparkles: added `get_path_to_mod_configs()`
KANAjetzt May 10, 2023
dc13807
feat: :sparkles: added `create_new_config()`
KANAjetzt May 10, 2023
e7bb813
refactor: :recycle: `set_current_config()` param changed to ModConfig
KANAjetzt May 12, 2023
1e33baa
feat: :sparkles: added `get_mods_with_config()`
KANAjetzt May 12, 2023
0cd0681
feat: :sparkles: added `current_config_changed(config)` signal
KANAjetzt May 12, 2023
de734c6
feat: :sparkles: added `remove_file(file_path: String)`
KANAjetzt May 12, 2023
229d6e6
style: :art: renamed `create_new_config` -> `create_config`
KANAjetzt May 12, 2023
a06de82
feat: :sparkles: added `delete_config()`
KANAjetzt May 12, 2023
b768006
feat: :sparkles: added `get_default_config()`
KANAjetzt May 12, 2023
a3c405c
feat: :sparkles: added `remove_from_disc()`
KANAjetzt May 12, 2023
e7ffd28
refactor: :recycle: changed `_schema` param in `_init()`
KANAjetzt May 12, 2023
a0f4863
feat: :sparkles: added `get_schema_for_prop()`
KANAjetzt May 16, 2023
51eda04
chore: :arrow_up: updated JSON_Schema_Validator
KANAjetzt May 16, 2023
bfdc3a3
refactor: :recycle: improved `schema_drill()` and renamed it
KANAjetzt May 17, 2023
c24f5f6
feat: :sparkles: added `get_path_to_mod_config_file()`
KANAjetzt May 17, 2023
0068cd3
style: :pencil2: renamed `get_path_to_mod_configs()`
KANAjetzt May 17, 2023
2aeed34
fix: :bug: update `mod_list` when loading profile
KANAjetzt May 17, 2023
56424f9
fix: :bug: Handle invalid `current_config` in a User Profile
KANAjetzt May 22, 2023
9a34f37
refactor: :recycle: `create_config()` return `ModConfig`
KANAjetzt May 22, 2023
5549dd5
feat: :sparkles: added `update_config()`
KANAjetzt May 22, 2023
28fb267
refactor: :recycle: update `is_valid` in `validate()`
KANAjetzt May 22, 2023
0f798b0
refactor: :recycle: updated `update_config(config: ModConfig)`
KANAjetzt May 22, 2023
74be55a
refactor: :recycle: don't update config if `default`
KANAjetzt May 22, 2023
b7a0613
refactor: :recycle: added `DEFAULT_CONFIG_NAME`
KANAjetzt May 22, 2023
5884f27
refactor: :recycle: load **all** mod config files
KANAjetzt May 23, 2023
6277771
refactor: :recycle: use `get_default_config()`
KANAjetzt May 23, 2023
217a0a6
chore: :arrow_up: updated `JSON_Schema_Validator`
KANAjetzt May 24, 2023
75722cb
style: :bulb: improved comments
KANAjetzt May 24, 2023
5ab546e
style: :bulb: added more comments
KANAjetzt May 24, 2023
48ddf6a
style: :bulb: comment improvements
KANAjetzt May 24, 2023
b1780d9
style: :art: moved functions around
KANAjetzt May 24, 2023
9803815
style: :bulb: improved comments in *profile.gd*
KANAjetzt May 24, 2023
c73cf54
fix: :pencil2: fixed typo in comment
KANAjetzt May 24, 2023
96da39a
fix: :bug: find and replace error
KANAjetzt May 24, 2023
3bf2234
style: :bulb: improved comments
KANAjetzt May 25, 2023
c707437
refactor: :recycle: inverted booleans in `is_valid()`
KANAjetzt May 31, 2023
274fcd6
style: :art: renamed disk -> file
KANAjetzt May 31, 2023
82840f8
style: :pencil2: updated comment to match function name
KANAjetzt May 31, 2023
4415b36
refactor: :fire: removed unused `get_dir_paths_in_dir()`
KANAjetzt May 31, 2023
f9cd639
refactor: :recycle: only load configs if defaults are valid
KANAjetzt May 31, 2023
f97d89d
feat: :sparkles: added `_ModLoaderCache`
KANAjetzt Jun 3, 2023
fc08fa6
style: :bulb: added func comments for `_ModLoaderCache`
KANAjetzt Jun 3, 2023
f8ed004
refactor: :recycle: return cache data in `add_data()`
KANAjetzt Jun 3, 2023
60c230d
refactor: :recycle: changed cache file name
KANAjetzt Jun 3, 2023
a9f5968
fix: :bug: handle non existing cache
KANAjetzt Jun 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Git stuff
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitmodules export-ignore
.github/ export-ignore
/README.md export-ignore
/CONTRIBUTING.md export-ignore
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "addons/JSONConfigFile"]
path = addons/JSON_Schema_Validator
url = https://github.com/GodotModding/JSON-Shema-validator.git
1 change: 1 addition & 0 deletions addons/JSON_Schema_Validator
Submodule JSON_Schema_Validator added at fdf164
Loading