static class
Music (client-side)
Available since version: 0.3.3.1
This class represents Gothic Music System.
Properties
bool
disabled
Represents the music disabled state.
float
volume
Represents the music volume in range <0.0, 1.0>.
MusicTheme&
activeTheme (read-only)
Represents the music actively played theme.
Methods
playThemeByScript
This method will play music theme from daedalus scripts.
void playThemeByScript(string name, int transition_type)
Parameters:
string
name: the name script theme, e.g:"SYS_Menu"
.int
transition_type: the type of the transition (overrides the script theme transition type):1
-> end transition2
-> no transition,other values
-> default transition from script theme.
loadThemeByScript
This method will load music theme from daedalus scripts.
MusicTheme& loadThemeByScript(string name)
Parameters:
string
name: the name script theme, e.g:"SYS_Menu"
.
Returns MusicTheme&
:
the loaded music theme.
playThemeByScript
This method will play given theme.
void playThemeByScript(MusicTheme& the)
Parameters:
MusicTheme&
the: theme that you want to play.
stop
Available since version: 0.3.3.2
This method will stop currently played theme.
void stop()
Callbacks
No callbacks.