mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Add Option to Set Infinite Buffs Location
This commit is contained in:
@@ -99,6 +99,9 @@ this.displayed_monster_UI_sorting_types = {};
|
||||
this.buff_UI_sorting_types = {};
|
||||
this.displayed_buff_UI_sorting_types = {};
|
||||
|
||||
this.buff_UI_infinite_buffs_location_types = {};
|
||||
this.displayed_buff_UI_infinite_buffs_location_types = {};
|
||||
|
||||
this.damage_meter_UI_highlighted_entity_types = {};
|
||||
this.displayed_damage_meter_UI_highlighted_entity_types = {};
|
||||
|
||||
@@ -237,6 +240,20 @@ function this.init()
|
||||
current.duration
|
||||
};
|
||||
|
||||
this.buff_UI_infinite_buffs_location_types =
|
||||
{
|
||||
default.normal,
|
||||
default.first,
|
||||
default.last
|
||||
};
|
||||
|
||||
this.displayed_buff_UI_infinite_buffs_location_types =
|
||||
{
|
||||
current.normal,
|
||||
current.first,
|
||||
current.last
|
||||
};
|
||||
|
||||
this.damage_meter_UI_highlighted_entity_types =
|
||||
{
|
||||
default.top_damage,
|
||||
@@ -2317,6 +2334,17 @@ function this.draw_buff_UI()
|
||||
cached_config.settings.orientation = this.orientation_types[index];
|
||||
end
|
||||
|
||||
changed, index = imgui.combo(
|
||||
language.current_language.customization_menu.infinite_buffs_location,
|
||||
utils.table.find_index(this.buff_UI_infinite_buffs_location_types, cached_config.settings.infinite_buffs_location),
|
||||
this.displayed_buff_UI_infinite_buffs_location_types);
|
||||
|
||||
config_changed = config_changed or changed;
|
||||
|
||||
if changed then
|
||||
cached_config.settings.infinite_buffs_location = this.buff_UI_infinite_buffs_location_types[index];
|
||||
end
|
||||
|
||||
imgui.tree_pop();
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user