mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 12:28:03 -08:00
Release v1.11
1) Cache config access function-wide where possible; 2) Break and Sever values added to parts; 3) Hooks are now applied in init_module instead of global space; 4) Added checks for submodule (health, stamina, etc) visibility. If not visible, do not pull data.
This commit is contained in:
@@ -65,9 +65,11 @@ function screen.get_game_window_size()
|
||||
end
|
||||
|
||||
function screen.calculate_absolute_coordinates(position)
|
||||
local global_position_modifier = config.current_config.global_settings.modifiers.global_position_modifier;
|
||||
|
||||
local _position = {
|
||||
x = position.x * config.current_config.global_settings.modifiers.global_position_modifier;
|
||||
y = position.y * config.current_config.global_settings.modifiers.global_position_modifier;
|
||||
x = position.x * global_position_modifier;
|
||||
y = position.y * global_position_modifier;
|
||||
}
|
||||
|
||||
-- top left
|
||||
|
||||
Reference in New Issue
Block a user