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:
GreenComfyTea
2022-06-20 13:01:10 +03:00
parent 286c54aa55
commit f64d6c84d3
31 changed files with 1617 additions and 1539 deletions

View File

@@ -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