This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Infoblock

From SuperTux
Jump to: navigation, search
Infoblock.png

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