diff --git a/res/content/base/scripts/hud.lua b/res/content/base/scripts/hud.lua index 49d34b625..67ca35872 100644 --- a/res/content/base/scripts/hud.lua +++ b/res/content/base/scripts/hud.lua @@ -39,4 +39,5 @@ 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())}) end diff --git a/res/scripts/hud_classes.lua b/res/scripts/hud_classes.lua index 084eb0088..0e418a3e3 100644 --- a/res/scripts/hud_classes.lua +++ b/res/scripts/hud_classes.lua @@ -2,6 +2,10 @@ local Text3D = {__index={ hide=function(self) return gfx.text3d.hide(self.id) end, get_pos=function(self) return gfx.text3d.get_pos(self.id) end, set_pos=function(self, v) return gfx.text3d.set_pos(self.id, v) end, + get_axis_x=function(self) return gfx.text3d.get_axis_x(self.id) end, + set_axis_x=function(self, v) return gfx.text3d.set_axis_x(self.id, v) end, + get_axis_y=function(self) return gfx.text3d.get_axis_y(self.id) end, + set_axis_y=function(self, v) return gfx.text3d.set_axis_y(self.id, v) end, get_text=function(self) return gfx.text3d.get_text(self.id) end, set_text=function(self, s) return gfx.text3d.set_text(self.id, s) end, update_settings=function(self, t) return gfx.text3d.update_settings(self.id, t) end,