mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-30 07:18:03 -08:00
Compare commits
11 Commits
51b824e385
...
v2.6.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b82e27725 | ||
|
|
2a3c8106d5 | ||
|
|
3b89ce8303 | ||
|
|
f2e23626cf | ||
|
|
8a55873e14 | ||
|
|
b93bdd0338 | ||
|
|
f01ec08990 | ||
|
|
b6ed4f036a | ||
|
|
fedf5bc7af | ||
|
|
009eb9ffb0 | ||
|
|
b8a7f109e0 |
16
README.md
16
README.md
@@ -135,22 +135,22 @@
|
||||
* **[Troubleshooting](https://github.com/GreenComfyTea/MHR-Overlay/wiki/Troubleshooting)**
|
||||
|
||||
# Requirements
|
||||
1. [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26) (v1.503+);
|
||||
2. [REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134) (v0.4.0+) - Needed for Unicode Support.
|
||||
1. **[REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26)** (v1.503+);
|
||||
2. **[REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134)** (v0.4.0+) - Needed for Unicode Support.
|
||||
|
||||
# How to install:
|
||||
1. Install [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26);
|
||||
2. Install [REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134);
|
||||
1. Install **[REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26)**;
|
||||
2. Install **[REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134)**;
|
||||
>**:pushpin: Windows:** Works normally.
|
||||
|
||||
>**:pushpin: Linux:** Latest Experimental Proton seems to have it working normally as well (https://github.com/cursey/reframework-d2d/issues/5).
|
||||
|
||||
>**:pushpin: Steam Deck:** I've seen people getting it working but I don't have the exact instructions. You will have to figure it out yourself and/or search the nexus pages for information ([REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26?tab=description), [REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134), [MHR Overlay](https://www.nexusmods.com/monsterhunterrise/mods/50)).
|
||||
>**:pushpin: Steam Deck:** I've seen people getting it working but I don't have the exact instructions. You will have to figure it out yourself and/or search the nexus pages for information (**[REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26?tab=description)**, **[REFramework Direct2D](https://www.nexusmods.com/monsterhunterrise/mods/134)**, **[MHR Overlay](https://www.nexusmods.com/monsterhunterrise/mods/50)**).
|
||||
|
||||
3. Download the mod:
|
||||
* Official release can be downloaded from [Nexus Mods](https://www.nexusmods.com/monsterhunterrise/mods/50);
|
||||
* Nightly builds are available in [this repo](https://github.com/GreenComfyTea/MHR-Overlay) and can contain broken functionality, debugging info on screen, bugs and might require the latest [nightly build](https://github.com/praydog/REFramework-nightly/releases) of [REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26). Use with caution!
|
||||
4. Extract the mod from the archive and place it in MonsterHunterRise folder. Refer to [FAQ](https://github.com/GreenComfyTea/MHR-Overlay/wiki/FAQ) to verify how the file hierarchy should look like if everything is done correctly.
|
||||
* Official release can be downloaded from **[Nexus Mods](https://www.nexusmods.com/monsterhunterrise/mods/50)**;
|
||||
* Nightly builds are available in **[this repo](https://github.com/GreenComfyTea/MHR-Overlay)** and can contain broken functionality, debugging info on screen, bugs and might require the latest **[nightly build](https://github.com/praydog/REFramework-nightly/releases)** of **[REFramework](https://www.nexusmods.com/monsterhunterrise/mods/26)**. Use with caution!
|
||||
4. Extract the mod from the archive and place it in MonsterHunterRise folder. Refer to **[FAQ](https://github.com/GreenComfyTea/MHR-Overlay/wiki/FAQ)** to verify how the file hierarchy should look like if everything is done correctly.
|
||||
|
||||
# Credits
|
||||
**[GreenComfyTea](https://github.com/GreenComfyTea)** - creator of the mod and it's main contributor.
|
||||
|
||||
@@ -304,7 +304,7 @@ local insect_glaive_type_name = "insect_glaive";
|
||||
-- 13 Bow
|
||||
local bow_type_name = "bow";
|
||||
|
||||
local previous_weapon_type = -1;
|
||||
local previous_weapon_type = 0;
|
||||
local previous_weapon_key = "great_sword";
|
||||
|
||||
local spirit_gauge_breakpoints = {3, 2};
|
||||
@@ -503,7 +503,7 @@ function this.update(player, player_data, weapon_type)
|
||||
end
|
||||
|
||||
previous_weapon_type = weapon_type;
|
||||
previous_weapon_key = this.keys[previous_weapon_type].key;
|
||||
previous_weapon_key = this.keys[previous_weapon_type + 1].key;
|
||||
|
||||
if weapon_type == 0 then
|
||||
this.update_great_sword_skills(player);
|
||||
@@ -952,7 +952,7 @@ function this.update_sonic_bloom(player)
|
||||
|
||||
local blast_speaker_shell = get_ref_blast_speaker_shell_method:call(player);
|
||||
if blast_speaker_shell == nil then
|
||||
this.list.bead_of_resonance = nil;
|
||||
this.list.sonic_bloom = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -963,7 +963,7 @@ function this.update_sonic_bloom(player)
|
||||
end
|
||||
|
||||
if utils.number.is_equal(life_timer, 0) then
|
||||
this.list.bead_of_resonance = nil;
|
||||
this.list.sonic_bloom = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -972,7 +972,6 @@ end
|
||||
|
||||
function this.update_charge_blade_skills(player)
|
||||
this.update_weapon_skill("element_boost", charge_blade_type_name, nil, nil, player, shield_buff_timer_field);
|
||||
|
||||
this.update_weapon_skill("sword_boost_mode", charge_blade_type_name, nil, nil, player, sword_buff_timer_field);
|
||||
end
|
||||
|
||||
|
||||
@@ -480,6 +480,28 @@ function this.register_hotkey(hard_keyboard)
|
||||
return true;
|
||||
end
|
||||
end
|
||||
elseif customization_menu.buff_UI_waiting_for_key then
|
||||
for key, key_name in pairs(this.keys) do
|
||||
if get_release_method:call(hard_keyboard, key) then
|
||||
cached_config.buff_UI.ctrl = this.hotkey_modifiers_down.ctrl;
|
||||
cached_config.buff_UI.shift = this.hotkey_modifiers_down.shift;
|
||||
cached_config.buff_UI.alt = this.hotkey_modifiers_down.alt;
|
||||
cached_config.buff_UI.key = key;
|
||||
customization_menu.buff_UI_waiting_for_key = false;
|
||||
return true;
|
||||
end
|
||||
end
|
||||
elseif customization_menu.stats_UI_waiting_for_key then
|
||||
for key, key_name in pairs(this.keys) do
|
||||
if get_release_method:call(hard_keyboard, key) then
|
||||
cached_config.stats_UI.ctrl = this.hotkey_modifiers_down.ctrl;
|
||||
cached_config.stats_UI.shift = this.hotkey_modifiers_down.shift;
|
||||
cached_config.stats_UI.alt = this.hotkey_modifiers_down.alt;
|
||||
cached_config.stats_UI.key = key;
|
||||
customization_menu.stats_UI_waiting_for_key = false;
|
||||
return true;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return false;
|
||||
@@ -503,7 +525,10 @@ function this.check_hotkeys(hard_keyboard)
|
||||
or config.current_config.large_monster_UI.dynamic.enabled
|
||||
or config.current_config.large_monster_UI.static.enabled
|
||||
or config.current_config.large_monster_UI.highlighted.enabled
|
||||
or config.current_config.damage_meter_UI.enabled;
|
||||
or config.current_config.damage_meter_UI.enabled
|
||||
or config.current_config.endemic_life_UI.enabled
|
||||
or config.current_config.buff_UI.enabled
|
||||
or config.current_config.stats_UI.enabled;
|
||||
|
||||
config.current_config.time_UI.enabled = not is_any_enabled;
|
||||
config.current_config.small_monster_UI.enabled = not is_any_enabled;
|
||||
@@ -511,6 +536,9 @@ function this.check_hotkeys(hard_keyboard)
|
||||
config.current_config.large_monster_UI.static.enabled = not is_any_enabled;
|
||||
config.current_config.large_monster_UI.highlighted.enabled = not is_any_enabled;
|
||||
config.current_config.damage_meter_UI.enabled = not is_any_enabled;
|
||||
config.current_config.endemic_life_UI.enabled = not is_any_enabled;
|
||||
config.current_config.buff_UI.enabled = not is_any_enabled;
|
||||
config.current_config.stats_UI.enabled = not is_any_enabled;
|
||||
end
|
||||
end
|
||||
|
||||
@@ -631,6 +659,34 @@ function this.check_hotkeys(hard_keyboard)
|
||||
config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled;
|
||||
end
|
||||
end
|
||||
|
||||
if not (cached_config.buff_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||
and not (cached_config.buff_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||
and not (cached_config.buff_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||
|
||||
local buff_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.buff_UI.key));
|
||||
|
||||
if buff_UI_key_release == nil then
|
||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: buff_UI_key_release");
|
||||
|
||||
elseif buff_UI_key_release then
|
||||
config.current_config.buff_UI.enabled = not config.current_config.buff_UI.enabled;
|
||||
end
|
||||
end
|
||||
|
||||
if not (cached_config.stats_UI.ctrl and not this.hotkey_modifiers_down.ctrl)
|
||||
and not (cached_config.stats_UI.shift and not this.hotkey_modifiers_down.shift)
|
||||
and not (cached_config.stats_UI.alt and not this.hotkey_modifiers_down.alt) then
|
||||
|
||||
local stats_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.stats_UI.key));
|
||||
|
||||
if stats_UI_key_release == nil then
|
||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: stats_UI_key_release");
|
||||
|
||||
elseif stats_UI_key_release then
|
||||
config.current_config.stats_UI.enabled = not config.current_config.stats_UI.enabled;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function this.get_hotkey_name(hotkey)
|
||||
|
||||
@@ -36,7 +36,7 @@ local os = os;
|
||||
local ValueType = ValueType;
|
||||
local package = package;
|
||||
|
||||
this.version = "2.6";
|
||||
this.version = "2.6.3";
|
||||
|
||||
this.config_folder = "MHR Overlay\\configs\\";
|
||||
this.current_config_value_file_name = "MHR Overlay\\config.json";
|
||||
@@ -292,6 +292,20 @@ function this.init_default()
|
||||
ctrl = false,
|
||||
alt = false,
|
||||
key = 0
|
||||
},
|
||||
|
||||
buff_UI = {
|
||||
shift = false,
|
||||
ctrl = false,
|
||||
alt = false,
|
||||
key = 0
|
||||
},
|
||||
|
||||
stats_UI = {
|
||||
shift = false,
|
||||
ctrl = false,
|
||||
alt = false,
|
||||
key = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7533,6 +7547,7 @@ function this.init_default()
|
||||
deadly_poison = true,
|
||||
stun = true,
|
||||
paralysis = true,
|
||||
falling_asleep = true,
|
||||
sleep = true,
|
||||
defense_down = true,
|
||||
resistance_down = true,
|
||||
@@ -7556,6 +7571,7 @@ function this.init_default()
|
||||
mega_demondrug = true,
|
||||
armorskin = true,
|
||||
mega_armorskin = true,
|
||||
might_seed = true,
|
||||
demon_powder = true,
|
||||
hardshell_powder = true,
|
||||
gourmet_fish = true,
|
||||
@@ -9199,7 +9215,7 @@ function this.load_configs()
|
||||
table.insert(this.config_names, this.current_config_name);
|
||||
table.insert(this.configs, this.current_config);
|
||||
|
||||
this.save(this.current_config_name, this.current_config);
|
||||
this.save(string.format("%s\\%s.json", this.config_folder, this.current_config_name), this.current_config);
|
||||
end
|
||||
|
||||
this.save_current_config_name();
|
||||
|
||||
@@ -314,8 +314,8 @@ this.default_language = {
|
||||
coalescence = "Coalescence",
|
||||
counterstrike = "Counterstrike",
|
||||
dereliction = "Dereliction",
|
||||
dragon_conversion_elemental_attack_up = "Dragon Conversion Elem. Atk Up",
|
||||
dragon_conversion_elemental_res_up = "Dragon Conversion Elem. Res Up",
|
||||
dragon_conversion_elemental_attack_up = "Dragon Conversion: Elem. Atk Up",
|
||||
dragon_conversion_elemental_res_up = "Dragon Conversion: Elem. Res Up",
|
||||
dragonheart = "Dragonheart",
|
||||
embolden = "Embolden",
|
||||
frenzied_bloodlust = "Frenzied Bloodlust",
|
||||
|
||||
@@ -145,6 +145,8 @@ this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
this.menu_font_changed = false;
|
||||
|
||||
this.config_name_input = "";
|
||||
@@ -387,6 +389,7 @@ function this.draw()
|
||||
local language_changed = false;
|
||||
local modifiers_changed = false;
|
||||
local modules_changed = false;
|
||||
local hotkeys_changed = false;
|
||||
local global_settings_changed = false;
|
||||
local timer_delays_changed = false;
|
||||
local small_monster_UI_changed = false;
|
||||
@@ -422,7 +425,7 @@ function this.draw()
|
||||
|
||||
config_changed, apply_font_requested = this.draw_config();
|
||||
modules_changed = this.draw_modules();
|
||||
this.draw_hotkeys();
|
||||
hotkeys_changed = this.draw_hotkeys();
|
||||
global_settings_changed, modifiers_changed, timer_delays_changed, apply_font_requested, language_changed = this.draw_global_settings(apply_font_requested, config_changed);
|
||||
small_monster_UI_changed = this.draw_small_monster_UI();
|
||||
|
||||
@@ -517,7 +520,7 @@ function this.draw()
|
||||
this.reload_font();
|
||||
end
|
||||
|
||||
if window_changed or modules_changed or global_settings_changed or small_monster_UI_changed or large_monster_dynamic_UI_changed or
|
||||
if window_changed or modules_changed or hotkeys_changed or global_settings_changed or small_monster_UI_changed or large_monster_dynamic_UI_changed or
|
||||
large_monster_static_UI_changed or large_monster_highlighted_UI_changed or time_UI_changed or damage_meter_UI_changed or
|
||||
endemic_life_UI_changed or buff_UI_changed or stats_UI_changed or modifiers_changed or config_changed or debug_changed then
|
||||
config.save_current();
|
||||
@@ -653,6 +656,8 @@ function this.draw_modules()
|
||||
end
|
||||
|
||||
function this.draw_hotkeys()
|
||||
local config_changed = false;
|
||||
|
||||
if imgui.tree_node(language.current_language.customization_menu.hotkeys) then
|
||||
if this.all_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
@@ -661,25 +666,26 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.all_UI.alt = false;
|
||||
this.all_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
|
||||
elseif imgui.button(language.current_language.customization_menu.all_UI) then
|
||||
local is_any_other_waiting = this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.all_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = true;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.all_UI));
|
||||
|
||||
if this.small_monster_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.key = 0;
|
||||
@@ -687,24 +693,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI.alt = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.small_monster_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.small_monster_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = true;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.small_monster_UI));
|
||||
|
||||
if this.large_monster_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.key = 0;
|
||||
@@ -712,24 +719,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI.alt = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.large_monster_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.large_monster_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = true;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_UI));
|
||||
|
||||
if this.large_monster_dynamic_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.key = 0;
|
||||
@@ -737,25 +745,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI.alt = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.large_monster_dynamic_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.large_monster_dynamic_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = true;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers
|
||||
.large_monster_dynamic_UI));
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_dynamic_UI));
|
||||
|
||||
if this.large_monster_static_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.key = 0;
|
||||
@@ -763,25 +771,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI.alt = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.large_monster_static_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.large_monster_static_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = true;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers
|
||||
.large_monster_static_UI));
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_static_UI));
|
||||
|
||||
if this.large_monster_highlighted_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.key = 0;
|
||||
@@ -789,23 +797,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI.alt = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.large_monster_highlighted_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.large_monster_highlighted_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = true;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers
|
||||
.large_monster_highlighted_UI));
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.large_monster_highlighted_UI));
|
||||
|
||||
if this.time_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.key = 0;
|
||||
@@ -813,24 +823,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.time_UI.alt = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.time_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.damage_meter_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.time_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = true;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.time_UI));
|
||||
|
||||
if this.damage_meter_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.key = 0;
|
||||
@@ -838,24 +849,25 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI.alt = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.damage_meter_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.damage_meter_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = true;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.damage_meter_UI));
|
||||
|
||||
if this.endemic_life_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.key = 0;
|
||||
@@ -863,26 +875,81 @@ function this.draw_hotkeys()
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI.alt = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.endemic_life_UI) then
|
||||
local is_any_other_waiting = this.all_UI_waiting_for_key or
|
||||
this.small_monster_UI_waiting_for_key or
|
||||
this.large_monster_UI_waiting_for_key or
|
||||
this.large_monster_dynamic_UI_waiting_for_key or
|
||||
this.large_monster_static_UI_waiting_for_key or
|
||||
this.large_monster_highlighted_UI_waiting_for_key or
|
||||
this.time_UI_waiting_for_key or
|
||||
this.endemic_life_UI_waiting_for_key;
|
||||
if not is_any_other_waiting then
|
||||
this.endemic_life_UI_waiting_for_key = true;
|
||||
end
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = true;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.endemic_life_UI));
|
||||
|
||||
if this.buff_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.buff_UI.key = 0;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.buff_UI.ctrl = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.buff_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.buff_UI.alt = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.buff_UI) then
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = true;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.buff_UI));
|
||||
|
||||
if this.stats_UI_waiting_for_key then
|
||||
if imgui.button(language.current_language.customization_menu.press_any_key) then
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.stats_UI.key = 0;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.stats_UI.ctrl = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.stats_UI.shift = false;
|
||||
config.current_config.global_settings.hotkeys_with_modifiers.stats_UI.alt = false;
|
||||
this.stats_UI_waiting_for_key = false;
|
||||
config_changed = true;
|
||||
end
|
||||
elseif imgui.button(language.current_language.customization_menu.stats_UI) then
|
||||
this.all_UI_waiting_for_key = false;
|
||||
this.small_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_UI_waiting_for_key = false;
|
||||
this.large_monster_dynamic_UI_waiting_for_key = false;
|
||||
this.large_monster_static_UI_waiting_for_key = false;
|
||||
this.large_monster_highlighted_UI_waiting_for_key = false;
|
||||
this.time_UI_waiting_for_key = false;
|
||||
this.damage_meter_UI_waiting_for_key = false;
|
||||
this.endemic_life_UI_waiting_for_key = false;
|
||||
this.buff_UI_waiting_for_key = false;
|
||||
this.stats_UI_waiting_for_key = true;
|
||||
end
|
||||
|
||||
imgui.same_line();
|
||||
imgui.text(keyboard.get_hotkey_name(config.current_config.global_settings.hotkeys_with_modifiers.stats_UI));
|
||||
|
||||
imgui.tree_pop();
|
||||
end
|
||||
|
||||
return config_changed;
|
||||
end
|
||||
|
||||
function this.draw_global_settings(apply_font_requested, language_changed)
|
||||
|
||||
@@ -553,8 +553,8 @@
|
||||
"coalescence": "Coalescence",
|
||||
"counterstrike": "Counterstrike",
|
||||
"dereliction": "Dereliction",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion Elem. Res Up",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion: Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion: Elem. Res Up",
|
||||
"dragonheart": "Dragonheart",
|
||||
"embolden": "Embolden",
|
||||
"frenzied_bloodlust": "Frenzied Bloodlust",
|
||||
@@ -600,26 +600,14 @@
|
||||
"unicode_glyph_ranges": [
|
||||
32,
|
||||
255,
|
||||
4352,
|
||||
4607,
|
||||
256,
|
||||
591,
|
||||
1024,
|
||||
1327,
|
||||
7680,
|
||||
7935,
|
||||
8192,
|
||||
8303,
|
||||
11904,
|
||||
12031,
|
||||
12288,
|
||||
12351,
|
||||
12592,
|
||||
12687,
|
||||
12800,
|
||||
19903,
|
||||
19968,
|
||||
40959,
|
||||
44032,
|
||||
55215,
|
||||
63744,
|
||||
64255,
|
||||
65072,
|
||||
65103,
|
||||
65280,
|
||||
65519,
|
||||
0
|
||||
|
||||
@@ -553,8 +553,8 @@
|
||||
"coalescence": "Coalescence",
|
||||
"counterstrike": "Counterstrike",
|
||||
"dereliction": "Dereliction",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion Elem. Res Up",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion: Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion: Elem. Res Up",
|
||||
"dragonheart": "Dragonheart",
|
||||
"embolden": "Embolden",
|
||||
"frenzied_bloodlust": "Frenzied Bloodlust",
|
||||
|
||||
@@ -553,8 +553,8 @@
|
||||
"coalescence": "Coalescence",
|
||||
"counterstrike": "Counterstrike",
|
||||
"dereliction": "Dereliction",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion Elem. Res Up",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion: Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion: Elem. Res Up",
|
||||
"dragonheart": "Dragonheart",
|
||||
"embolden": "Embolden",
|
||||
"frenzied_bloodlust": "Frenzied Bloodlust",
|
||||
|
||||
@@ -553,8 +553,8 @@
|
||||
"coalescence": "Coalescence",
|
||||
"counterstrike": "Counterstrike",
|
||||
"dereliction": "Dereliction",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion Elem. Res Up",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion: Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion: Elem. Res Up",
|
||||
"dragonheart": "Dragonheart",
|
||||
"embolden": "Embolden",
|
||||
"frenzied_bloodlust": "Frenzied Bloodlust",
|
||||
|
||||
@@ -553,8 +553,8 @@
|
||||
"coalescence": "Coalescence",
|
||||
"counterstrike": "Counterstrike",
|
||||
"dereliction": "Dereliction",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion Elem. Res Up",
|
||||
"dragon_conversion_elemental_attack_up": "Dragon Conversion: Elem. Atk Up",
|
||||
"dragon_conversion_elemental_res_up": "Dragon Conversion: Elem. Res Up",
|
||||
"dragonheart": "Dragonheart",
|
||||
"embolden": "Embolden",
|
||||
"frenzied_bloodlust": "Frenzied Bloodlust",
|
||||
|
||||
Reference in New Issue
Block a user