Drag[en]gine Script Module DragonScript
1.23
|
Dynamic music part. More...
Public Member Functions | |
void | addTransition (DynamicMusicTransition transition) |
Add transition. More... | |
float | getControllerValue () |
Controller value to set if this part is selected. More... | |
Sound | getMusic () |
Music to play. More... | |
String | getName () |
Name. More... | |
DynamicMusicTransition | getTransitionAt (int index) |
Get transition at index. More... | |
int | getTransitionCount () |
Number of transitions. More... | |
bool | hasTransition (DynamicMusicTransition transition) |
Transition is present. More... | |
DynamicMusicPart | new () |
Create dynamic music part with null music for init use. More... | |
DynamicMusicPart | new (String name) |
Create dynamic music part. More... | |
String | nextPart () |
Name of next part to play or null to stop. More... | |
void | removeAllTransitions () |
Remove all transitions. More... | |
void | removeTransition (DynamicMusicTransition transition) |
Remove transition. More... | |
void | setControllerValue (float value) |
Set controller value to set if this part is selected. More... | |
void | setMusic (Sound music) |
Set music to play. More... | |
Dynamic music part.
Music to play with transitions to next parts. If no transitions are defined or no transitions match the playback stops after this part. If music is null playback stops after this part. Use null music only for parts used as init part which are used only to find the first part to play.
void Dragengine.Audio.DynamicMusic.DynamicMusicPart.addTransition | ( | DynamicMusicTransition | transition | ) |
Add transition.
float Dragengine.Audio.DynamicMusic.DynamicMusicPart.getControllerValue | ( | ) |
Controller value to set if this part is selected.
Sound Dragengine.Audio.DynamicMusic.DynamicMusicPart.getMusic | ( | ) |
Music to play.
String Dragengine.Audio.DynamicMusic.DynamicMusicPart.getName | ( | ) |
Name.
DynamicMusicTransition Dragengine.Audio.DynamicMusic.DynamicMusicPart.getTransitionAt | ( | int | index | ) |
Get transition at index.
int Dragengine.Audio.DynamicMusic.DynamicMusicPart.getTransitionCount | ( | ) |
Number of transitions.
bool Dragengine.Audio.DynamicMusic.DynamicMusicPart.hasTransition | ( | DynamicMusicTransition | transition | ) |
Transition is present.
DynamicMusicPart Dragengine.Audio.DynamicMusic.DynamicMusicPart.new | ( | ) |
Create dynamic music part with null music for init use.
DynamicMusicPart Dragengine.Audio.DynamicMusic.DynamicMusicPart.new | ( | String | name | ) |
Create dynamic music part.
String Dragengine.Audio.DynamicMusic.DynamicMusicPart.nextPart | ( | ) |
Name of next part to play or null to stop.
Returns the part of the first valid transition or our name.
void Dragengine.Audio.DynamicMusic.DynamicMusicPart.removeAllTransitions | ( | ) |
Remove all transitions.
void Dragengine.Audio.DynamicMusic.DynamicMusicPart.removeTransition | ( | DynamicMusicTransition | transition | ) |
Remove transition.
void Dragengine.Audio.DynamicMusic.DynamicMusicPart.setControllerValue | ( | float | value | ) |
Set controller value to set if this part is selected.
void Dragengine.Audio.DynamicMusic.DynamicMusicPart.setMusic | ( | Sound | music | ) |
Set music to play.