LiminaliaLiminalia
How-to: Choose where choices appear

Choose where choices appear

Open in Claude (new tab)
On this page

Text choices line up in the vertical middle of the screen at first, and move to a height where they don’t cover a sprite’s face only when they would. You can change where choices appear in the game settings. It’s a setting for the whole project, so you don’t have to write it for each choice.

The examples on this page use the English sample story, “Waiting for Stars” (choose “A sample story” and English in New Project, or run lim new --lang en; the characters are Akari and Sou).

Choose the position

  1. Click “Game settings” at the top of the screen, and scroll the panel on the left down to “Choices.”
  2. In “Choice position,” choose where they appear.
Choice positionWhere they appear
(default), Avoid characters’ facesThe vertical middle. Only when they would cover a sprite’s face, they move to the nearest height where they don’t
CenterThe vertical middle of the screen (they don’t move even over a face)
TopNear the top edge of the screen
Just above the message windowAbove the message window (near the bottom edge of the screen if the message window isn’t visible)

With “Avoid characters’ faces,” if no height above or below is free of faces, the choices go where they cover the least. The face area is the one set on the Characters screen (with “Also use for the face window in the game” checked; see Show a face window), or, if there’s none, it’s worked out from the sprite’s picture.

It’s saved in liminalia.json like this (with “Center” chosen).

"ui": { "choice": { "position": "center" } }

Choices that don’t move

  • When a choice has its position written with x= or y= (such as image buttons and click areas; see Make choices with image buttons), that set of choices doesn’t move.
  • Choices shown on the chat screen keep the chat screen’s layout (Show dialogue as chat bubbles).
  • When ui.choice.y (the top of the first button) is written in liminalia.json, y is used instead of “Top” and “Just above the message window.” “Avoid characters’ faces” moves the choices from the y position. With only y written and no position chosen, the choices stay at y.

It works the same way in portrait games.

In code

The way you write choices doesn’t change.

@chara Akari normal at=left
@chara Sou normal at=right
Sou "So. What shall we do while we wait?"
@choice
- Look through the telescope -> #telescope
- Turn on the radio -> #radio_on
@end

The parameters you can write on a choice line are in the @choice reference. The list of settings is in Game settings in the documentation.

Commands used on this page

@chara