$treeview $search $mathjax
Stratagus
2.2.6
$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 | |
CContentTypeText () | |
virtual | ~CContentTypeText () |
mainscr.cpp - The main screen. | |
virtual void | Draw (const CUnit &unit, CFont *defaultfont) const |
Public Attributes | |
StringDesc * | Text |
CFont * | Font |
Text to display. | |
char | Centered |
Font to use. | |
int | Index |
if true, center the display. | |
EnumVariable | Component |
Index of the variable to show, -1 if not. | |
char | ShowName |
Component of the variable. | |
char | Stat |
If true, Show name's unit. |
CContentTypeText::CContentTypeText | ( | ) | [inline] |
virtual CContentTypeText::~CContentTypeText | ( | ) | [inline, virtual] |
Draw text with variable.
unit | unit with variable to show. | |
defaultfont | default font if no specific font in extra data. |
Implements CContentType.
Text to display.
Font to use.
if true, center the display.
Index of the variable to show, -1 if not.
Component of the variable.
If true, Show name's unit.