UI component inspectors
What this page is for
Section titled “What this page is for”The ready-made UI is built from small components you add from Add Component > Intrigues > UI. Ten of them have a custom Inspector. This page says what each shows: which fields appear for which mode, what the box at the top warns about, and what the Play mode line reads. For the full list of choices and recipes, use IntrigueUI from code and the product’s UI_GUIDE.md.
The other UI components draw Unity’s default Inspector and are not covered here: Accomplice Toggle, Choice Tooltip, Dialogue Audio, Dialogue Manager, Dialogue Stage, Link Handler, Pixel Canvas Scale, Text Reveal, Tooltip, Tooltip Trigger and Tooltips.
What every one of them shows
Section titled “What every one of them shows”- A yellow box with the component’s own problem, when it has one. With several objects selected, it says how many have a problem and shows the first.
- In Play mode, one line, Now shows, with what the component shows now. It is off for several objects.
- Only the fields that apply to the chosen mode or kind. Change the mode and others appear.
- Under a text field, a {this…} button (Bound Text in Text mode, Bound State in Condition mode). It inserts a member of the subject’s kind at the end of the text, and warns about a member that does not exist.
A component is about the subject of the nearest Subject Source on its own object or above it, so a button in a row of a list is about that row, and the same button on a bare panel is about nothing unless a source sits higher up. Keep that in mind. Bound Tooltip, Notice Receiver and Intrigue Keys cannot edit several objects at once; for them Unity shows its own note instead.
The ten inspectors
Section titled “The ten inspectors”| Component | Fields it shows | Fields that depend on a choice | Play mode line | Typical problem it reports |
|---|---|---|---|---|
| Subject Source | From, On Changed, On Has Subject, On No Subject | Actor Id, Clan Id or Family Id for a fixed subject; Relation for Related | The subject | “Choose the character: type its ID.” Related needs another source above it. |
| Bound Text | Mode, When Empty, Hide When Empty | Text mode: Text, Links. Part mode: Part, and List for the part Count. Hide Object when Hide When Empty is on | The text, in quotes | Needs a TextMeshPro text on the same object. “Type the text to show.” A part that shows nothing for this kind of subject. |
| Bound Image | Kind, Hide When Empty, On Has Image, On No Image | none | “a picture” or “no picture” | Needs an Image on the same object. A portrait needs a character. |
| Bound State | Mode, Invert, Show When True, Show When False, Enable When True, On True, On False | Condition mode: Condition. Check mode: Check, and List for Is Empty and Is Not Empty | true or false | “Type the condition, for example {target.Age} >= 18.” A check that does not fit the subject is always false. |
| Bound List | List, Max Rows, Page Size, Rows Before More, More Object, More Text, Row Template, Content, Empty Object, Navigation, Row Fade In, Row Fade Out, On Changed, On Empty, On Not Empty | Depends on List, below | “N rows of M, page P of Q” | A row template problem; a list that needs a subject above it. |
| Command Button | Command, Show Reason, Ask First, On Done, On Sent, On Refused | Depends on Command, below | “can run (…)” or “refused: …” | Needs a Button on the same object. Open Screen needs a screen name. Change Language needs a code. |
| Bound Tooltip | A one-line note only | none | none | Needs a Tooltip Trigger on the same object. |
| Subject Window | Screen, Panel, Several, Open At Pointer, Close Button, Back Button, Select On Open, Start Open, On Opened, On Closed, On Subject Changed | Shows when Screen is empty; Toggle when it is named. Max Windows when Several is on | “open: …” or “closed” | The panel is missing, is an asset, or is this object or a parent of it. |
| Notice Receiver | A note and the Reactions list | Each reaction: Kinds, About, On Notice Text, On Notice | “listening” or “not listening” | “Add a reaction: which notices, and what runs.” |
| Intrigue Keys | The Keys list: Key, Action, Screen, Also Do | none (Screen shows on every key; only Open Screen reads it) | none | A key set to None; Open Screen without a screen name. |
Bound List: fields by List
Section titled “Bound List: fields by List”| List | Extra fields |
|---|---|
| Relatives | Groups, With Dead |
| Clan Members, Family Members | Role Id, Without Court Role, With Dead |
| Court | Also Vacant, With Dead |
| Seat Holders | With Dead |
| Variables, World Variables, All Actors, All Clans, All Families | Name Filter |
| Schemes To Start | Offer Rules, Section All |
| Scheme Offer Sections | Offer Rules |
| Accomplice Candidates | Include Played Characters |
| Running Schemes | Also Helping |
| Notices | Notice Kinds, Notice About, Notice Seconds, Notice Max, Newest First |
| Flags | Newest First, Hide Low Flags |
| Succession | Role Id |
| Chronicle, Decision Log, Scheme Log | Notice Max |
Command Button: fields by Command
Section titled “Command Button: fields by Command”| Command | Extra fields |
|---|---|
| Set Speed | Speed |
| Change Language | Language Code |
| Open Screen | Screen |
| Start With Accomplices | Played Characters May Help |
| Save, Load, Delete Save | Slot Name |
| Save | Name Field |
| Load | Load Scene |
| Next Page, Previous Page | List |
Yes Text and No Text show once Ask First has text. On Working shows for the Save System commands.
How it connects
Section titled “How it connects”- IntrigueUI from code
- Your own dialogue window
- Signal and Signal Receiver: the same idea as Notice Receiver, for signals.
- Save System inspector: the slot commands use it.