Klasse ImGuiManager

java.lang.Object
de.luckymcdev.foundryengine.client.imgui.ImGuiManager
Alle implementierten Schnittstellen:
AutoCloseable, org.lwjgl.system.NativeResource

public final class ImGuiManager extends Object implements 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

    Felder
    Modifikator und Typ
    Feld
    Beschreibung
    static final net.minecraft.resources.Identifier
     
    static float
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    void
    Prepares the docking space for an ImGui frame.
    void
    Creates the ImNodes context and applies the ImGui IO flags.
    void
    Disables ImGui rendering and input processing.
    void
    Disposes all ImGui resources.
    void
    Enables ImGui rendering and input processing.
    void
    Disposes all ImGui resources.
    Returns the currently active theme.
    int
     
    void
    Hides the menu bar.
    boolean
    Returns whether ImGui rendering is currently enabled.
    boolean
    Returns whether the menu bar is currently visible.
    void
    Persists the given theme name to the client config.
    void
    Applies the given theme and saves it to config.
    void
    setTheme(ImTheme theme, boolean saveToConfig)
     
    boolean
    Returns whether a docked window fully covers the central dock node, in which case the game must not receive any input.
    void
    Shows the menu bar.
    void
    Toggles the enabled state.
    void
    Toggles the menu bar visibility.

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von 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 from ImGuiLoadEventsNeoforge.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

      public void saveThemeToConfig(ImTheme theme)
      Persists the given theme name to the client config.
    • setTheme

      public void setTheme(ImTheme theme)
      Applies the given theme and saves it to config.
    • setTheme

      public void setTheme(ImTheme theme, boolean saveToConfig)
    • getCurrentTheme

      public ImTheme 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 from MinecraftMixin.engine$close(CallbackInfo).
    • free

      public void free()
      Disposes all ImGui resources.
      Angegeben von:
      free in Schnittstelle org.lwjgl.system.NativeResource