Package dev.twilite.client.ui.overlay
Interface ImGuiOverlayRenderer
- All Superinterfaces:
OverlayBinding
Optional advanced ImGui overlay renderer for interactive native ImGui widgets.
Implement this on an OverlayBinding annotated with OverlayPanel. The overlay manager creates the
native ImGui panel, then calls buildImGuiOverlay(ImGuiOverlay.Panel) every frame. Widget events are routed
back through onImGuiOverlayAction(String, String).
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds rows and widgets to the native ImGui panel.default booleanimgui()Returns whether annotation-backed panel rows should render through native ImGui.default voidonImGuiOverlayAction(String key, String value) Handles an interactive ImGui widget event.
-
Method Details
-
imgui
default boolean imgui()Description copied from interface:OverlayBindingReturns whether annotation-backed panel rows should render through native ImGui.World geometry overlays still render through Java2D. Override this when an overlay needs to force a renderer. If left inherited, the Overlay plugin config controls the effective default.
- Specified by:
imguiin interfaceOverlayBinding
-
buildImGuiOverlay
Adds rows and widgets to the native ImGui panel. -
onImGuiOverlayAction
Handles an interactive ImGui widget event.- Parameters:
key- stable widget key supplied when building the widgetvalue- widget value, or"click"for buttons
-