Skip to content

Added more draw options that can be called from Lua#1

Open
Dylan-B-D wants to merge 1 commit intoToddButler93:masterfrom
Dylan-B-D:more-lua-drawing-functions
Open

Added more draw options that can be called from Lua#1
Dylan-B-D wants to merge 1 commit intoToddButler93:masterfrom
Dylan-B-D:more-lua-drawing-functions

Conversation

@Dylan-B-D
Copy link
Copy Markdown

Added functions:

  • drawCustomText
  • drawLine
  • drawTriangle
  • drawSector
  • drawCircle
  • drawRectTextured
  • drawLineTextured

Example usage for functions:

drawCustomText( text, color, xpos, ypos, align, shadowSize, scale, *texName)
drawLine( x1, y1, x2, y2, percentage (of length), width, color);
drawTriangle( x1, y1, x2, y2, x3, y3, texName);
drawSector( x, y, radius, startAngle, endAngle, segments, texName);
drawCircle( centerX, centerY, radius, texName);
drawRectTextured( x1, y1, x2, y2, color, texName);
drawLineTextured( x1, y1, x2, y2, *uvMapping, width, color, texName);

texName is in the format - "MultiFont Hud_Items.MF_Medium" list can be found - https://docs.google.com/document/d/18PoTVLbkjZQYwuyV5rabqVkRrixVssFo6cB76dDnovw/edit#heading=h.ulysmxgqlvor

uvMapping is a Vecor 4, that can be written as "Vector4( x1, y1, x2, y2)" in Lua

@Gigabyte5671
Copy link
Copy Markdown
Collaborator

Howdy!
What's the status of this PR? Has it been tested?

@Gigabyte5671 Gigabyte5671 added the question Further information is requested label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants