Example of using toggle?
Closed this issue · 1 comments
toastonrye commented
I can't figure out how to toggle the UI.
To have the UI work like the inventory UI in the base game, clicking it opens, clicking again closes.
MrBounty commented
Hello, just use that:
UI:open() -- Display the UI
UI:close() -- Hide the UI
UI:toggle() -- Toggle the UI
From: https://github.com/MrBounty/PZ-UI_API/blob/main/UI%20functions.md