Intrigues UI: the idea
What this page is for
Section titled “What this page is for”Intrigues does not give your game a look. You draw the screens with the Unity tools you already use. Intrigues fills them with live information: names, portraits, lists of relatives, the schemes a character can start, the date.
Four words
Section titled “Four words”Learn these four, and the rest of the UI pages follow.
| Word | Means |
|---|---|
| Subject | Who or what a part of the screen is about: your character, a clan, the thing the player selected. |
| Value | One piece of information about the subject that is shown: a name, an age, a picture, yes or no. |
| List | One row for each thing of a kind (relatives, clan members, running schemes), made from a row you draw once. |
| Command | Something a button or a key does: open a character, pause, change the speed, start a scheme. |
How it behaves
Section titled “How it behaves”- Your UI never reads the game’s data and never changes it. It asks Intrigues, and Intrigues answers.
- Everything shown keeps itself current. A label that shows an age changes by itself when the character gets older, and you write no code for it.
- Everything is redrawn once at the end of the frame, and only if something it shows may have changed.
- A command goes through one checked door. If it is refused, you get a plain sentence that says why.
- Every answer is for this machine’s player, in this machine’s language. A value the player may not know is empty.
Two ways to use it
Section titled “Two ways to use it”In the Inspector, with no code, you add components from Intrigues > UI to your own objects. A Subject Source says whom a panel is about, a Bound Text writes a text with tokens such as {this.FullName}, a Bound List makes the rows, a Command Button does a thing. UI components lists them.
In code, the static class IntrigueUI is the same layer with no UI technology in it. IntrigueUI from code covers it.
The components work with uGUI and TextMeshPro only. For another UI technology you write a thin adapter on top of IntrigueUI. There are no ready-made UI Toolkit components.
How it connects
Section titled “How it connects”- The ready-made UI is a working set of screens you add in one click.
- What you can write on a label lists the tokens and members.
- UI recipes builds small screens step by step.
- Input, multiplayer and limits says what is not tested.
- Your own dialogue window is the other half: drawing dialogues yourself.