mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Add Buff UI (visuals only/commented out)
This commit is contained in:
@@ -43,6 +43,8 @@ local table_helpers = require("MHR_Overlay.Misc.table_helpers");
|
||||
local unicode_helpers = require("MHR_Overlay.Misc.unicode_helpers");
|
||||
local part_names = require("MHR_Overlay.Misc.part_names");
|
||||
|
||||
--local buffs = require("MHR_Overlay.Buffs.buffs");
|
||||
|
||||
local players = require("MHR_Overlay.Damage_Meter.players");
|
||||
local non_players = require("MHR_Overlay.Damage_Meter.non_players");
|
||||
local damage_hook = require("MHR_Overlay.Damage_Meter.damage_hook");
|
||||
@@ -63,6 +65,7 @@ local large_monster_UI = require("MHR_Overlay.UI.Modules.large_monster_UI");
|
||||
local small_monster_UI = require("MHR_Overlay.UI.Modules.small_monster_UI");
|
||||
local time_UI = require("MHR_Overlay.UI.Modules.time_UI");
|
||||
local env_creature_UI = require("MHR_Overlay.UI.Modules.env_creature_UI");
|
||||
--local buff_UI = require("MHR_Overlay.UI.Modules.buff_UI");
|
||||
|
||||
local body_part_UI_entity = require("MHR_Overlay.UI.UI_Entities.body_part_UI_entity");
|
||||
local damage_UI_entity = require("MHR_Overlay.UI.UI_Entities.damage_UI_entity");
|
||||
@@ -71,6 +74,7 @@ local stamina_UI_entity = require("MHR_Overlay.UI.UI_Entities.stamina_UI_entity"
|
||||
local rage_UI_entity = require("MHR_Overlay.UI.UI_Entities.rage_UI_entity");
|
||||
local ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
|
||||
local ailment_buildup_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_buildup_UI_entity");
|
||||
--local buff_UI_entity = require("MHR_Overlay.UI.UI_Entities.buff_UI_entity");
|
||||
|
||||
local customization_menu = require("MHR_Overlay.UI.customization_menu");
|
||||
local label_customization = require("MHR_Overlay.UI.Customizations.label_customization");
|
||||
@@ -108,6 +112,9 @@ rage_UI_entity.init_module();
|
||||
ailment_UI_entity.init_module();
|
||||
ailment_buildup_UI_entity.init_module();
|
||||
body_part_UI_entity.init_module();
|
||||
--buff_UI_entity.init_module();
|
||||
|
||||
--buffs.init_module();
|
||||
|
||||
damage_hook.init_module();
|
||||
players.init_module();
|
||||
@@ -148,6 +155,7 @@ large_monster_UI.init_module();
|
||||
small_monster_UI.init_module();
|
||||
time_UI.init_module();
|
||||
env_creature_UI.init_module();
|
||||
--buff_UI.init_module();
|
||||
|
||||
keyboard.init_module();
|
||||
|
||||
@@ -162,7 +170,7 @@ local function draw_modules(module_visibility_config, flow_state_name)
|
||||
if module_visibility_config.small_monster_UI and config.current_config.small_monster_UI.enabled then
|
||||
local success = pcall(small_monster_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Small monster drawing function threw an exception", flow_state_name);
|
||||
customization_menu.status = string.format("[%s] Small Monster UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end
|
||||
|
||||
@@ -178,30 +186,37 @@ local function draw_modules(module_visibility_config, flow_state_name)
|
||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Large Monster drawing function threw an exception", flow_state_name);
|
||||
customization_menu.status = string.format("[%s] Large Monster UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.time_UI.enabled and module_visibility_config.time_UI then
|
||||
local success = pcall(time_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Time Drawing function threw an exception", flow_state_name);
|
||||
customization_menu.status = string.format("[%s] Time UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
||||
local success = pcall(damage_meter_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Damage Meter drawing function threw an exception", flow_state_name);
|
||||
customization_menu.status = string.format("[%s] Damage Meter UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
||||
local success = pcall(env_creature_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Endemic Life drawing function threw an exception", flow_state_name);
|
||||
customization_menu.status = string.format("[%s] Endemic Life UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end
|
||||
|
||||
--[[if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
||||
local success = truepcall(buff_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = string.format("[%s] Buff UI Drawing Function threw an Exception", flow_state_name);
|
||||
end
|
||||
end]]
|
||||
end
|
||||
|
||||
local function main_loop()
|
||||
@@ -225,24 +240,32 @@ local function main_loop()
|
||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||
if not success then
|
||||
customization_menu.status = "[In Training Area] Large monster drawing function threw an exception";
|
||||
customization_menu.status = "[In Training Area] Large Monster UI Drawing Function threw an Exception";
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.damage_meter_UI.enabled and module_visibility_config.damage_meter_UI then
|
||||
local success = pcall(damage_meter_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = "[In Training Area] Damage meter drawing function threw an exception";
|
||||
customization_menu.status = "[In Training Area] Damage Meter UI Drawing Function threw an Exception";
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.endemic_life_UI.enabled and module_visibility_config.endemic_life_UI then
|
||||
local success = pcall(env_creature_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = "[In Training Area] Endemic life drawing function threw an exception";
|
||||
customization_menu.status = "[In Training Area] Endemic Life UI Drawing Function threw an Exception";
|
||||
end
|
||||
end
|
||||
|
||||
--[[if config.current_config.buff_UI.enabled and module_visibility_config.buff_UI then
|
||||
local success = pcall(buff_UI.draw);
|
||||
if not success then
|
||||
customization_menu.status = "[In Training Area] Buff UI Drawing Function threw an Exception";
|
||||
end
|
||||
end]]
|
||||
|
||||
|
||||
elseif quest_status.flow_state == quest_status.flow_states.CUTSCENE then
|
||||
draw_modules(config.current_config.global_settings.module_visibility.cutscene, "Cutscene");
|
||||
elseif quest_status.flow_state == quest_status.flow_states.LOADING_QUEST then
|
||||
|
||||
Reference in New Issue
Block a user