UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_sound.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void UI_PlaySound (const char *soundFile)
 Plays a ui sound.

Variables

struct cvar_s * ui_sounds

Function Documentation

◆ UI_PlaySound()

void UI_PlaySound ( const char * soundFile)

Plays a ui sound.

Parameters
soundFileSound file relative to sound/gui

Definition at line 35 of file ui_sound.cpp.

References S_StartLocalSample(), SND_VOLUME_DEFAULT, ui_sounds, and va().

Referenced by uiCheckBoxNode::onLeftClick(), uiLocatedNode::onLeftClick(), uiTabNode::onLeftClick(), uiLocatedNode::onMiddleClick(), uiLocatedNode::onRightClick(), UI_DNDDrag(), and UI_DNDDrop().

Variable Documentation

◆ ui_sounds

struct cvar_s* ui_sounds
extern

Definition at line 29 of file ui_sound.cpp.

Referenced by UI_Init(), and UI_PlaySound().