$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <ui.h>
Public Member Functions | |
CContentTypeFormattedText () | |
virtual | ~CContentTypeFormattedText () |
mainscr.cpp - The main screen. | |
virtual void | Draw (const CUnit &unit, CFont *defaultfont) const |
Public Attributes | |
std::string | Format |
CFont * | Font |
Text to display. | |
bool | Centered |
Font to use. | |
int | Index |
if true, center the display. | |
EnumVariable | Component |
Index of the variable to show. |
CContentTypeFormattedText::CContentTypeFormattedText | ( | ) | [inline] |
virtual CContentTypeFormattedText::~CContentTypeFormattedText | ( | ) | [inline, virtual] |
Draw formatted text with variable value.
unit | unit with variable to show. | |
defaultfont | default font if no specific font in extra data. |
text must have exactly 1 d.
Implements CContentType.
std::string CContentTypeFormattedText::Format |
Text to display.
Font to use.
if true, center the display.
Index of the variable to show.