Table of Contents

 
FadeInText
 

Purpose

Starts a text fade for given text object

 

Protoype

void CTextMngr::FadeInText (string str_text_id, int i_base = TEXT_OPAQUE, int i_step = 5)
 

Parameters

text_id the ID of the text object to apply effect to
base the alpha level to fade to
step the amount to fade by each rendering pass
 

Description

This function causes text to fade in from a faded out state. If the text is already totally opaque then the fade effect will be ignored and not processed. You can set the base level anywhere from 255 (opaque) to 0 (transparent). Use the step interval to set how fast the you want the fade to be.

NOTE: Text fades will take effect from the current alpha level of the text. This means that when a fade in request is started, the text will not snap back to a totally transparent alpha value, but instead fade in to the base level from its current alpha value

 

Use

CTextMngr text;
text.FadeInText("my_text", TEXT_OPAQUE, 25);
 

Prev: FadeComplete