Skip to content

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:

PartWhat it is
current_ui_container, current_uiThe one interface scene that is loaded now: main menu, character creation or in game
tool_tipsThe TooltipManager: the five tooltips, made once
loading_screenThe LoadingScreen
transition_rectThe black fade between scenes
popupsThe PopupManager (see Popups)
messagesThe MessagesManager: the fading messages
cinematic_player, cutscene_containerVideo cinematics and in-game cutscenes
debug_menuThe 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. In initialize_ui they 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_signals and _connect_panel_signals connect those to its own signals when the scene starts. A HUDUIElement child gets them, and so does a PanelUI window; 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:

ArrayHolds
hud_interfacesThe children of HUD
ui_panel_interfacesThe children of UIPanels (each cast to PanelUI)
all_window_interfacesEvery 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:

ClassWhat it does
SceneStateReaderThe 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)
InterfaceOverviewFrom 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 ​

ClassWhat it is
CharacterCreationUICharacterCreationUI - 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
CurrentUIParent class for current UIs Holds logifc for all possible singals to be connected to the UIManager
InGameUIInGameUI manages the interactive user interface elements during gameplay.
LoadingScreenLoadingScreen manages the visual feedback during loading processes, providing step-by-step progress updates and status information.
MainMenuMainMenu manages the game's main menu interface and navigation.
SplashScreenSplashScreenManager handles the display of splash screens at game startup.

HUD ​

ClassWhat it is
ActionBarButtonModern action bar button that handles both abilities and items
ActionBarUIThis class manages the action bar UI, including ability/items slots, resource bars, buff/debuff displays, and cast bar functionality.
AuraAura represents and manages a single status effect (buff or debuff) in the game's user interface.
BreathBarUIThe 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.
CastBarModular 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
ChatBoxThe chat box: a HUD element with tabs.
ChatTabA tab of the chat box: a name, the channels it shows and, for the combat channels, the kinds of event it shows.
ChatViewerThe base class of everything that shows messages: the chat box, a level up toast, the warning label, a loot feed.
CombatLogThis class manages the combat log interface, displaying various types of combat information.
DamageMeterUIThis class manages the display of detailed combat statistics, including damage and healing done by each entity.
DamaterBarUIThis class represents a details bar in the UI, typically used to display entity-specific information such as damage or healing amounts.
ExperienceBarThe experience bar of the action bar: a progress bar and a label that follow the experience of its player (entity_xp_changed).
HUDUIElementParent class for all HUD UI elements contains useful exports for ui scaling options.
MiniMapMinimapCamera is a specialized camera used for rendering a top-down view of the game world, typically displayed as a minimap in the user interface.
MiniMenuButtonIndividual button in the MiniMenu for toggling a UI panel.
MiniMenuUIMiniMenuUI is a row of quick-access buttons that open the panels of the interface.
PartyFramePartyFrame Class Modern party member frame using PoolBarUI system Displays health, resource, and status effects with settings integration
PartyFramesUIThis class manages the display of party frames and tracked abilities for all party members.
QuestTrackerQuestUIOne tracked quest in the quest tracker: the title of the quest and its objectives.
QuestTrackerQuestUIObjectiveLabelOne objective in the quest tracker: its text and its progress, with an animation (a color change) when it is completed.
QuestTrackerUIQuestTrackerUI manages the on-screen display of tracked quests and their objectives.
SpeechBubblesShows 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.
SubtitlesUIThe subtitles of the game: a container with the name of the speaker and the line that is said, at the bottom of the screen.
TagMapMarkersThe 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.
TagUnitFrameA 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.
UnitFrameThis class serves as a base for different types of unit frames in the game UI.

Nameplates ​

ClassWhat it is
FloatingTextA short text that floats up from an entity's nameplate marker and fades out: damage numbers, "Dodge", "Immune", heals.
NameplateThis class manages the display of entity nameplates in the game, showing health, cast bars, and status effects (buffs/debuffs).
NameplateManagerManages the creation, positioning, and cleanup of UI nameplates for various entities in the game.
PoolBarUIUI component for displaying a single pool (health or resource)

Interaction panels ​

ClassWhat it is
AnimatedTextLabelA RichTextLabel that can type out text character by character Simplified version for conversation system use
ConversationPanelUIUI panel for displaying conversations using the new Conversation system Refactored to extend PanelUI instead of MarginContainer
CraftingPanelUIEnhanced 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
CraftMaterialIconUIEnhanced material icon UI with visual feedback for material availability
DiceRollPanelUI panel for displaying dice rolls with animation and player interaction
ReadablePanelUIUI 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
ResponseButtonA response option button in the conversation UI
SocketPanelUISocket Panel UI for managing sockets on equipment items Opens when shift+right-clicking equipment with sockets Refactored to remove ui_manager references
SocketSlotUIIndividual 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
TrainerPanelUIThe 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.
VendorPanelUIRefactored 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
VendorSlotUIClean VendorSlotUI that initializes everything in setup_vendor_slot() instead of _ready() Refactored to use system_hub instead of ui_manager

UI panels ​

ClassWhat it is
AbilityPanelUIPaginated 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
ActiveEffectsDisplayUIActive 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
CharacterBackdropSceneThis class represents the 3D scene setup for displaying character previews in the UI.
CharacterPanelUICharacter 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!
CharacterPreviewManagerManages a 3D character preview for UI panels Creates a synchronized copy of the entity's skeleton that mirrors visual changes
CharacterSheetStatIndividual 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
CharacterStatsDisplayUICharacter 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
ChoiceButtonUIIndividual button UI for a choice option in ChoiceSelectionPopup Similar to SkillNodeUI but without rank display
ChoiceSelectionPopupPopup UI for selecting between choice options in a ChoiceSkillNode Displays each choice as a button with icon and shows tooltip on hover
CombatReportPanelUIThe 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.
CurrencyDisplayEnhanced display component for showing a single currency with icon and amount
EquipmentInventoryUIClean equipment panel using the unified ItemSlotUI system
InventoryUIClean and Simple Universal Inventory UI - Refactored to extend PanelUI Updated to remove VENDOR_INVENTORY logic (now handled by dedicated VendorSlotUI)
ItemSlotUIFully Unified Slot UI - handles ALL slot types (inventory, equipment, vendor) No need for separate InventorySlotUI, EquipmentSlotUI, etc.
PanelUIThe 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.
QuestLogButtonUIOne quest in the list of the quest log: its name, with a highlight when it is the quest shown.
QuestLogPanelUIThe 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.
QuestLogQuestObjectiveLabelOne objective in the quest log: an icon, its text, its progress and a mark when it is complete.
SkillNodeUIVisualVisual representation of a skill node for player UI (runtime) Follows ActionBarButton pattern - simple icon + border with modulate changes
SkillTreePanelUIMain panel for displaying player skill trees with integrated canvas Simple pan controls, no zoom, no grid
SpellBookAbilityUIOne ability in the spellbook: its icon and name.
SpellBookPanelUISpell 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
TitleUIThe 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).
WorldMapPanelUIThe world map window: the picture of the world with its zones laid over it.
WorldMapViewThe 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 ​

ClassWhat it is
TooltipAbilityTooltipAbility is a specialized UI component for displaying detailed information about abilities in the game.
TooltipBaseThe 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.
TooltipDescriptionThe plain-text tooltip: a name and a description.
TooltipEffectThe tooltip of an effect on an entity (a buff or a debuff): its name and its description.
TooltipEntityThe 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.
TooltipItemComprehensive tooltip for all item types with vendor context support Now supports both ItemInstance (full detail) and ItemDefinition (basic) display
TooltipManagerMakes 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.
TooltipSkillNodeTooltip 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 ​

ClassWhat it is
DebugMenuComprehensive debug menu for testing and debugging game systems Provides access to world transitions, time control, player manipulation, spawning, quest triggers, and more
DefaultPopupUIThe popup that comes with the toolkit: a title, a text (with BBCode and the <words> of TextTokens), an optional icon and a button.
DragControllerCentralized drag-and-drop coordinator Handles all drag logic that was previously in DraggedItem Works with signals from UI components to coordinate operations
DraggedContentUnified visual component for dragging both items AND abilities Pure display - NO LOGIC Replaces both DraggedItem and DraggedAbility
GameOverPanelUIGameOverPanelUI displays death/game over UI based on the game's death behavior setting.
InGameMenuInGameMenu manages the pause menu during gameplay.
MessagesManagerDisplays 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 ...).
PopupUIThe root of a popup scene.
ZoneBannerThe 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").
ClassWhat it is
ArrowSelectionButtonArrowSelectionButton - Cyclic selection control with arrow navigation Supports both numeric options (1 to N) and string-based options with display names
ButtonSubMenuA 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.
CharacterCreation3DSceneCharacterCreation3DScene - Manages the 3D character preview in character creation Handles skeleton instantiation, customization preview, and idle animations
CharacterCreationInfoBoxCharacterCreationInfoBox - Displays template and class information in character creation Shows two sections: Template info (for templates) and Class info (for all modes)
ClassSelectionButtonClassSelectionButton - Button for selecting a player class in character creation Displays class icon, name, and handles selection state
ColorButtonColorButton - Button that displays and selects a color Used in character creation for skin, hair, and eye color selection
CreditsThe credits scroll of the main menu: an animation that rolls, with credits_finish emitted when it ends.
CustomSliderCustomSlider - Labeled slider control for blend shape and other value adjustments Emits value_changed signal with the new value when slider changes
SaveFileButtonOne saved game in the list of the load menu: its name and details, with colors for the unselected, the hovered and the selected state.
SaveLoadMenuSaveLoadMenu manages the save/load interface for both main menu and in-game menu.
SettingsCheckBoxModern checkbox component that works with any boolean setting property
SettingsColorButtonModern color picker component that works with any Color setting property
SettingsDragBarModern slider component that works with any numeric setting property
SettingsKeybindButtonModern keybind button that works with any InputMap action dynamically
SettingsMenuUIDynamically builds and manages the runtime settings menu from Settings resource
SettingsOptionButtonModern option button component that works with any enum setting property
TemplateButtonTemplateButton - Button for selecting character templates or custom creation Used in the character creation template list

See also ​