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

Difference between revisions of "Infoblock"

From SuperTux
Jump to: navigation, search
(New page: This is an info block it can help you by jumping)
 
(Format: New section.)
Line 1: Line 1:
 
This is an info block it can help you by jumping
 
This is an info block it can help you by jumping
 +
 +
== 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 {{SvnFile|src/supertux/info_box_line.cpp}}.
 +
The colors are defined in {{SvnFile|src/supertux/colorscheme.cpp}}.
 +
 +
{| border="1"
 +
! Character
 +
! Type
 +
! Font size
 +
! Color
 +
|-
 +
| <code>\t</code> ''(tab)''
 +
| Normal
 +
| Normal
 +
| style="color: rgb(0,0,0); background-color: rgb(255,255,255);" | Normal color (white)
 +
|-
 +
| <code>␣</code> ''(space)''
 +
| Small
 +
| Small
 +
| style="color: rgb(0,0,0); background-color: rgb(255,255,255);" | Small color (white)
 +
|-
 +
| <code>-</code> ''(dash)''
 +
| Heading
 +
| Big
 +
| style="color: rgb(0,0,0); background-color: rgb(255,255,153);" | Heading color (yellow)
 +
|-
 +
| <code>*</code> ''(asterisk)''
 +
| Reference
 +
| Normal
 +
| style="color: rgb(255,255,255); background-color: rgb(51,153,255);" | Reference color (blue)
 +
|-
 +
| <code>#</code> ''(hash)''
 +
| Normal (left)
 +
| Normal
 +
| style="color: rgb(0,0,0); background-color: rgb(255,255,255);" | Normal color (white)
 +
|-
 +
| <code>!</code> ''(exclamation mark)''
 +
| Image
 +
| ''n/a''
 +
| ''n/a''
 +
|}

Revision as of 06:08, 21 February 2010

This is an info block it can help you by jumping

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