This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.
Difference between revisions of "Infoblock"
From SuperTux
(→Format: New section.) |
(Added an introduction and an image.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Image:Infoblock.png|right]] | |
+ | An '''Infoblock''' is a [[game object]] which is used to provide non-obvious information for the player. It is displayed as a green block with a white exclamation mark. When jumping against the block from below, a message is displayed. | ||
== Format == | == Format == | ||
Line 43: | Line 44: | ||
| ''n/a'' | | ''n/a'' | ||
|} | |} | ||
+ | |||
+ | [[Category:Game Object]] |
Latest revision as of 06:11, 21 February 2010
An Infoblock is a game object which is used to provide non-obvious information for the player. It is displayed as a green block with a white exclamation mark. When jumping against the block from below, a message is displayed.
Format
The message is formatted line-wise. The first character of each line determines how the line is formatted. The first character is not printed.
The parsing is done in three functions defined in src/supertux/info_box_line.cpp
.
The colors are defined in src/supertux/colorscheme.cpp
.
Character | Type | Font size | Color |
---|---|---|---|
\t (tab)
|
Normal | Normal | Normal color (white) |
␣ (space)
|
Small | Small | Small color (white) |
- (dash)
|
Heading | Big | Heading color (yellow) |
* (asterisk)
|
Reference | Normal | Reference color (blue) |
# (hash)
|
Normal (left) | Normal | Normal color (white) |
! (exclamation mark)
|
Image | n/a | n/a |