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

[Important] Render Gui + MC Overlay issue #45

Closed f1den closed 10 months ago

f1den commented 10 months ago

I found bug. I open GUI, Crosshair and other is showing. I close it all turning bad.

image

image

lukflug commented 10 months ago

Is this the unmodified example mod? Can you provide steps required to reproduce this issue?

f1den commented 10 months ago

i downloaded, opened in intellij commented random module generator. thats all. (usingreobf shadowjar). Layout csgoSearch + theme impact

f1den commented 10 months ago

I tried to download standard and just gradlew build = same issue. Tested Minecraft Forge + Optifine and raw Forge Minecraft version 1.16.5

f1den commented 10 months ago

Got fixed @SubscribeEvent public void onRender (RenderGameOverlayEvent.Post event) { if (inited) { if (gui.getGUI().getGUIVisibility().isOn() || gui.getGUI().getHUDVisibility().isOn()){ if (event.getType()==RenderGameOverlayEvent.ElementType.HOTBAR){ gui.render(); } } } else { Category.init(); Category.OTHER.modules.add(new ClickGUIModule()); Category.OTHER.modules.add(new HUDEditorModule()); Category.HUD.modules.add(new TabGUIModule()); Category.HUD.modules.add(new WatermarkModule()); Category.HUD.modules.add(new LogoModule()); gui=new ClickGUI(); inited=true; } }