Klasse ImGuiManager
java.lang.Object
de.luckymcdev.foundryengine.client.imgui.ImGuiManager
- Alle implementierten Schnittstellen:
AutoCloseable, org.lwjgl.system.NativeResource
The central ImGui manager. Configures the ImGui docking space, theme and editor enable state.
The ImGui context, renderer, fonts and viewports are all owned by ImGuiMC: see
the ImGuiLoadEventsNeoforge and RenderImGuiEventsNeoforge wiring in
FoundryEngineModClient.
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final net.minecraft.resources.Identifierstatic float -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidbegin()Prepares the docking space for an ImGui frame.voidcreate()Creates the ImNodes context and applies the ImGui IO flags.voiddisable()Disables ImGui rendering and input processing.voiddispose()Disposes all ImGui resources.voidenable()Enables ImGui rendering and input processing.voidfree()Disposes all ImGui resources.Returns the currently active theme.intvoidHides the menu bar.booleanReturns whether ImGui rendering is currently enabled.booleanReturns whether the menu bar is currently visible.voidsaveThemeToConfig(ImTheme theme) Persists the given theme name to the client config.voidApplies the given theme and saves it to config.voidbooleanReturns whether a docked window fully covers the central dock node, in which case the game must not receive any input.voidShows the menu bar.voidtoggle()Toggles the enabled state.voidToggles the menu bar visibility.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.lwjgl.system.NativeResource
close
-
Felddetails
-
FONT
public static final net.minecraft.resources.Identifier FONT -
scaleOverride
public static float scaleOverride
-
-
Konstruktordetails
-
ImGuiManager
public ImGuiManager()
-
-
Methodendetails
-
create
public void create()Creates the ImNodes context and applies the ImGui IO flags. Called fromImGuiLoadEventsNeoforge.Pre, where the ImGui context is already current. -
enable
public void enable()Enables ImGui rendering and input processing. -
disable
public void disable()Disables ImGui rendering and input processing. -
showMenuBar
public void showMenuBar()Shows the menu bar. -
hideMenuBar
public void hideMenuBar()Hides the menu bar. -
toggleMenuBar
public void toggleMenuBar()Toggles the menu bar visibility. -
isMenuBarVisible
public boolean isMenuBarVisible()Returns whether the menu bar is currently visible. -
toggle
public void toggle()Toggles the enabled state. -
isEnabled
public boolean isEnabled()Returns whether ImGui rendering is currently enabled. -
saveThemeToConfig
Persists the given theme name to the client config. -
setTheme
Applies the given theme and saves it to config. -
setTheme
-
getCurrentTheme
Returns the currently active theme. -
begin
public void begin()Prepares the docking space for an ImGui frame. -
getDockId
public int getDockId()- Gibt zurück:
- the current dock space ID.
-
shouldBlockInput
public boolean shouldBlockInput()Returns whether a docked window fully covers the central dock node, in which case the game must not receive any input. This complements ImGuiMC's own want-capture flags, which are handled by ImGuiMC's mixins. -
dispose
public void dispose()Disposes all ImGui resources. Called fromMinecraftMixin.engine$close(CallbackInfo). -
free
public void free()Disposes all ImGui resources.- Angegeben von:
freein Schnittstelleorg.lwjgl.system.NativeResource
-