mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-25 12:58:06 -08:00
Uncomment Static and Dynamic Large Monster UI.
This commit is contained in:
@@ -14,7 +14,6 @@ local table_helpers = require("MHR_Overlay.Misc.table_helpers");
|
|||||||
local unicode_helpers = require("MHR_Overlay.Misc.unicode_helpers");
|
local unicode_helpers = require("MHR_Overlay.Misc.unicode_helpers");
|
||||||
local part_names = require("MHR_Overlay.Misc.part_names");
|
local part_names = require("MHR_Overlay.Misc.part_names");
|
||||||
|
|
||||||
|
|
||||||
local player = require("MHR_Overlay.Damage_Meter.player");
|
local player = require("MHR_Overlay.Damage_Meter.player");
|
||||||
local damage_hook = require("MHR_Overlay.Damage_Meter.damage_hook");
|
local damage_hook = require("MHR_Overlay.Damage_Meter.damage_hook");
|
||||||
|
|
||||||
@@ -102,8 +101,6 @@ log.info("[MHR Overlay] loaded");
|
|||||||
-- #endregion
|
-- #endregion
|
||||||
------------------------INIT MODULES-------------------------
|
------------------------INIT MODULES-------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
----------------------------LOOP-----------------------------
|
----------------------------LOOP-----------------------------
|
||||||
-- #region
|
-- #region
|
||||||
local function main_loop()
|
local function main_loop()
|
||||||
@@ -122,11 +119,13 @@ local function main_loop()
|
|||||||
|
|
||||||
if quest_status.is_training_area then
|
if quest_status.is_training_area then
|
||||||
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
||||||
config.current_config.global_settings.module_visibility.training_area.large_monster_dynamic_UI;
|
config.current_config.global_settings.module_visibility.training_area
|
||||||
|
.large_monster_dynamic_UI;
|
||||||
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
||||||
config.current_config.global_settings.module_visibility.training_area.large_monster_static_UI;
|
config.current_config.global_settings.module_visibility.training_area.large_monster_static_UI;
|
||||||
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
||||||
config.current_config.global_settings.module_visibility.training_area.large_monster_highlighted_UI;
|
config.current_config.global_settings.module_visibility.training_area
|
||||||
|
.large_monster_highlighted_UI;
|
||||||
|
|
||||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||||
@@ -161,11 +160,14 @@ local function main_loop()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
||||||
config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_dynamic_UI;
|
config.current_config.global_settings.module_visibility.quest_result_screen
|
||||||
|
.large_monster_dynamic_UI;
|
||||||
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
||||||
config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_static_UI;
|
config.current_config.global_settings.module_visibility.quest_result_screen
|
||||||
|
.large_monster_static_UI;
|
||||||
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
||||||
config.current_config.global_settings.module_visibility.quest_result_screen.large_monster_highlighted_UI;
|
config.current_config.global_settings.module_visibility.quest_result_screen
|
||||||
|
.large_monster_highlighted_UI;
|
||||||
|
|
||||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||||
@@ -208,13 +210,12 @@ local function main_loop()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
local dynamic_enabled = config.current_config.large_monster_UI.dynamic.enabled and
|
||||||
config.current_config.global_settings.module_visibility.during_quest.large_monster_dynamic_UI;
|
config.current_config.global_settings.module_visibility.during_quest.large_monster_dynamic_UI;
|
||||||
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
local static_enabled = config.current_config.large_monster_UI.static.enabled and
|
||||||
config.current_config.global_settings.module_visibility.during_quest.large_monster_static_UI;
|
config.current_config.global_settings.module_visibility.during_quest.large_monster_static_UI;
|
||||||
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
local highlighted_enabled = config.current_config.large_monster_UI.highlighted.enabled and
|
||||||
config.current_config.global_settings.module_visibility.during_quest.large_monster_highlighted_UI;
|
config.current_config.global_settings.module_visibility.during_quest
|
||||||
|
.large_monster_highlighted_UI;
|
||||||
|
|
||||||
|
|
||||||
if dynamic_enabled or static_enabled or highlighted_enabled then
|
if dynamic_enabled or static_enabled or highlighted_enabled then
|
||||||
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
local success = pcall(large_monster_UI.draw, dynamic_enabled, static_enabled, highlighted_enabled);
|
||||||
@@ -248,19 +249,19 @@ local function main_loop()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--snow.player.PlayerManager ->
|
-- snow.player.PlayerManager ->
|
||||||
-- <PlayerData>k_BackingField -> [0]
|
-- <PlayerData>k_BackingField -> [0]
|
||||||
|
|
||||||
--Demondrug _AtkUpAlive = 5 1
|
-- Demondrug _AtkUpAlive = 5 1
|
||||||
--Mega Demondrug _AtkUpAlive = 7 1
|
-- Mega Demondrug _AtkUpAlive = 7 1
|
||||||
--Armorskin _DefUpAlive = 15 1
|
-- Armorskin _DefUpAlive = 15 1
|
||||||
--Mega Armorskin _DefUpAlive = 25 1
|
-- Mega Armorskin _DefUpAlive = 25 1
|
||||||
--Might Seed _AtkUpBuffSecond and _AtkUpBuffSecondTimer 1
|
-- Might Seed _AtkUpBuffSecond and _AtkUpBuffSecondTimer 1
|
||||||
--Demon Powder _AtkUpItemSecond and _AtkUpItemSecondTimer 1
|
-- Demon Powder _AtkUpItemSecond and _AtkUpItemSecondTimer 1
|
||||||
--Adamant Seed _DefUpBuffSecond and _DefUpBuffSecondTimer 1
|
-- Adamant Seed _DefUpBuffSecond and _DefUpBuffSecondTimer 1
|
||||||
--Hardshell Powder _DefUpItemSecond and _DefUpItemSecondTimer 1
|
-- Hardshell Powder _DefUpItemSecond and _DefUpItemSecondTimer 1
|
||||||
--Dash Juice _StaminaUpBuffSecondTimer 1
|
-- Dash Juice _StaminaUpBuffSecondTimer 1
|
||||||
--Immunizer _VitalizerTimer 1
|
-- Immunizer _VitalizerTimer 1
|
||||||
|
|
||||||
-- Attack Up
|
-- Attack Up
|
||||||
-- Defense Up
|
-- Defense Up
|
||||||
@@ -501,8 +502,6 @@ end
|
|||||||
-- #endregion
|
-- #endregion
|
||||||
----------------------------D2D------------------------------
|
----------------------------D2D------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if debug.enabled then
|
if debug.enabled then
|
||||||
if d2d ~= nil then
|
if d2d ~= nil then
|
||||||
d2d.register(function()
|
d2d.register(function()
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ function large_monster_UI.draw(dynamic_enabled, static_enabled, highlighted_enab
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager);
|
local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager);
|
||||||
if enemy_count == nil then
|
if enemy_count == nil then
|
||||||
return;
|
return;
|
||||||
@@ -79,7 +78,7 @@ function large_monster_UI.draw(dynamic_enabled, static_enabled, highlighted_enab
|
|||||||
end
|
end
|
||||||
|
|
||||||
if dynamic_enabled then
|
if dynamic_enabled then
|
||||||
--large_monster_UI.draw_dynamic(displayed_monsters, highlighted_monster);
|
large_monster_UI.draw_dynamic(displayed_monsters, highlighted_monster);
|
||||||
end
|
end
|
||||||
|
|
||||||
if highlighted_enabled then
|
if highlighted_enabled then
|
||||||
@@ -87,7 +86,7 @@ function large_monster_UI.draw(dynamic_enabled, static_enabled, highlighted_enab
|
|||||||
end
|
end
|
||||||
|
|
||||||
if static_enabled then
|
if static_enabled then
|
||||||
--large_monster_UI.draw_static(displayed_monsters, highlighted_monster);
|
large_monster_UI.draw_static(displayed_monsters, highlighted_monster);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user