The ready-made UI
What this page is for
Section titled “What this page is for”The ready-made UI is a working set of screens that Intrigues builds once, in your open scene. It is made only of the Intrigues components, with no hidden script. After it is built it is ordinary objects. It is also a sample to read: click any label and look at its Bound Text.
Add it to a scene
Section titled “Add it to a scene”- Open Tools > MrW > Intrigues > UI Setup. It has three tabs: Start, Scene check and Bindings.
- On the Start tab press Use the ready-made UI. The card Start from the plain kit builds the same objects with grey panels, the default font and no art, as a base for your own look.
- Press Play.
The two sets also ship as prefabs in the package’s Prefabs folder: Intrigues UI.prefab and Intrigues UI (Plain).prefab. You can drag one into a scene instead.
What happens in your scene:
| Case | Result |
|---|---|
| Play mode or Prefab Mode | You get a plain sentence and nothing changes. The set is built in Edit mode, in a scene. |
| Normal build | One undo step. Nothing is saved or copied. The canvas scales with the screen from a 1920 by 1080 reference. |
| The scene already has a canvas named “Intrigues UI” or any Subject Window | Nothing new is built, and the window says so. Delete the old one first to build it again. |
| The scene already has an Intrigue Keys | It gets no second one, so a key does not act twice. |
| No EventSystem or Tooltip object in the scene | They are added. |
What you get
Section titled “What you get”| Part | What it shows or does |
|---|---|
| HUD, top left | Your portrait and name (a click opens your character), the date, and the buttons Pause, Slower, Faster and Schemes. |
| Sample value | A line with the caption “Gold” and {player.Gold}. It is a sample: change the text to a value of your story. |
| Toasts, top right | A list of the news. A toast stays 6 seconds, at most 5 show, the newest on top. A row fades in over 0.25 seconds and out over 0.5. The toast text has Links switched on. |
| Flag tray, under the HUD | The messages that arrived as a flag for your player, the newest on top, at most 6. A click opens the flag’s window. Dismiss shows only on a flag that needs no answer. A flag that waits for an answer says so, with the days left when the project sets Flag Answers After Days. A High flag shows “Important”. A repeated announcement shows its count. |
| Character window | Portrait, facts (relation to you, role, personal role, age, culture, born into, opinion of you), clan button, heir, traits, family policies, the twelve groups of relatives, and the schemes you can start with their reasons and odds. Start asks first (“Start {this.Name}?”). |
| Clan window | Banner, name, description, culture, member count, head, policies, the court with the holders of every seat, and the other members. A line “Attitude toward your clan” shows when the clan has one. |
| Running schemes window | Each scheme with its objective, who runs it, the target, the helpers and the odds. It lists the runs you take part in, helping included. |
| Keys | P opens your character, C your clan, J the running schemes (again to close). Escape goes back one window per press. |
With nothing open, Back is refused (“There is nothing to go back to.”) and so is Close Screens (“No screen is open.”). A Command Button then greys itself out.
The guide says a name in a toast opens that character. The builder code and the two prefabs add no Link Handler to the toast label, and Links needs one on the label, so a click on a name may do nothing until you add a Link Handler yourself. This was not checked in Play mode.
The toasts list the news of anyone, not only of your player. Set Notice About on the list to change that.
Change it
Section titled “Change it”After it is built you work on it as on your own objects: move, resize, restyle, delete a part, add a component. To change a fixed word such as “Parents” or “Schemes to start”, select the label and edit the Text of its Bound Text. The words are real texts, so they can use tokens, for example Seats: {this.Seats}.
To change what a new build looks like, the package has files in Editor/UIKit/ReadyMade/:
| File | What it holds |
|---|---|
ReadyMadeTexts.cs |
One table of every fixed word the screens show. Change a word there and every new build has it. |
ReadyMadeTheme.cs |
The look in one place: the colours of the styled kit and of the plain kit, and the sprites and fonts the styled kit uses. A sprite or font that is missing is left out. |
ReadyMadeScreens.cs |
The screens as plain data, if you want to move a part. |
A scene that is already built does not change when these files change.
Limits
Section titled “Limits”- It has no window for a family. A birth family is a line of text.
- The windows are centred and cannot be dragged.
- The odds and the opinion are numbers you format. The odds label writes the percent sign.
- The fixed words, the HUD button names included, are not lines of a story’s languages yet.
How it connects
Section titled “How it connects”- UI components describes the components it uses.
- UI recipes builds small versions of its parts.
- Input, multiplayer and limits says what was not tested.
- Your own dialogue window: the set has no dialogue window.