Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dylan-B-D
Copy link

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
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