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

Lua ui Feature Request: extend ui.draw #7

Open
Saeyent opened this issue Dec 30, 2018 · 0 comments
Open

Lua ui Feature Request: extend ui.draw #7

Saeyent opened this issue Dec 30, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@Saeyent
Copy link

Saeyent commented Dec 30, 2018

This is a request to extend the ui.draw library beyond rectangle.

Requested features to add:
ui.draw.line = draw a line from screen coordinates (x1,y1) to (x2,y2) with formatting options
ui.draw.polygon = draw a polygon given an input table of screen co-ords, with formatting options

Ideal formatting options for the polygon include:
color = color of the polygon lines / fill
fill = whether to fill the polygon's interior
opacity = the opacity of the object as a percentage

Example of usage of ui.draw.polygon:
Using 3D->2D conversion, draw a polygon on the ground that the player must stand on top of. While the player is not on the co-ordinates, show the polygon as orange with 100% opacity, when the player is on the polygon, show the polygon as blue with 10% opacity. This would be used to guide players to the correct places to stand for things like Sneak Attack or which place to stand for the weighted doors to open in quicksand caves.

@Nifim Nifim transferred this issue from Windower/packages Dec 23, 2022
@alphaONE2 alphaONE2 added the enhancement New feature or request label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants