
Prototype: GemRB.GetCharSounds(WindowIndex, ControlIndex)

Metaclass Prototype: GetCharSounds(ControlIndex)

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

Parameters:
WindowIndex, ControlIndex  - the control's reference


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.GetCharSounds(SoundWindow, TextAreaControl)

See also: QueryText, GetCharacters

