This wiki has been moved to into the mediawiki branch.


From SuperTux
Revision as of 05:09, 15 February 2007 by AnMasterBot (Talk | contribs)

Jump to: navigation, search


This module provides access to methods responsible for displaying text on-screen.


set_text(string text) Sets the text string to be displayed to text.
set_font(string font) Sets the font of the text to be displayed to text. Currently valid values are gold, white, blue, gray, big and small.
fade_in(float time) Fades in the specified text for the next time seconds.
fade_out(float time) Just the opposite of fade_in.
set_visible(bool visible) Shows or hides the text abruptly (drastic counterpart to fade_in and fade_out).
set_centered(bool centered) If centered is true, the text will be centered on the screen. Otherwise, it will be left-aligned.