From 4cbd3f41f6b8a8e1ff03e42394ae046872fdacc7 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 15 Nov 2024 04:40:17 +0300 Subject: [PATCH] cleanup --- res/content/base/scripts/hud.lua | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/res/content/base/scripts/hud.lua b/res/content/base/scripts/hud.lua index 12fc3d085..694ff8477 100644 --- a/res/content/base/scripts/hud.lua +++ b/res/content/base/scripts/hud.lua @@ -1,8 +1,6 @@ local DROP_FORCE = 8 local DROP_INIT_VEL = {0, 3, 0} -local note - function on_hud_open() input.add_callback("player.drop", function () if hud.is_paused() or hud.is_inventory_open() then @@ -26,19 +24,4 @@ function on_hud_open() local velocity = vec3.add(throw_force, vec3.add(pvel, DROP_INIT_VEL)) drop.rigidbody:set_vel(velocity) end) - - note = gfx.text3d.new({0.5, 99.5, 0.0015}, "Segmentation fault", { - scale=0.005, - color={0, 0, 0, 1}, - display="static_billboard", - xray_opacity=0.2 - }) -end - -function on_hud_render() - note:update_settings({ - color={math.sin(time.uptime() * 12) * 0.5 + 0.5, 0, 0, 1} - }) - -- note:set_axis_x({math.sin(time.uptime()), 0, math.cos(time.uptime())}) - note:set_rotation(mat4.rotate({1, 1, 0}, time.uptime() * 57)) end