$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

CContentTypeText Class Reference

#include <ui.h>

Inheritance diagram for CContentTypeText:

CContentType

List of all members.


Public Member Functions

 CContentTypeText ()
virtual ~CContentTypeText ()
mainscr.cpp - The main screen.
virtual void Draw (const CUnit &unit, CFont *defaultfont) const

Public Attributes

StringDescText
CFontFont
 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.

Detailed Description

Show simple text followed by variable value.

Constructor & Destructor Documentation

CContentTypeText::CContentTypeText (  )  [inline]

virtual CContentTypeText::~CContentTypeText (  )  [inline, virtual]


Member Function Documentation

void CContentTypeText::Draw ( const CUnit unit,
CFont defaultfont 
) const [virtual]

Draw text with variable.

Parameters:
unit unit with variable to show.
defaultfont default font if no specific font in extra data.

Implements CContentType.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.