mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Add ID to Endemic Life Name Label
This commit is contained in:
@@ -156,7 +156,18 @@ function this.draw(creature, position_on_screen, opacity_scale)
|
|||||||
position_on_screen.x = position_on_screen.x - text_width / 2;
|
position_on_screen.x = position_on_screen.x - text_width / 2;
|
||||||
end
|
end
|
||||||
|
|
||||||
drawing.draw_label(creature.name_label, position_on_screen, opacity_scale, creature.name .. " " .. creature.id);
|
local cached_config = config.current_config.endemic_life_UI.creature_name_label.include;
|
||||||
|
|
||||||
|
local name_text = "";
|
||||||
|
if cached_config.name then
|
||||||
|
name_text = string.format("%s ", creature.name);
|
||||||
|
end
|
||||||
|
|
||||||
|
if cached_config.id then
|
||||||
|
name_text = string.format("%s%s ", name_text, tostring(creature.id));
|
||||||
|
end
|
||||||
|
|
||||||
|
drawing.draw_label(creature.name_label, position_on_screen, opacity_scale, name_text);
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.init_list()
|
function this.init_list()
|
||||||
|
|||||||
@@ -7465,6 +7465,11 @@ function this.init_default()
|
|||||||
|
|
||||||
text_formatting = "%s",
|
text_formatting = "%s",
|
||||||
|
|
||||||
|
include = {
|
||||||
|
name = true,
|
||||||
|
id = false
|
||||||
|
},
|
||||||
|
|
||||||
offset = {
|
offset = {
|
||||||
x = 0,
|
x = 0,
|
||||||
y = 0
|
y = 0
|
||||||
|
|||||||
@@ -1469,9 +1469,7 @@ function this.draw_small_monster_UI()
|
|||||||
imgui.tree_pop();
|
imgui.tree_pop();
|
||||||
end
|
end
|
||||||
|
|
||||||
changed = label_customization.draw(language.current_language.customization_menu.monster_name_label,
|
changed = label_customization.draw(language.current_language.customization_menu.monster_name_label, cached_config.monster_name_label);
|
||||||
cached_config.monster_name_label);
|
|
||||||
|
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
changed = health_customization.draw(cached_config.health);
|
changed = health_customization.draw(cached_config.health);
|
||||||
@@ -1498,8 +1496,7 @@ function this.draw_large_monster_dynamic_UI()
|
|||||||
if imgui.tree_node(language.current_language.customization_menu.dynamically_positioned) then
|
if imgui.tree_node(language.current_language.customization_menu.dynamically_positioned) then
|
||||||
local cached_config = config.current_config.large_monster_UI.dynamic;
|
local cached_config = config.current_config.large_monster_UI.dynamic;
|
||||||
|
|
||||||
changed, cached_config.enabled = imgui.checkbox(
|
changed, cached_config.enabled = imgui.checkbox(language.current_language.customization_menu.enabled, cached_config.enabled);
|
||||||
language.current_language.customization_menu.enabled, cached_config.enabled);
|
|
||||||
|
|
||||||
config_changed = config_changed or changed;
|
config_changed = config_changed or changed;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user