AddSound

From IfsoGUIWiki

Jump to: navigation, search

Contents

Declaration

AddSound(iSoundEvent:Int, sndSound:TSound)
Add a sound to the event of a gadget. A sound can be added to any event a gadget emits. The sound will be called when the event is emitted.

Returns

Nothing

Parameters

  • iSoundEvent:Int - The event that the sound will be assigned. Should be any of the ifsoGUI_EVENT_* constants.
  • sndSound:TSound - The TSound file that will be played.

Gadget Information

A sound can be added to any gadget to be played when any event is emitted.

Example

Personal tools