add hud.hand_controller

This commit is contained in:
MihailRis
2025-07-27 22:30:30 +03:00
parent 93c922be99
commit ecf3b94d53
3 changed files with 12 additions and 2 deletions
+6 -2
View File
@@ -83,7 +83,7 @@ function on_hud_open()
configure_SSAO()
end
function update_hand()
local function update_hand()
local skeleton = gfx.skeletons
local pid = hud.get_player()
local invid, slot = player.get_inventory(pid)
@@ -117,5 +117,9 @@ function update_hand()
end
function on_hud_render()
timeit(1, update_hand)
if hud.hand_controller then
hud.hand_controller()
else
update_hand()
end
end