Skip to content

UI Settings ​

UI Settings tells the game which scenes make up the interface and which pictures it uses for the mouse cursor and the minimap. The scenes themselves are described in the User Interface chapter; this page is the editor that points the game at them.

Open Game Settings > UI Settings. The editor is one column of sections (a section for each kind of setting, with the groups inside it), and under them The interface at a glance (see below). Changes are saved as you make them to res://src/data/config_data/ui_settings_config.tres.

UI scene paths ​

The scenes the game loads. Each must have a root of a specific class, or it cannot work.

SettingThe sceneRoot classPage
Ui scene main menuThe main menuCurrentUI (the template is a MainMenu)Main Menu
Ui scene character creationWhere the player makes a heroCurrentUI (the template is a CharacterCreationUI)Character Creation screen
Ui scene in gameThe interface while playing: HUD and windowsInGameUIIn Game
Ui scene loading screenThe loading screenLoadingScreenLoading Screen
Ui scene nameplateThe bar over an entity or objectNameplateNameplates

A scene that extends the class is fine: a root of your own class_name MyInGameUI extends InGameUI counts as an InGameUI.

Tooltip scenes ​

SettingThe sceneRoot class
Item tooltipAn itemTooltipItem
Ability tooltipAn abilityTooltipAbility
Effect tooltipA buff or a debuffTooltipEffect
Skill node tooltipA node of a skill treeTooltipSkillNode
Description tooltipA name and a textTooltipDescription
Entity tooltipAn NPC, a pet, a party member or an object under the pointer. Empty: none is shownTooltipEntity

See Tooltips.

Mouse cursors ​

The pictures the mouse cursor changes to.

SettingWhen
Cursor defaultNormally
Cursor interactOver something the player can interact with
Cursor chatOver someone the player can talk to
Cursor attackOver something the player can attack
Cursor targetWhile choosing a target for an ability

A cursor left empty uses the system cursor.

Minimap icons ​

The markers the minimap draws.

SettingMarks
Minimap entity markerAny other entity
Minimap current player markerThe character the player controls
Minimap quest giverAn NPC that gives a quest
Minimap quest npc enemyAn enemy that is a quest objective
Minimap quest interactableAn object that is a quest objective
Minimap interactable resourceA gathering node
Minimap treasureTreasure and loot
Minimap rabbitholeA transition: a door, a teleport

Map icons ​

Under the settings, the Map icons section is the catalog of pictures the map draws: one named icon for each kind of thing on it. The toolkit comes with 46 icons (SVG, assets/ui/map_icons), each a white glyph with a dark outline: the game lays a colour on the glyph, so one picture serves every faction and state (a friendly character green, an enemy red, a quest gold).

GroupIcons
Questsquest_available, quest_complete (ready to hand in), quest_in_progress, hint
Servicesmailbox, shop, inn, bank, trainer
Professionsblacksmith, tailor, alchemy, leatherworking, enchanting, jewelcrafting, cooking, fishing, mining, herbalism, engineering, inscription
Gatheringnode_ore, node_herb, node_wood, node_fish
Creaturesenemy_normal, enemy_elite, enemy_rare, enemy_boss, npc_friendly
Placesvillage, town, city, poi, graveyard, corpse
Travelfast_travel, map_pin (the player's own marker), cave, door, hole, portal
Lootloot_gear, loot_chest, loot_bag
Playerplayer

Each row shows the picture on a ground colour, its name, the picture (click to choose another image), the colour laid on it, Faction (the colour comes from the faction of whoever it marks instead), where it shows (Mini map, World map) and Reset (puts a toolkit icon back as it comes) or Remove (your own). Add your own icon makes a new one with an id you choose; Add missing toolkit icons brings back any that you removed or that a new version added. Every change is saved at once, to src/data/config_data/map_icon_catalog.tres.

The minimap uses the catalog for what the settings above have no picture for: a quest giver is quest_available, a quest target quest_in_progress, treasure loot_chest, a gathering node node_ore, a transition portal, any other entity the enemy or friendly icon by its faction. A picture you set in the settings above still wins. In code: MapIconCatalog.get_catalog().get_texture(&"blacksmith").

SVG is the right format for these: it stays sharp at any size, is tiny, and a single white shape is tinted by code. The toolkit imports them at twice their size (128 px), lossless and with mipmaps so they scale down cleanly on a minimap. To make your own, draw a white shape with a dark outline on a 64 x 64 grid (the toolkit's are made by tools/map_icons/make_icons.mjs: add a line and run it).

Not yet: choosing an icon on an NPC, an interactable or a spawner, the icons on the world map, and the minimap draws the glyph without its outline (its markers are lights on the ground).

Tactical command icons ​

The icons of the tactical commands (movement, attack, heal, interact, target), for a game that gives orders to the party.

The interface at a glance ​

Under the settings, the editor reads the scenes and shows what is in them, so you can see how the interface is put together without opening each scene. Refresh reads them again (after you change a scene or a path).

The scenes and their roots ​

A table with one row for each scene above: its name, the class its root must have, and the result:

ResultMeaning
ok (green)The root is of the right class
The root of the scene must be of class X (its root is Y) (red)The scene is the wrong scene, or the script is missing from the root
The scene does not exist (red)The path points at nothing
(no scene set) (yellow)Nothing is set. The game needs it

A wrong root also makes the settings invalid when the project is validated.

The in-game interface ​

For the in-game scene, three lists. The scene is read, not run, so it works in the editor with nothing started.

  • UI panels: each panel of the UIPanels container with its class, its panel name, its key number and the key that number has now in the Input Map (no key set when the action has none). This is the place to see which panel has which number at a glance.
  • Interaction panels: the windows of the InteractionPanels container.
  • HUD elements: the children of HUD.

Warnings ​

Shown in red above the lists:

WarningThe problem
Panel key N is set on two panelsTwo panels have the same number. Only the first opens. The second panel's row also says (same as another panel)
A panel has panel key N but no panel nameA panel with a key and no name cannot be opened by name
X is in UIPanels but is not a PanelUIEverything in UIPanels must be a panel, or it is not a window
X is in HUD but is not a HUDUIElementIt works, but it does not scale and gets no signals

Popups ​

The last list of the interface section is the popups of the game: every scene built on a PopupUI that is saved in the project. A popup has no editor of its own; it is a scene, and its behaviour (Esc, pause, blocking input, closing by itself, once only, what to do when another is open) is set with the options of its root node. See Popups for how to build one.

PartWhat it does
Popups (N)The number of popups, with a row for each: its name, its scene (in red when it is missing or its root is not a PopupUI) and a line of what it does (shown once, pauses the game, blocks input, Esc closes, waits when busy)
Create new popupAsks for a name and saves a copy of the Message popup of the toolkit in src/data/popups/, named after it, and puts it in the list
OpenOpens the scene of the popup in the editor
RemoveTakes the popup out of the list. The scene is not deleted, and saving it puts the popup back

See also ​