|
Drag[en]gine Script Module DragonScript 1.32.1
|
Conversation gesture playback. More...
Classes | |
| class | Gesture |
| Gesture. More... | |
Public Member Functions | |
| void | addGesture (StringID animatorID, bool hold, ConversationStrip strip) |
| Add gesture. | |
| void | addGestureFromNow (StringID animatorID, bool hold, ConversationStrip strip) |
| Add gesture at playback position replacing gestures after pause time. | |
| void | applyAnimation () |
| Apply animation. | |
| AnimatorInstance | getAnimatorInstance () |
| Animator instance. | |
| AnimatorController | getControllerFadeIn () |
| Fade in animator controllers. | |
| AnimatorController | getControllerFadeOut () |
| Fade out animator controllers. | |
| AnimatorController | getControllerPlayback () |
| Playback animator controllers. | |
| AnimatorController | getControllerProgress () |
| Progress animator controllers. | |
| AnimatorController | getControllerVariation () |
| Variation animator controllers. | |
| float | getElapsed () |
| Elapsed time. | |
| Gesture | getGestureAt (int position) |
| Gesture by position. | |
| int | getGestureCount () |
| Number of gestures. | |
| String | getNameControllerFadeIn () |
| Fade in controller name. | |
| String | getNameControllerFadeOut () |
| Fade out controller name. | |
| String | getNameControllerPlayback () |
| Playback controller name. | |
| String | getNameControllerProgress () |
| Progress controller name. | |
| String | getNameControllerVariation () |
| Variation controller name. | |
| int | getPosition () |
| Playback position. | |
| float | getRemainingGestureTime () |
| Remaining playback time of current gesture. | |
| bool | getRunning () |
| Playback is running. | |
| bool | isLastGestureRunning () |
| Last gesture is playing back. | |
| ConversationGesturePlayback | new () |
| Create gesture playback. | |
| void | onFinished () |
| Finished playing back the gestures. Hook for subclasses. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read from file. | |
| void | removeAllGestures () |
| Remove all gestures. | |
| void | setNameControllerFadeIn (String name) |
| Set fade in controller name. | |
| void | setNameControllerFadeOut (String name) |
| Set fade out controller name. | |
| void | setNameControllerPlayback (String name) |
| Set playback controller name. | |
| void | setNameControllerProgress (String name) |
| Set progress controller name. | |
| void | setNameControllerVariation (String name) |
| Set variation controller name. | |
| void | update (ConversationActor actor, AnimatorInstance poseAnimatorInstance, float elapsed) |
| Update playback. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write to file. | |
Protected Member Functions | |
| void | findControllers (ConversationActor actor) |
| Find animator controllers after animator changed. | |
| void | initControllers (ConversationActor actor, float startTime, float endTime) |
| Initialize controllers after activating a new gesture. | |
| void | initNextGesture (ConversationActor actor) |
| Init next gesture to play. | |
| void | updateControllers (ConversationActor actor, float elapsed, float endTime) |
| Update controllers. | |
Conversation gesture playback.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.addGesture | ( | StringID | animatorID, |
| bool | hold, | ||
| ConversationStrip | strip | ||
| ) |
Add gesture.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.addGestureFromNow | ( | StringID | animatorID, |
| bool | hold, | ||
| ConversationStrip | strip | ||
| ) |
Add gesture at playback position replacing gestures after pause time.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.applyAnimation | ( | ) |
Apply animation.
Called after update() to apply animation. Can do nothing if no change has been done.
|
protected |
Find animator controllers after animator changed.
| AnimatorInstance Dragengine.ConversationSystem.ConversationGesturePlayback.getAnimatorInstance | ( | ) |
Animator instance.
| AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeIn | ( | ) |
Fade in animator controllers.
| AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeOut | ( | ) |
Fade out animator controllers.
| AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerPlayback | ( | ) |
Playback animator controllers.
| AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerProgress | ( | ) |
Progress animator controllers.
| AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerVariation | ( | ) |
Variation animator controllers.
| float Dragengine.ConversationSystem.ConversationGesturePlayback.getElapsed | ( | ) |
Elapsed time.
| Gesture Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureAt | ( | int | position | ) |
Gesture by position.
| int Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureCount | ( | ) |
Number of gestures.
| String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeIn | ( | ) |
Fade in controller name.
| String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeOut | ( | ) |
Fade out controller name.
| String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerPlayback | ( | ) |
Playback controller name.
| String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerProgress | ( | ) |
Progress controller name.
| String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerVariation | ( | ) |
Variation controller name.
| int Dragengine.ConversationSystem.ConversationGesturePlayback.getPosition | ( | ) |
Playback position.
| float Dragengine.ConversationSystem.ConversationGesturePlayback.getRemainingGestureTime | ( | ) |
Remaining playback time of current gesture.
If playback is no running 0 is returned. Returned playback includes pause if not elapsed. If playing back gesture is held not elapsed pause time is returned (duration 0).
| bool Dragengine.ConversationSystem.ConversationGesturePlayback.getRunning | ( | ) |
Playback is running.
|
protected |
Initialize controllers after activating a new gesture.
|
protected |
Init next gesture to play.
| bool Dragengine.ConversationSystem.ConversationGesturePlayback.isLastGestureRunning | ( | ) |
Last gesture is playing back.
Returns true if getRunning() is true and getPosition() is getGestureCount() - 1.
| ConversationGesturePlayback Dragengine.ConversationSystem.ConversationGesturePlayback.new | ( | ) |
Create gesture playback.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.onFinished | ( | ) |
Finished playing back the gestures. Hook for subclasses.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader | ||
| ) |
Read from file.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.removeAllGestures | ( | ) |
Remove all gestures.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeIn | ( | String | name | ) |
Set fade in controller name.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeOut | ( | String | name | ) |
Set fade out controller name.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerPlayback | ( | String | name | ) |
Set playback controller name.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerProgress | ( | String | name | ) |
Set progress controller name.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerVariation | ( | String | name | ) |
Set variation controller name.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.update | ( | ConversationActor | actor, |
| AnimatorInstance | poseAnimatorInstance, | ||
| float | elapsed | ||
| ) |
Update playback.
This updates the playback and updates animator instances if required. This does not apply the animation yet to allow proper use of state capturing.
|
protected |
Update controllers.
| void Dragengine.ConversationSystem.ConversationGesturePlayback.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer | ||
| ) |
Write to file.