Separate Dependency Initializations

This commit is contained in:
GreenComfyTea
2023-08-05 11:24:26 +03:00
parent 30672922c4
commit 4bdb4ee2e6
52 changed files with 284 additions and 72 deletions

View File

@@ -7716,10 +7716,12 @@ function this.update(index)
this.save_current_config_name();
end
function this.init_module()
function this.init_dependencies()
utils = require("MHR_Overlay.Misc.utils");
language = require("MHR_Overlay.Misc.language");
end
function this.init_module()
this.init_default();
this.load_current_config_value();
this.load_configs();

View File

@@ -659,9 +659,11 @@ function this.update(index)
this.current_language = this.languages[index];
end
function this.init_module()
function this.init_dependencies()
utils = require("MHR_Overlay.Misc.utils");
end
function this.init_module()
this.save_default();
this.load();
this.current_language = this.default_language;

View File

@@ -954,9 +954,11 @@ function this.get_part_name(monster_id, part_id)
return part_name;
end
function this.init_module()
function this.init_dependencies()
language = require("MHR_Overlay.Misc.language");
end
function this.init_module()
this.init();
end

View File

@@ -413,6 +413,9 @@ function this.unicode.sub(str, i, j)
return string.sub(str, i, b + c - 1);
end
function this.init_dependencies()
end
function this.init_module()
end