fix bugs with editor and multiple mods
This commit is contained in:
parent
768bf2fda4
commit
1f0ca6286a
2 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ func _ready():
|
||||||
moddir.list_dir_begin()
|
moddir.list_dir_begin()
|
||||||
for file: String in moddir.get_files():
|
for file: String in moddir.get_files():
|
||||||
if (!file.ends_with(".pck")): return
|
if (!file.ends_with(".pck")): return
|
||||||
ProjectSettings.load_resource_pack("user://Mods/%s" % file, true)
|
ProjectSettings.load_resource_pack("user://Mods/%s" % file)
|
||||||
|
|
||||||
var dir = DirAccess.open("res://LoadedModContent/ModManifest")
|
var dir = DirAccess.open("res://LoadedModContent/ModManifest")
|
||||||
if dir == null:
|
if dir == null:
|
||||||
|
@ -36,7 +36,7 @@ func _ready():
|
||||||
if (Stages.loaded_mods.get(modManifest.ModInfo["mod_name"]) != null):
|
if (Stages.loaded_mods.get(modManifest.ModInfo["mod_name"]) != null):
|
||||||
if (tempLoadedList.find(modManifest.ModInfo["mod_name"]) == -1):
|
if (tempLoadedList.find(modManifest.ModInfo["mod_name"]) == -1):
|
||||||
$ModsScreen/DialogPanel/ModList.add_item(modManifest.ModInfo["mod_name"], null, true)
|
$ModsScreen/DialogPanel/ModList.add_item(modManifest.ModInfo["mod_name"], null, true)
|
||||||
return
|
continue
|
||||||
Stages.loaded_mods[modManifest.ModInfo["mod_name"]] = modManifest.ModInfo
|
Stages.loaded_mods[modManifest.ModInfo["mod_name"]] = modManifest.ModInfo
|
||||||
for stage in modManifest.ModInfo["implements_stages"]:
|
for stage in modManifest.ModInfo["implements_stages"]:
|
||||||
Stages.stages_info[stage] = modManifest.ModInfo["implements_stages"][stage]
|
Stages.stages_info[stage] = modManifest.ModInfo["implements_stages"][stage]
|
||||||
|
|
|
@ -26,10 +26,10 @@ func _ready() -> void:
|
||||||
in_flow = flow_control.in_value
|
in_flow = flow_control.in_value
|
||||||
out_flow = flow_control.out_value
|
out_flow = flow_control.out_value
|
||||||
|
|
||||||
func _update_in_flow(new_value: float) -> void:
|
func _update_in_flow(new_value: float, _internal_id) -> void:
|
||||||
in_flow = new_value
|
in_flow = new_value
|
||||||
|
|
||||||
func _update_out_flow(new_value: float) -> void:
|
func _update_out_flow(new_value: float, _internal_id) -> void:
|
||||||
out_flow = new_value
|
out_flow = new_value
|
||||||
|
|
||||||
func _on_button_button_down() -> void:
|
func _on_button_button_down() -> void:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue