User Interface: how it is built ​
The User Interface chapter explains the scenes. This page covers the classes behind them: who loads what, how a request travels from a button to a tooltip, and how windows are managed.
Who loads the interface ​
UIManager (a CanvasLayer, held by the system hub) owns everything that sits over the game:
| Part | What it is |
|---|---|
current_ui_container, current_ui | The one interface scene that is loaded now: main menu, character creation or in game |
tool_tips | The TooltipManager: the five tooltips, made once |
loading_screen | The LoadingScreen |
transition_rect | The black fade between scenes |
popups | The PopupManager (see Popups) |
messages | The MessagesManager: the fading messages |
cinematic_player, cutscene_container | Video cinematics and in-game cutscenes |
debug_menu | The debug menu, when debug mode is on |
initialize_ui_scenes(state, hub) frees the current interface and loads the scene for the game state (MAIN_MENU, CHARACTER_CREATION, MAIN_GAME) from UISettingsConfig, threaded, updating the loading screen while it loads. When the scene is ready it is added to the container, initialize_ui(system_hub) is called, and ui_ready is emitted.
CurrentUI: the base of every interface scene ​
CurrentUI holds the signals the game connects to and the relays every interface needs:
- Requests that leave the interface:
new_game_requested,character_creation_requested,load_game_requested,return_to_main_menu_requested. The transition manager listens to them. - Requests that reach the shared parts:
show_*_tooltip,hide_tooltip,message_request,warning_message_request,ui_sfx_request. Ininitialize_uithey are connected to the matching methods of the UI manager, so a scene never needs to find a tooltip.
Requests travel upward ​
The parts of the interface are built so that none of them knows another:
text
ActionBarButton ─ item_tooltip_requested ─► ActionBarUI ─► InGameUI ─ show_item_tooltip ─► UIManager ─► TooltipItem
(a slot) (HUDUIElement) (CurrentUI) (shows it next to the mouse)- A HUD element (
HUDUIElement) and a panel (PanelUI) declare the same set of signals: tooltips, messages, sounds, plus the drag signals. InGameUI._connect_hud_signalsand_connect_panel_signalsconnect those to its own signals when the scene starts. AHUDUIElementchild gets them, and so does aPanelUIwindow; a node of another class gets nothing.- Drag signals (
drag_from_inventory_requested,ability_drag_requested...) are connected only if the node has the signal, so a part opts in by declaring it.
Calls from the game into the interface ​
Interactions and systems never reference scene nodes. They call a method of the UI manager (open_vendor_panel, toggle_external_inventory, open_crafting_interface, show_readable_data, toggle_panel_number...). The manager passes it to current_ui only if current_ui.has_method(...). An interface scene without the method ignores the request, and a custom interface adds its own methods.
Windows ​
InGameUI keeps three arrays:
| Array | Holds |
|---|---|
hud_interfaces | The children of HUD |
ui_panel_interfaces | The children of UIPanels (each cast to PanelUI) |
all_window_interfaces | Every window: the interaction panels (found by unique name, plus the trainer panel made in code) and the UI panels |
open_window(window) hides every window in all_window_interfaces and shows the one asked for; close_window hides it (with the special cases of the vendor, which clears its slots, and the conversation, which plays no sound); update_ui_menu_state sets system_hub.ui_menu_open from whether any window is visible. toggle_panel(name) and toggle_panel_number(n) find a UI panel by its panel_name or panel_keybind; get_panel_number_problems() lists the panels that share a number.
The player controller opens panels by number: it listens for the input actions panel_keybind_1 to panel_keybind_20 and calls ui_manager.toggle_panel_number(n).
Reading a scene without running it ​
The editor needs to know what an interface scene holds (to check the root class of each scene, to list the panels and their numbers) without instancing it, because the scene's scripts would run. Two helpers read the saved state of the scene:
| Class | What it does |
|---|---|
SceneStateReader | The nodes of a PackedScene: name, path, parent, the classes of its script (nearest first) and the options the scene sets (or the script's defaults) |
InterfaceOverview | From that: the HUD elements, interaction panels and UI panels of the in-game scene, with the panel key numbers, and the problems found (two panels with one number, a node of the wrong class) |
UISettingsConfig.get_scene_problems() uses the same reader to check the root class of each scene (REQUIRED_ROOT_CLASSES), and the UI Settings editor shows both in InterfaceOverviewPanel.
The classes ​
Scenes ​
| Class | What it is |
|---|---|
| CharacterCreationUI | CharacterCreationUI - Prefab-Driven Character Creation Controller Populates UI containers using provided PackedScenes and manages character customization state Supports both pre-made templates and custom character creation with voice selection |
| CurrentUI | Parent class for current UIs Holds logifc for all possible singals to be connected to the UIManager |
| InGameUI | InGameUI manages the interactive user interface elements during gameplay. |
| LoadingScreen | LoadingScreen manages the visual feedback during loading processes, providing step-by-step progress updates and status information. |
| MainMenu | MainMenu manages the game's main menu interface and navigation. |
| SplashScreen | SplashScreenManager handles the display of splash screens at game startup. |
HUD ​
| Class | What it is |
|---|---|
| ActionBarButton | Modern action bar button that handles both abilities and items |
| ActionBarUI | This class manages the action bar UI, including ability/items slots, resource bars, buff/debuff displays, and cast bar functionality. |
| Aura | Aura represents and manages a single status effect (buff or debuff) in the game's user interface. |
| BreathBarUI | The breath of the player that is played: a bar that shows while the breath is not full (under water, or just back from it) and goes again when it is. |
| CastBar | Modular cast bar component that can be used by ActionBarUI, Nameplate, or any UI Automatically connects to entity casting signals and manages its own display state |
| ChatBox | The chat box: a HUD element with tabs. |
| ChatTab | A tab of the chat box: a name, the channels it shows and, for the combat channels, the kinds of event it shows. |
| ChatViewer | The base class of everything that shows messages: the chat box, a level up toast, the warning label, a loot feed. |
| CombatLog | This class manages the combat log interface, displaying various types of combat information. |
| DamageMeterUI | This class manages the display of detailed combat statistics, including damage and healing done by each entity. |
| DamaterBarUI | This class represents a details bar in the UI, typically used to display entity-specific information such as damage or healing amounts. |
| ExperienceBar | The experience bar of the action bar: a progress bar and a label that follow the experience of its player (entity_xp_changed). |
| HUDUIElement | Parent class for all HUD UI elements contains useful exports for ui scaling options. |
| MiniMap | MinimapCamera is a specialized camera used for rendering a top-down view of the game world, typically displayed as a minimap in the user interface. |
| MiniMenuButton | Individual button in the MiniMenu for toggling a UI panel. |
| MiniMenuUI | MiniMenuUI is a row of quick-access buttons that open the panels of the interface. |
| PartyFrame | PartyFrame Class Modern party member frame using PoolBarUI system Displays health, resource, and status effects with settings integration |
| PartyFramesUI | This class manages the display of party frames and tracked abilities for all party members. |
| QuestTrackerQuestUI | One tracked quest in the quest tracker: the title of the quest and its objectives. |
| QuestTrackerQuestUIObjectiveLabel | One objective in the quest tracker: its text and its progress, with an animation (a color change) when it is completed. |
| QuestTrackerUI | QuestTrackerUI manages the on-screen display of tracked quests and their objectives. |
| SpeechBubbles | Shows what is said and described over the head of the one who says it: a text in the world that stays for a few seconds. |
| SubtitlesUI | The subtitles of the game: a container with the name of the speaker and the line that is said, at the bottom of the screen. |
| TagMapMarkers | The icons of the minimap: an entity or an object that has an entity tag with "Show on the map" gets the icon of the tag (its map icon, or the icon of the tag) on the map, where it is. |
| TagUnitFrame | A unit frame for an entity tag (Boss, Elite ...): a large frame that appears while the target of the player in control has the tag, and goes when it has not. |
| UnitFrame | This class serves as a base for different types of unit frames in the game UI. |
Nameplates ​
| Class | What it is |
|---|---|
| FloatingText | A short text that floats up from an entity's nameplate marker and fades out: damage numbers, "Dodge", "Immune", heals. |
| Nameplate | This class manages the display of entity nameplates in the game, showing health, cast bars, and status effects (buffs/debuffs). |
| NameplateManager | Manages the creation, positioning, and cleanup of UI nameplates for various entities in the game. |
| PoolBarUI | UI component for displaying a single pool (health or resource) |
Interaction panels ​
| Class | What it is |
|---|---|
| AnimatedTextLabel | A RichTextLabel that can type out text character by character Simplified version for conversation system use |
| ConversationPanelUI | UI panel for displaying conversations using the new Conversation system Refactored to extend PanelUI instead of MarginContainer |
| CraftingPanelUI | Enhanced crafting panel that integrates with the existing UI system Handles multiple schools, recipe selection, material display, and crafting queue Uses Tween for smooth progress bar animation instead of polling Refactored to extend PanelUI instead of MarginContainer |
| CraftMaterialIconUI | Enhanced material icon UI with visual feedback for material availability |
| DiceRollPanel | UI panel for displaying dice rolls with animation and player interaction |
| ReadablePanelUI | UI panel for displaying readable items (books, scrolls, notes, etc.) Features multi-page support with navigation and conditional title display Refactored to extend PanelUI instead of Control |
| ResponseButton | A response option button in the conversation UI |
| SocketPanelUI | Socket Panel UI for managing sockets on equipment items Opens when shift+right-clicking equipment with sockets Refactored to remove ui_manager references |
| SocketSlotUI | Individual socket slot display - supports both tooltip and interactive socket panel modes Tooltips disappear on hover anyway, so all functionality is always enabled Refactored to use system_hub instead of ui_manager |
| TrainerPanelUI | The list of lessons of a trainer: what each teaches, what it costs, a Learn button, grey with the reason when a requirement is not met, "Known" when the character has all of it. |
| VendorPanelUI | Refactored vendor panel that uses definition-based VendorSlotUI for shop display Left side: Vendor items (VendorSlotUI grid) Right side: Player inventory (InventoryUI for selling items back) Refactored to remove ui_manager references |
| VendorSlotUI | Clean VendorSlotUI that initializes everything in setup_vendor_slot() instead of _ready() Refactored to use system_hub instead of ui_manager |
UI panels ​
| Class | What it is |
|---|---|
| AbilityPanelUI | Paginated Ability Panel - Displays abilities in a 3x5 grid with page navigation Shows active abilities first, then passive abilities Follows the new architecture pattern: setup once, signals handle updates No stored player references - gets initial data then relies on signals |
| ActiveEffectsDisplayUI | Active Effects Display UI - Shows all active effects on the current player Gets initial data from GameHost.party_manager.current_player, then uses effects component signals for updates Uses color coding: Green for buffs, Red for debuffs, Grey/White for neutral effects No stored references needed - connects once to signals at setup Refactored to emit effect tooltip signals |
| CharacterBackdropScene | This class represents the 3D scene setup for displaying character previews in the UI. |
| CharacterPanelUI | Character Panel UI - A fully self-sufficient character information interface Gets initial data from party_manager.current_player, then relies on signals for updates No stored references needed - signals handle everything! |
| CharacterPreviewManager | Manages a 3D character preview for UI panels Creates a synchronized copy of the entity's skeleton that mirrors visual changes |
| CharacterSheetStat | Individual stat display component for character sheet Displays a stat name and its current value with color coding Stores the stat definition resource for enhanced functionality (shared resource, no memory overhead) Refactored to emit tooltip signals instead of calling ui_manager |
| CharacterStatsDisplayUI | Character Stats Display UI - Dynamic stats interface with individual stat connections Gets initial data from GameHost.party_manager.current_player, then individual stats handle their own updates No stored references needed - each stat component connects directly to its stat instance signals Refactored to forward tooltip signals from stat components |
| ChoiceButtonUI | Individual button UI for a choice option in ChoiceSelectionPopup Similar to SkillNodeUI but without rank display |
| ChoiceSelectionPopup | Popup UI for selecting between choice options in a ChoiceSkillNode Displays each choice as a button with icon and shows tooltip on hover |
| CombatReportPanelUI | The combat report window: the fights the game kept (Gameplay Config > Combat log keep), the totals of the selected fight and its events, which can be filtered by kind and exported to a file. |
| CurrencyDisplay | Enhanced display component for showing a single currency with icon and amount |
| EquipmentInventoryUI | Clean equipment panel using the unified ItemSlotUI system |
| InventoryUI | Clean and Simple Universal Inventory UI - Refactored to extend PanelUI Updated to remove VENDOR_INVENTORY logic (now handled by dedicated VendorSlotUI) |
| ItemSlotUI | Fully Unified Slot UI - handles ALL slot types (inventory, equipment, vendor) No need for separate InventorySlotUI, EquipmentSlotUI, etc. |
| PanelUI | The base of every window of the interface (the character sheet, the spellbook, the inventory, the quest log, the windows of interactions): the title bar, the close button, dragging, and the signals that relay tooltips, messages, sounds and drag requests to the in-game interface. |
| QuestLogButtonUI | One quest in the list of the quest log: its name, with a highlight when it is the quest shown. |
| QuestLogPanelUI | The quest log window: the lists of active and completed quests (a button for each, made from quest_log_button), and the name, the description and the objectives (made from quest_log_objective_label) of the selected quest. |
| QuestLogQuestObjectiveLabel | One objective in the quest log: an icon, its text, its progress and a mark when it is complete. |
| SkillNodeUIVisual | Visual representation of a skill node for player UI (runtime) Follows ActionBarButton pattern - simple icon + border with modulate changes |
| SkillTreePanelUI | Main panel for displaying player skill trees with integrated canvas Simple pan controls, no zoom, no grid |
| SpellBookAbilityUI | One ability in the spellbook: its icon and name. |
| SpellBookPanelUI | Spell Book Panel UI - Container for abilities and skill tree Follows the new architecture pattern: setup once, signals handle updates Contains AbilityPanelUI for spells and future SkillTree panel |
| TitleUI | The title bar of a window: the name of the panel and, when has_exit_button is on, a button that closes it (exit_button_pressed). |
| WorldMapPanelUI | The world map window: the picture of the world with its zones laid over it. |
| WorldMapView | The map itself, for the world map window: the picture of the world with the zones laid over it (the shader world_map.gdshader reads the ZoneMap), the names of the zones, the marker of the party, and the mouse: the zone under the mouse lights up (zone_hovered), a click on it (zone_clicked) is for the window to open its map. |
Tooltips ​
| Class | What it is |
|---|---|
| TooltipAbility | TooltipAbility is a specialized UI component for displaying detailed information about abilities in the game. |
| TooltipBase | The base of the five tooltips: the margin from the edges of the screen, and the label settings they share (font, font size, outline and shadow), which are set on the root node of each tooltip scene. |
| TooltipDescription | The plain-text tooltip: a name and a description. |
| TooltipEffect | The tooltip of an effect on an entity (a buff or a debuff): its name and its description. |
| TooltipEntity | The tooltip of an entity or an object (an NPC, a pet, a party member, a chest ...): its name, its entity tags, its type, its level, its faction and the standing of the player with it, its description and the quest objectives that are about it. |
| TooltipItem | Comprehensive tooltip for all item types with vendor context support Now supports both ItemInstance (full detail) and ItemDefinition (basic) display |
| TooltipManager | Makes the five tooltips once (item, effect, ability, skill node and description) from the scenes of UI Settings and shows or hides the one that is asked for. |
| TooltipSkillNode | Tooltip display for skill nodes showing name, description, and rewards Handles different node types: basic, ranked, and choice nodes Integrates full tooltips for complex rewards (abilities, items, effects) |
In game: menus, dragging, messages ​
| Class | What it is |
|---|---|
| DebugMenu | Comprehensive debug menu for testing and debugging game systems Provides access to world transitions, time control, player manipulation, spawning, quest triggers, and more |
| DefaultPopupUI | The popup that comes with the toolkit: a title, a text (with BBCode and the <words> of TextTokens), an optional icon and a button. |
| DragController | Centralized drag-and-drop coordinator Handles all drag logic that was previously in DraggedItem Works with signals from UI components to coordinate operations |
| DraggedContent | Unified visual component for dragging both items AND abilities Pure display - NO LOGIC Replaces both DraggedItem and DraggedAbility |
| GameOverPanelUI | GameOverPanelUI displays death/game over UI based on the game's death behavior setting. |
| InGameMenu | InGameMenu manages the pause menu during gameplay. |
| MessagesManager | Displays the short messages that fade at the top of the screen: a viewer of every channel that is marked "also show as a fading message" in the Chat settings (System, Highlight, Warning, Level up, Quest ...). |
| PopupUI | The root of a popup scene. |
| ZoneBanner | The banner that shows the name of a zone when the party enters it: a big line (the zone, "Elderwood") and a small line under it (the sub-zone, or the line of the zone: "Home of the old mill"). |
Menus ​
| Class | What it is |
|---|---|
| ArrowSelectionButton | ArrowSelectionButton - Cyclic selection control with arrow navigation Supports both numeric options (1 to N) and string-based options with display names |
| ButtonSubMenu | A button of the settings menu that opens one of its sub menus (display, audio, controls ...): its text, with colors for the normal, the highlighted and the active state. |
| CharacterCreation3DScene | CharacterCreation3DScene - Manages the 3D character preview in character creation Handles skeleton instantiation, customization preview, and idle animations |
| CharacterCreationInfoBox | CharacterCreationInfoBox - Displays template and class information in character creation Shows two sections: Template info (for templates) and Class info (for all modes) |
| ClassSelectionButton | ClassSelectionButton - Button for selecting a player class in character creation Displays class icon, name, and handles selection state |
| ColorButton | ColorButton - Button that displays and selects a color Used in character creation for skin, hair, and eye color selection |
| Credits | The credits scroll of the main menu: an animation that rolls, with credits_finish emitted when it ends. |
| CustomSlider | CustomSlider - Labeled slider control for blend shape and other value adjustments Emits value_changed signal with the new value when slider changes |
| SaveFileButton | One saved game in the list of the load menu: its name and details, with colors for the unselected, the hovered and the selected state. |
| SaveLoadMenu | SaveLoadMenu manages the save/load interface for both main menu and in-game menu. |
| SettingsCheckBox | Modern checkbox component that works with any boolean setting property |
| SettingsColorButton | Modern color picker component that works with any Color setting property |
| SettingsDragBar | Modern slider component that works with any numeric setting property |
| SettingsKeybindButton | Modern keybind button that works with any InputMap action dynamically |
| SettingsMenuUI | Dynamically builds and manages the runtime settings menu from Settings resource |
| SettingsOptionButton | Modern option button component that works with any enum setting property |
| TemplateButton | TemplateButton - Button for selecting character templates or custom creation Used in the character creation template list |