Skip to content

The UI Setup window

The UI Setup window gets a scene ready for the Intrigues UI, tells you in plain sentences what is missing, and lists every bound component so you can see why a label does not update. It works on the active scene, or on the prefab you have open. No button saves anything. Each one that changes the scene is one undo step.

  • You want a working HUD and windows in a new scene, as a base or to read.
  • A button, tooltip or dialogue does nothing in your scene.
  • A label stays empty and you do not know which component writes it.

Open Tools > MrW > Intrigues > UI Setup. The window is titled UI Setup. Its header shows UI Setup, a line Working on: with the scene or prefab, and in Play mode a pill Play mode: read only.

Three tabs follow: Start, Scene check and Bindings. The Scene check tab shows the number of problems, as in Scene check (2), when there are any. A message after a button press appears in a band under the tabs.

The window looks again by itself a moment after the hierarchy, the undo list, Play mode, the scene or a prefab changes.

On Start, press Use the ready-made UI. It adds a HUD (your portrait, the date, pause, slower, faster), toasts for the news, the flag tray, and the character, clan and running-schemes windows, with the keys P, C, J and Escape. It adds a tooltip and an EventSystem when the scene has none. A scene that already has this UI is left alone. A scene that already has an Intrigue Keys gets the UI but no second Intrigue Keys. The band says what happened, for example Added the UI (styled) or This scene already has the ready-made UI.

To undo, press Ctrl or Cmd and Z. One step removes everything the button added. The details are in The ready-made UI.

Press Start from the plain kit. It builds the same objects with grey panels, the default font and no art, as a base for your own look.

The Build my own UI card explains four words (Subject, Value, List, Command), lists the Intrigues UI components with one line each, and gives three small recipes. Add an example panel to the scene adds an Example Panel with a Name line and a Date line to the first canvas, or to a new one when the scene has none. Components are described in UI components.

The buttons that change the scene are grey in Play mode (hover text Leave Play mode to change the scene) and in Prefab Mode (Close Prefab Mode to change the scene).

Press Check this scene on Start, or open Scene check and press Check again. Each line has a badge: Problem, Advice, Fine or Information, in that order. In Prefab Mode only the checks that apply to a prefab run. Information lines sit in a fold. With nothing to report, the line reads Nothing is missing. A line with objects names up to five of them; click one to select it in the Hierarchy. A line may offer a button that fixes it.

The check says Button
There is no Intrigue Manager in this scene. Add the Intrigue Manager
The Intrigue Manager has no database. Select the manager
Dialogues have nowhere to appear: no dialogue window is assigned. Use the ready-made dialogue window
There is no EventSystem. Add an EventSystem
The EventSystem uses the old input module (Problem). Select the EventSystem
Tooltips are used, but there is no Tooltip object. Add the Tooltip object
n bound objects have a problem. Select them
This scene can receive flags but shows no flag tray (Advice). Add the flag tray
The project reads input with the new Input System only, and the Intrigues Input System assembly is missing (Advice). none
There is no camera; two Intrigue Managers, Tooltip objects or EventSystems; a label written by two components; buttons open a character but nothing shows one (Advice). none
Nobody is the player in this scene (Information). none

The selecting buttons work in Play mode and Prefab Mode too.

Open Bindings. Each row is one bound component: Object, Is, About, Shows or does and State. In Play mode a Now column shows its live value. State says fine or the problem. Type in the search field (hover text Type part of an object name, a kind or a word of what it shows.) or turn on Problems only. The counter reads n in all or n of m. The list stops at 500 rows.

Choose Tools > MrW > Intrigues > Check UI Pixel Grid. For every element under a Pixel Canvas Scale in the open scenes, or in the open prefab, that does not sit on whole art pixels, the Console gets a line [Intrigues] UI pixel grid: with the element’s path and the reason, such as It is scaled by 2 x 2. Click a line to select the element. The tool changes nothing.

The Manager is in Intrigue Manager. Text in bound labels is written with label tokens. The menu list is in Menus.

Message What to do
Leave Play mode to change the scene Stop Play mode.
Close Prefab Mode to change the scene Leave the prefab.
There are no bound components in this scene. Add them from the Add Component menu under Intrigues > UI. Add some, or use the ready-made UI.
UI pixel grid: no canvas with a Pixel Canvas Scale is open. Add a Pixel Canvas Scale to a pixel-art canvas first.
Could not find the “Intrigue Manager” prefab in the project. Check that the package is whole.