SetPortrait routine

TURBU

SetPortrait routine

 

Sets the portrait to be displayed in the in-game message box.

 

Syntax

 

procedure setPortrait(const filename: string; const index: byte; const rightside, flipped: boolean);

 

Description

 

The setPortrait routine sets the active portrait to be displayed when the message box is opened with showMessage.  It first tests to make sure that filename is a valid FaceSet graphic and that index falls within the proper range (1..16).  If either of these tests fails, nothing happens.  Otherwise, the message box is set to display the indicated portrait.  If rightside is true, it will display on the right side of the message box, otherwise it displays on the left.  If flipped is true, the portrait will be flipped horizontally.

 

Related Topics

showMessage routine

messageOptions routine

clearPortrait routine

 

This help file was created with the free trial version of HelpScribble.