Added highlighted large monster UI.

This commit is contained in:
GreenComfyTea
2022-02-14 21:02:40 +02:00
parent b514c07187
commit fa494d7d56
14 changed files with 2381 additions and 99 deletions

View File

@@ -28,6 +28,7 @@ function body_part.new(REpart, name, id)
body_part.init_dynamic_UI(part);
body_part.init_static_UI(part);
body_part.init_highlighted_UI(part);
return part;
end
@@ -55,6 +56,17 @@ function body_part.init_static_UI(part)
);
end
function body_part.init_highlighted_UI(part)
part.body_part_highlighted_UI = body_part_UI_entity.new(
config.current_config.large_monster_UI.highlighted.parts.visibility,
config.current_config.large_monster_UI.highlighted.parts.bar,
config.current_config.large_monster_UI.highlighted.parts.part_name_label,
config.current_config.large_monster_UI.highlighted.parts.text_label,
config.current_config.large_monster_UI.highlighted.parts.value_label,
config.current_config.large_monster_UI.highlighted.parts.percentage_label
);
end
function body_part.update(part, new_health, new_max_health)
if part == nil then
return;
@@ -80,6 +92,10 @@ function body_part.draw_static(part, position_on_screen, opacity_scale)
body_part_UI_entity.draw_static(part, position_on_screen, opacity_scale);
end
function body_part.draw_highlighted(part, position_on_screen, opacity_scale)
body_part_UI_entity.draw_highlighted(part, position_on_screen, opacity_scale);
end
function body_part.init_module()
singletons = require("MHR_Overlay.Game_Handler.singletons");
customization_menu = require("MHR_Overlay.UI.customization_menu");