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

@@ -165,7 +165,7 @@ function this.update_timer(buff, timer)
end
end
function this.init_module()
function this.init_dependencies()
config = require("MHR_Overlay.Misc.config");
buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
singletons = require("MHR_Overlay.Game_Handler.singletons");
@@ -178,4 +178,8 @@ function this.init_module()
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
end
function this.init_module()
time.new_timer(this.update, 0.5);
end
return this;

View File

@@ -400,7 +400,7 @@ function this.init_names()
end
end
function this.init_module()
function this.init_dependencies()
buffs = require("MHR_Overlay.Buffs.buffs");
config = require("MHR_Overlay.Misc.config");
utils = require("MHR_Overlay.Misc.utils");
@@ -410,4 +410,7 @@ function this.init_module()
language = require("MHR_Overlay.Misc.language");
end
function this.init_module()
end
return this;

View File

@@ -145,7 +145,7 @@ function this.init_names()
end
end
function this.init_module()
function this.init_dependencies()
buffs = require("MHR_Overlay.Buffs.buffs");
config = require("MHR_Overlay.Misc.config");
utils = require("MHR_Overlay.Misc.utils");
@@ -155,4 +155,7 @@ function this.init_module()
language = require("MHR_Overlay.Misc.language");
end
function this.init_module()
end
return this;