UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_sound.cpp File Reference
#include "ui_main.h"
#include "ui_sound.h"
#include "../sound/s_main.h"
Include dependency graph for ui_sound.cpp:

Go to the source code of this file.

Functions

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

Variables

cvar_tui_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

cvar_t* ui_sounds

Definition at line 29 of file ui_sound.cpp.

Referenced by UI_Init(), and UI_PlaySound().