mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add option to scale image to percentage values
This commit is contained in:
parent
f7ee5da4c1
commit
27947d85f7
2 changed files with 14 additions and 9 deletions
|
@ -478,8 +478,10 @@ Note: Future revisions to the HUD API may be incompatible; the HUD API is still
|
|||
|
||||
- image
|
||||
Displays an image on the HUD.
|
||||
- scale: The scale of the image, with 1 being the original texture size.
|
||||
Only the X coordinate scale is used.
|
||||
- scale: The scale of the image, with 1 being the original texture size.
|
||||
Only the X coordinate scale is used (positive values)
|
||||
Negative values represent that percentage of the screen it
|
||||
should take; e.g. x=-100 means 100% (width)
|
||||
- text: The name of the texture that is displayed.
|
||||
- alignment: The alignment of the image.
|
||||
- offset: offset in pixels from position.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue