Skip to content

Commit

Permalink
add missing methods to the OOP wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 15, 2024
1 parent a8388a6 commit a7404c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions res/content/base/scripts/hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions res/scripts/hud_classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a7404c2

Please sign in to comment.