-
Notifications
You must be signed in to change notification settings - Fork 1
Gnuiapi
GNamimates edited this page Oct 30, 2024
·
4 revisions
| Returns | Methods |
|---|---|
GNUI.Canvas |
api.getScreenCanvas() |
| api.debugMode() | |
| api.newBox(parent: GNUI.Any) | |
| api.newNineslice() | |
| api.playSound(sound : Minecraft.soundID, pitch : number?, volume : number?) |
Gets a canvas for the screen. Quick startup for putting UI elements onto the screen.
Enables debug mode for the soon to be created boxes. This will not enable debug mode on exiting boxes.
api.newNineslice(texture, UVx1, UVy1, UVx2, UVy2, borderLeft, borderTop, borderRight, borderBottom, expandTop, expandRight, expandBottom, expandLeft)
creates a nineslice with every parameter you need
-
texture -
UVx1the UV coordinate of the top left corner -
UVy1 -
UVx2 -
UVy2 -
borderLeftthe borders for the ninepatch -
borderTop -
borderRight -
borderBottom -
expandTopthe expansion of the ninepatch from its box. -
expandRight -
expandBottom -
expandLeft
-
Minecraft.soundIDsound -
number?pitch -
number?volume