mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26590a3e0b | ||
|
|
1439498a67 | ||
|
|
6a876ccdb4 | ||
|
|
9560dad602 | ||
|
|
032b77ca95 | ||
|
|
efdaae5b5a | ||
|
|
419d25070b | ||
|
|
bee2e7d873 |
@@ -34,7 +34,7 @@
|
||||
<img alt="Platform" src="https://custom-icon-badges.demolab.com/badge/platform-win%20%7C%20linux%20%7C%20steam%20deck-blue?logo=device-desktop" />
|
||||
</a>
|
||||
<a href="">
|
||||
<img alt="Maintenance" src="https://custom-icon-badges.demolab.com/maintenance/yes/2023?logo=tools" />
|
||||
<img alt="Maintenance" src="https://custom-icon-badges.demolab.com/maintenance/yes/2024?logo=tools" />
|
||||
</a>
|
||||
<br>
|
||||
<a href="https://www.nexusmods.com/monsterhunterrise/mods/26">
|
||||
|
||||
@@ -543,7 +543,6 @@ end
|
||||
|
||||
re.on_frame(function()
|
||||
time.update_timers();
|
||||
keyboard.update();
|
||||
|
||||
if d2d == nil or not config.current_config.global_settings.renderer.use_d2d_if_available then
|
||||
draw_loop();
|
||||
|
||||
@@ -699,7 +699,6 @@ function this.update_rising_moon()
|
||||
return;
|
||||
end
|
||||
|
||||
-- Possibly requires players.myself.id instead of 0?
|
||||
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_speed_boost_list, 0);
|
||||
if light_bowgun_shell_030 == nil then
|
||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: light_bowgun_shell_030");
|
||||
@@ -769,7 +768,6 @@ function this.update_setting_sun()
|
||||
return;
|
||||
end
|
||||
|
||||
-- Possibly requires players.myself.id instead of 0?
|
||||
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_all_list, 0);
|
||||
if light_bowgun_shell_030 == nil then
|
||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: light_bowgun_shell_030");
|
||||
@@ -929,12 +927,12 @@ function this.update_bead_of_resonance()
|
||||
return;
|
||||
end
|
||||
|
||||
if players.myself.id >= horn_shell_003s_array_length then
|
||||
if horn_shell_003s_array_length == 0 then
|
||||
this.list.bead_of_resonance = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
local horn_shell_003_list = get_value_method:call(horn_shell_003s_array, players.myself.id);
|
||||
local horn_shell_003_list = get_value_method:call(horn_shell_003s_array, 0);
|
||||
if horn_shell_003_list == nil then
|
||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003_list");
|
||||
this.list.bead_of_resonance = nil;
|
||||
|
||||
@@ -9,6 +9,7 @@ local large_monster;
|
||||
local damage_meter_UI;
|
||||
local time;
|
||||
local error_handler;
|
||||
local quest_status;
|
||||
|
||||
local sdk = sdk;
|
||||
local tostring = tostring;
|
||||
@@ -49,6 +50,7 @@ local hard_keyboard_field_type_def = hard_keyboard_field:get_type();
|
||||
local get_down_method = hard_keyboard_field_type_def:get_method("getDown");
|
||||
local get_trigger_method = hard_keyboard_field_type_def:get_method("getTrg");
|
||||
local get_release_method = hard_keyboard_field_type_def:get_method("getRelease");
|
||||
local update_method = hard_keyboard_field_type_def:get_method("update");
|
||||
|
||||
this.hotkey_modifiers_down = {
|
||||
ctrl = false,
|
||||
@@ -334,13 +336,7 @@ this.keys = {
|
||||
--[254] = "Clear"
|
||||
};
|
||||
|
||||
function this.update()
|
||||
if singletons.game_keyboard == nil then
|
||||
error_handler.report("keyboard.update", "Failed to access Data: game_keyboard");
|
||||
return;
|
||||
end
|
||||
|
||||
local hard_keyboard = hard_keyboard_field:get_data(singletons.game_keyboard);
|
||||
function this.update(hard_keyboard)
|
||||
if hard_keyboard == nil then
|
||||
error_handler.report("keyboard.update", "Failed to access Data: hard_keyboard");
|
||||
return;
|
||||
@@ -717,9 +713,19 @@ function this.init_dependencies()
|
||||
damage_meter_UI = require("MHR_Overlay.UI.Modules.damage_meter_UI");
|
||||
time = require("MHR_Overlay.Game_Handler.time");
|
||||
error_handler = require("MHR_Overlay.Misc.error_handler");
|
||||
quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||
end
|
||||
|
||||
function this.init_module()
|
||||
sdk.hook(update_method, function(args)
|
||||
|
||||
local hard_keyboard = sdk.to_managed_object(args[2]);
|
||||
|
||||
this.update(hard_keyboard);
|
||||
|
||||
end, function(retval)
|
||||
return retval;
|
||||
end);
|
||||
end
|
||||
|
||||
return this;
|
||||
@@ -74,14 +74,14 @@ function this.new_timer(callback, cooldown_seconds, start_offset_seconds)
|
||||
this.timer_list[callback] = timer;
|
||||
end
|
||||
|
||||
function this.new_delay_timer(callback, delay)
|
||||
if callback == nil or delay == nil then
|
||||
function this.new_delay_timer(callback, delay_seconds)
|
||||
if callback == nil or delay_seconds == nil then
|
||||
return;
|
||||
end
|
||||
|
||||
local delay_timer = {};
|
||||
delay_timer.callback = callback;
|
||||
delay_timer.delay = delay;
|
||||
delay_timer.delay = delay_seconds;
|
||||
|
||||
delay_timer.init_time = os.clock();
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ local os = os;
|
||||
local ValueType = ValueType;
|
||||
local package = package;
|
||||
|
||||
this.version = "2.6.4";
|
||||
this.version = "2.6.6";
|
||||
|
||||
this.config_folder = "MHR Overlay\\configs\\";
|
||||
this.current_config_value_file_name = "MHR Overlay\\config.json";
|
||||
|
||||
Reference in New Issue
Block a user