This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Repository navigation
v0.0.1-unstable #2
flipfloppy1
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
0.0.1 Unstable
Features
Lua Script Global Variables:
VUI_dt: The time between the last frame and the current one (deltatime).
VUI_winX: The length of the viewport, in pixels.
VUI_winY: The height of the viewport, in pixels.
VUI_nextScript: The Lua script to be run on the next frame.
Specifying UI Elements in Lua:
Element Properties:
position: the top-left corner of the box that forms the element, in normalised screen coordinates; (0,0) is the top-left corner, whereas (1,1) is the bottom-right. fields: x, y.
dimensions: the bottom-right corner of the box that forms the element, in normalised screen coordinates; (0,0) is the top-left corner, whereas (1,1) is the bottom-right. fields: x,y.
texture: a string that contains a path to an image file to be used for the element, relative to the current working directory.
layer: an integer representing the z-index, or order of the element. For elements that overlap, elements with a higher layer are drawn on top of elements with a lower one.
color: a field representing the rgba values that an element is drawn with. If a texture is set, the color is multiplied by the texture color. fields: r,g,b,a.
This discussion was created from the release v0.0.1-unstable.
All reactions