Package foundry.veil.api.client.editor
Class SingleWindowEditor
java.lang.Object
foundry.veil.api.client.editor.SingleWindowEditor
- All Implemented Interfaces:
Editor
,AutoCloseable
,org.lwjgl.system.NativeResource
- Direct Known Subclasses:
DeviceInfoViewer
,FramebufferEditor
,LightEditor
,OpenCLEditor
,PostEditor
,ResourceManagerEditor
,ShaderEditor
,TextureEditor
Displays a single window as the editor. Automatically handles the close widget in the corner.
-
Field Summary
Fields inherited from interface foundry.veil.api.client.editor.Editor
DEFAULT_GROUP, DEFERRED_GROUP, EXAMPLE_GROUP, INFO_GROUP, RENDERER_GROUP, RESOURCE_GROUP
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.editor.Editor
free, getDisplayName, getGroup, isEnabled, isMenuBarEnabled, isOpen, onHide, renderLast, renderMenuBar
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
open
protected final imgui.type.ImBoolean open
-
-
Constructor Details
-
SingleWindowEditor
public SingleWindowEditor()
-
-
Method Details
-
render
public void render()Description copied from interface:Editor
Renders this editor to the screen. -
onShow
public void onShow()Description copied from interface:Editor
Called when this editor is first opened. -
renderComponents
protected abstract void renderComponents()Adds all components inside the window. -
getWindowTitle
protected net.minecraft.network.chat.Component getWindowTitle()- Returns:
- The title of the window
-