17.21. Constructing the status line

| Chapter 17: Activities |

| 17.21. Constructing the status line

1. When it happens. Just before input is accepted from the keyboard, Inform constructs a "status line" at the top of the window which is normally displayed in reverse colours (white on black instead of black on white, say).

2. The default behaviour. Makes the status line up out of two pieces, the "left hand status line" and the "right hand status line". Since these can freely be changed, note that the status line is already very customisable without using rules applied to this activity.

3. Examples. (a) The most useful thing about this activity is that it allows us to vary descriptions in the status line. This is especially helpful to abbreviate unduly long room names, which might not otherwise fit:

> The Temple Of A Thousand Mightily Peeved Deities is a room. Rule for printing the name of the Temple while constructing the status line: say "Temple".

(b) Again, it's usually not necessary to apply activity rules to this, but occasionally amusing effects are possible if we do:

> The blindfold is wearable and carried. Rule for constructing the status line while the blindfold is worn: do nothing.

336
| Example Ways Out A status line that lists the available exits from the current location. |
RB

337
| Example Guided Tour A status line that lists the available exits from the current location, changing the names of these exits depending on whether the room has been visited or not. |
RB

Previous | Contents | Next