Skip to content

Commit

Permalink
Add TEXT_ALIGN enums to render.drawText and render.drawSimpleText docs (
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnejm authored Aug 17, 2023
1 parent eb78558 commit 219d3b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/starfall/libs_cl/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@ end
-- @param number x X coordinate
-- @param number y Y coordinate
-- @param string text Text to draw
-- @param number alignment Text alignment
-- @param number alignment Horizontal text alignment. Default TEXT_ALIGN.LEFT
function render_library.drawText(x, y, text, alignment)
if not renderdata.isRendering then SF.Throw("Not in rendering hook.", 2) end

Expand All @@ -1651,8 +1651,8 @@ end
-- @param number x X coordinate
-- @param number y Y coordinate
-- @param string text Text to draw
-- @param number? xalign Text x alignment
-- @param number? yalign Text y alignment
-- @param number? xalign Horizontal text alignment. Default TEXT_ALIGN.LEFT
-- @param number? yalign Vertical text alignment. Default TEXT_ALIGN.TOP
-- @return number Width of the drawn text. Same as calling render.getTextSize
-- @return number Height of the drawn text. Same as calling render.getTextSize
function render_library.drawSimpleText(x, y, text, xalign, yalign)
Expand Down

0 comments on commit 219d3b2

Please sign in to comment.