mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Fix Highlighted Damage UI not being initialized
This commit is contained in:
@@ -57,6 +57,10 @@ function players.new(id, name, master_rank, hunter_rank, type)
|
|||||||
|
|
||||||
players.init_UI(player);
|
players.init_UI(player);
|
||||||
|
|
||||||
|
if players.highlighted_damage_UI == nil then
|
||||||
|
players.init_highlighted_UI();
|
||||||
|
end
|
||||||
|
|
||||||
return player;
|
return player;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -79,8 +79,7 @@ function damage_meter_UI.draw()
|
|||||||
if not cached_config.settings.total_damage_offset_is_relative then
|
if not cached_config.settings.total_damage_offset_is_relative then
|
||||||
position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
for _, player in ipairs(quest_players) do
|
for _, player in ipairs(quest_players) do
|
||||||
|
|
||||||
if player.display.total_damage == 0 and cached_config.settings.hide_player_if_player_damage_is_zero then
|
if player.display.total_damage == 0 and cached_config.settings.hide_player_if_player_damage_is_zero then
|
||||||
|
|||||||
Reference in New Issue
Block a user