Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
11 stars 6 forks source link

[Feature] `UiImageQuad` API function #569

Open kzonix opened 1 month ago

kzonix commented 1 month ago

Is your feature request related to a problem (if not, explain why you think this feature should be added)? Please describe.

UI Images can only be shifted along axes and rotated. It would allow for much more interesting stuff to be done with UI if we could map the image onto a quad.

Describe the solution you'd like

The function signature could be something like:

function UiImageQuad(path, x1, y1, x2, y2, x3, y3, x4, y4)

All positions would be offset from the UI cursor, and aligned with UiAlign() appropriately. Unfortunately, there are a lot of parameters, but this is just following the format all other UI functions use since there is no vec2-like type.

An example is shown below. quadmanatides

Describe alternatives you've considered

Without this function, there is no real way to transform images like that.

Additional context

No response

Gregory-Gregory commented 1 month ago

@kzonix hi!

Thank you for this suggestion. It has been added to the team's feature request list.