mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 12:28:03 -08:00
?
This commit is contained in:
@@ -56,9 +56,13 @@ function damage_meter_UI.draw()
|
||||
myself_hunter_rank = 0;
|
||||
end
|
||||
|
||||
x = singletons.lobby_manager:get_field("_myselfIndex");
|
||||
|
||||
if player.list[player.myself_id] == nil then
|
||||
player.list[player.myself_id] = player.new(player.myself_id, myself_player_name, myself_hunter_rank);
|
||||
player.myself = player.list[player.myself_id];
|
||||
else
|
||||
|
||||
end
|
||||
|
||||
local quest_players = {};
|
||||
@@ -87,7 +91,6 @@ function damage_meter_UI.draw()
|
||||
|
||||
local player_id = player_info:get_field("_memberIndex");
|
||||
if player_id == nil then
|
||||
|
||||
goto continue
|
||||
end
|
||||
|
||||
@@ -176,6 +179,10 @@ function damage_meter_UI.draw()
|
||||
end
|
||||
|
||||
-- draw total damage
|
||||
if config.current_config.damage_meter_UI.settings.hide_total_if_total_damage_is_zero and player.total.display.total_damage == 0 then
|
||||
return;
|
||||
end
|
||||
|
||||
if not config.current_config.damage_meter_UI.settings.total_damage_offset_is_relative then
|
||||
position_on_screen = screen.calculate_absolute_coordinates(config.current_config.damage_meter_UI.position);
|
||||
end
|
||||
|
||||
@@ -11,7 +11,7 @@ local health_UI_entity;
|
||||
local stamina_UI_entity;
|
||||
local rage_UI_entity;
|
||||
|
||||
function large_monster_UI.draw()
|
||||
function large_monster_UI.draw(dynamic_enabled, static_enabled)
|
||||
if singletons.enemy_manager == nil then
|
||||
return;
|
||||
end
|
||||
@@ -39,7 +39,7 @@ function large_monster_UI.draw()
|
||||
table.insert(displayed_monsters, monster);
|
||||
end
|
||||
|
||||
if config.current_config.large_monster_UI.dynamic.enabled then
|
||||
if dynamic_enabled then
|
||||
local i = 0;
|
||||
for _, monster in ipairs(displayed_monsters) do
|
||||
|
||||
@@ -77,7 +77,7 @@ function large_monster_UI.draw()
|
||||
end
|
||||
end
|
||||
|
||||
if config.current_config.large_monster_UI.static.enabled then
|
||||
if static_enabled then
|
||||
-- sort here
|
||||
if config.current_config.large_monster_UI.static.sorting.type == "Normal" and config.current_config.large_monster_UI.static.sorting.reversed_order then
|
||||
local reversed_monsters = {};
|
||||
|
||||
@@ -110,13 +110,12 @@ function small_monster_UI.draw()
|
||||
if distance > config.current_config.small_monster_UI.dynamic_positioning.max_distance then
|
||||
goto continue;
|
||||
end
|
||||
|
||||
|
||||
if config.current_config.small_monster_UI.dynamic_positioning.opacity_falloff then
|
||||
opacity_scale = 1 - (distance / config.current_config.small_monster_UI.dynamic_positioning.max_distance);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
small_monster.draw(monster, position_on_screen, opacity_scale);
|
||||
|
||||
i = i + 1;
|
||||
|
||||
Reference in New Issue
Block a user