Replies: 1 comment
-
|
Sounds interesting. I'll look into it, shouldn't be too difficult to implement. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
It would be greatly appreciated if there was
InvUI#destroy(), or similar method that could be called to basically cancel and clean-up listeners and tasks registered to the server. That way, library could be instructed to load / unload itself at runtime and not leave up stale listeners, tasks, open windows, etc.This would allow for a bit more flexibility in certain plugins (e.g., modular plugins that can load/unload on demand) and would also mean InvUI could be used by scripting engines such as Kite - a Kotlin scripting runtime for Paper.
We already take care of script-registered listeners, tasks and commands but we cannot easily apply that to libraries used in scripts, unless they provide methods to manage that lifecycle.
I hope this can be taken into consideration - list of GUI libraries compatible with Kite - at this moment - is very limited 😅
Beta Was this translation helpful? Give feedback.
All reactions