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.
Describe alternatives you've considered
Without this function, there is no real way to transform images like that.
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:
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 novec2
-like type.An example is shown below.
Describe alternatives you've considered
Without this function, there is no real way to transform images like that.
Additional context
No response