
Prototype: GemRB.GetPortraits(WindowIndex, ControlIndex, SmallOrLarge)

Metaclass Prototype: GetPortraits(SmallOrLarge)

Description: Reads the contents of the portraits subfolder into a TextArea control.

Parameters:
WindowIndex, ControlIndex  - the control's reference
SmallOrLarge - 0 means the portraits with 'M' as the suffix, anything else 'S'


Return value: numeric, the number of rows read into the TextArea control.
Example:
 TextAreaControl = GemRB.GetControl(SoundWindow, 45)
 GemRB.SetTextAreaSelectable(SoundWindow, TextAreaControl,1)
 GemRB.SetVarAssoc(SoundWindow, TextAreaControl, "Sound", 0)
 RowCount=GemRB.GetPortraits(SoundWindow, TextAreaControl, 0)

See also: QueryText, GetCharacters, GetCharSounds

