_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
CContentTypeFormattedText2 Class Reference

#include <contenttype.h>

Inheritance diagram for CContentTypeFormattedText2:
CContentType

Public Member Functions

 CContentTypeFormattedText2 ()
 
virtual ~CContentTypeFormattedText2 ()
 
contenttype.cpp - .
virtual void Draw (const CUnit &unit, CFont *defaultfont) const
 
virtual void Parse (lua_State *l)
 
- Public Member Functions inherited from CContentType
 CContentType ()
 
virtual ~CContentType ()
 

Additional Inherited Members

- Public Attributes inherited from CContentType
PixelPos Pos
 
ConditionPanelCondition
 Coordinate where to display. More...
 

Detailed Description

Show formatted text with variable value.

Constructor & Destructor Documentation

◆ CContentTypeFormattedText2()

CContentTypeFormattedText2::CContentTypeFormattedText2 ( )
inline

◆ ~CContentTypeFormattedText2()

virtual CContentTypeFormattedText2::~CContentTypeFormattedText2 ( )
inlinevirtual

Member Function Documentation

◆ Draw()

void CContentTypeFormattedText2::Draw ( const CUnit unit,
CFont defaultfont 
) const
virtual

Draw formatted text with variable value.

Parameters
unitunit with variable to show.
defaultfontdefault font if no specific font in extra data.
Note
text is limited to 256 chars. (enough?)
text must have exactly 2 d.
Bug:
if text format is incorrect.

Implements CContentType.

◆ Parse()

void CContentTypeFormattedText2::Parse ( lua_State *  l)
virtual

Implements CContentType.


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