lukflug / PanelStudio

An extensible and customizable GUI API/library to create ClickGUIs, HUDEditors and TabGUIs designed for use in Minecraft utility mods.
https://lukflug.github.io/panelstudio.html
MIT License
309 stars 23 forks source link

how to create hudgui? #10

Closed faithful112 closed 3 years ago

faithful112 commented 3 years ago

how to make hudgui render? I followed the example and used gamesenses resources in clickgui itself the component has been rendered, but when the gui is closed it disappears

please add more examples using hudgui

lukflug commented 3 years ago

More extensive examples are comming with PanelStudio 0.2.0. But have you called render and handleKeyEvent even when the GUI is closed, i.e. calling these methods when rendering the overlay and when typing a key respectively. The key event can be left out, if your HUD modules don't accept key input (i.e. when you're not using anything like the TabGUI).