2 Commits

Author SHA1 Message Date
GreenComfyTea
67e0e6db6b Update Highlighted Monster every frame 2023-08-20 09:29:50 +03:00
GreenComfyTea
e79660010b Don't display Monster Size if 0 2023-08-20 09:29:30 +03:00
2 changed files with 6 additions and 4 deletions

View File

@@ -1196,7 +1196,7 @@ function this.draw(monster, type, cached_config, position_on_screen, opacity_sca
monster_name_text = string.format("%s%s ", monster_name_text, monster.crown); monster_name_text = string.format("%s%s ", monster_name_text, monster.crown);
end end
if cached_config.monster_name_label.include.size and monster.size ~= -1 then if cached_config.monster_name_label.include.size and monster.size > 0 then
monster_name_text = string.format("%s#%.0f ", monster_name_text, 100 * monster.size); monster_name_text = string.format("%s#%.0f ", monster_name_text, 100 * monster.size);
end end

View File

@@ -55,6 +55,8 @@ local get_tg_camera_method = gui_manager_type_def:get_method("get_refGuiHud_TgCa
local tg_camera_type_def = get_tg_camera_method:get_return_type(); local tg_camera_type_def = get_tg_camera_method:get_return_type();
local get_targeting_enemy_index_field = tg_camera_type_def:get_field("OldTargetingEmIndex"); local get_targeting_enemy_index_field = tg_camera_type_def:get_field("OldTargetingEmIndex");
local large_monster_list = {};
local displayed_dynamic_monsters = {}; local displayed_dynamic_monsters = {};
local displayed_static_monsters = {}; local displayed_static_monsters = {};
local highlighted_monster = nil; local highlighted_monster = nil;
@@ -67,7 +69,7 @@ function this.update(dynamic_enabled, static_enabled, highlighted_enabled)
return; return;
end end
local large_monster_list = {}; large_monster_list = {};
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
@@ -96,8 +98,6 @@ function this.update(dynamic_enabled, static_enabled, highlighted_enabled)
::continue:: ::continue::
end end
this.update_highlighted_monster(large_monster_list, cached_config.highlighted.auto_highlight);
if dynamic_enabled then if dynamic_enabled then
this.update_dynamic_monsters(large_monster_list, cached_config); this.update_dynamic_monsters(large_monster_list, cached_config);
end end
@@ -306,6 +306,8 @@ end
function this.draw(dynamic_enabled, static_enabled, highlighted_enabled) function this.draw(dynamic_enabled, static_enabled, highlighted_enabled)
local cached_config = config.current_config.large_monster_UI; local cached_config = config.current_config.large_monster_UI;
this.update_highlighted_monster(large_monster_list, cached_config.highlighted.auto_highlight);
if dynamic_enabled then if dynamic_enabled then
local success = pcall(this.draw_dynamic, cached_config); local success = pcall(this.draw_dynamic, cached_config);
if not success then if not success then