Skip to content

Commit 1e4fcb7

Browse files
committed
feat: ✨ updated for modloader v6.2.0
1 parent e59505e commit 1e4fcb7

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

root/mods-unpacked/GodotModding-UserProfile/content/components/IsActiveToggle.tscn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ anchor_bottom = 1.0
88
script = ExtResource( 1 )
99

1010
[connection signal="pressed" from="." to="." method="_on_IsActiveToggle_pressed"]
11+
[connection signal="toggled" from="." to="." method="_on_IsActiveToggle_toggled"]

root/mods-unpacked/GodotModding-UserProfile/manifest.json

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,33 @@
44
"version_number": "0.2.0",
55
"description": "Example Mod for User Profiles",
66
"website_url": "https://github.com/GodotModding",
7-
"dependencies": [],
7+
"dependencies": [
8+
9+
],
810
"extra": {
911
"godot": {
1012
"authors": [
1113
"GodotModding"
1214
],
13-
"optional_dependencies": [],
14-
"compatible_game_version": [],
15+
"optional_dependencies": [
16+
17+
],
18+
"compatible_game_version": [
19+
20+
],
1521
"compatible_mod_loader_version": [
1622
"6.0.0"
1723
],
18-
"incompatibilities": [],
19-
"load_before": [],
20-
"tags": [],
24+
"incompatibilities": [
25+
26+
],
27+
"load_before": [
28+
29+
],
30+
"tags": [
31+
"test1",
32+
"test2"
33+
],
2134
"config_schema": {
2235
"$schema": "https://json-schema.org/draft/2020-12/schema",
2336
"title": "Config",
@@ -36,7 +49,7 @@
3649
"square_scale": {
3750
"type": "number",
3851
"title": "Square Scale",
39-
"minimum": 0.0,
52+
"minimum": 0,
4053
"maximum": 0.3,
4154
"multipleOf": 0.001,
4255
"default": 0.1
@@ -49,16 +62,16 @@
4962
"blur_amount": {
5063
"type": "number",
5164
"title": "Blur Amount",
52-
"minimum": 0.0,
53-
"maximum": 10.0,
65+
"minimum": 0,
66+
"maximum": 10,
5467
"multipleOf": 0.1,
5568
"default": 5.1
5669
},
5770
"mix_amount": {
5871
"type": "number",
5972
"title": "Mix Amount",
60-
"minimum": 0.0,
61-
"maximum": 1.0,
73+
"minimum": 0,
74+
"maximum": 1,
6275
"multipleOf": 0.01,
6376
"default": 0.71
6477
},

root/mods-unpacked/GodotModding-UserProfile/mod_main.gd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ var translations_dir_path := ""
1111
onready var user_profile_dialog = load("res://mods-unpacked/GodotModding-UserProfile/content/UserProfiles.tscn").instance()
1212

1313

14-
func _init(modLoader = ModLoader) -> void:
14+
func _init() -> void:
1515
ModLoaderLog.info("Init", GodotModding_User_Profile_LOG_NAME)
1616
mod_dir_path = ModLoaderMod.get_unpacked_dir().plus_file(GodotModding_User_Profile_MOD_DIR)
1717

1818
# Add extensions
19-
install_script_extensions(modLoader)
19+
install_script_extensions()
2020

2121
# Add translations
22-
add_translations(modLoader)
22+
add_translations()
2323

2424

25-
func install_script_extensions(modLoader) -> void:
25+
func install_script_extensions() -> void:
2626
extensions_dir_path = mod_dir_path.plus_file("extensions")
2727

2828

29-
func add_translations(modLoader) -> void:
29+
func add_translations() -> void:
3030
translations_dir_path = mod_dir_path.plus_file("translations")
3131

3232

0 commit comments

Comments
 (0)