Features
Core Components
Notifications
Display Windows 10-style notifications to users
Components
Reusable UI components like emulated players and modals
EssentialGUI
Pre-styled base screen with Essential theming
Elementa
Modern declarative UI framework integration
Quick Start
Creating a Custom GUI
ExtendEssentialGUI to create a styled screen:
Displaying the GUI
EssentialGUI Class
TheEssentialGUI class provides a styled base screen with Essential’s dark theme and layout.
Constructor Parameters
| Parameter | Type | Description |
|---|---|---|
version | ElementaVersion | Elementa version for improved behavior |
guiTitle | String | Title displayed in the title bar |
newGuiScale | Int | GUI scale to use (default: current scale) |
restorePreviousGuiOnClose | Boolean | Restore previous screen on close |
discordActivityDescription | String? | Discord Rich Presence description |
Key Components
TheEssentialGUI provides several pre-configured components:
Customization
Override color methods to customize the theme:Back Button
Control the back button visibility:Setting Title Dynamically
GuiRequiresTOS
Implement this interface to require TOS acceptance before opening:Best Practices
Use ElementaVersion.V5
Use ElementaVersion.V5
Always specify
ElementaVersion.V5 (or latest) for improved behavior and bug fixes.Add Content to content Container
Add Content to content Container
Always add your UI components to the
content container, not the window or other containers.Use Essential's GuiUtil
Use Essential's GuiUtil
Use
EssentialAPI.getGuiUtil().openScreen() to display screens for proper handling.Respect GUI Scale
Respect GUI Scale
Let users control GUI scale. Use the default scale parameter.
Next Steps
Notifications
Learn how to display notifications
Components
Use pre-built UI components
Elementa Guide
Learn the Elementa framework
GuiUtil
Explore GUI utilities