Click or drag to resize

SpellTrainView Class

The gesture training view.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.UI.ViewsView
            RavingBots.MagicGestures.UI.ViewsSpellTrainView

Namespace:  RavingBots.MagicGestures.UI.Views
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class SpellTrainView : View

The SpellTrainView type exposes the following members.

Constructors
  NameDescription
Public methodSpellTrainView
Initializes a new instance of the SpellTrainView class
Top
Properties
  NameDescription
Private propertyIsReady
if the gesture is ready.
Top
Methods
  NameDescription
Private methodGetTrainingProgress
Get the current training progress.
Public methodGoBack
Called when user presses the back button.
(Overrides ViewGoBack.)
Public methodOnGesture
Called after the user performs a gesture, to capture a sample.
Private methodResetTraining
Reset the training progress.
Private methodRunTraining
Save the spell in the book and start the training.
Public methodSetVisible
Change the visibility of the view.
(Overrides ViewSetVisible(Boolean, Boolean).)
Protected methodUpdate
Update the visual state when the training is running.
Private methodUpdateSamplesProgress
Update the text and the progress bar for the captured samples.
Private methodUpdateTrainingProgress
Update the text and the progress bar for the training.
Top
Fields
  NameDescription
Private field_samples
The captured samples.
Protected fieldPreviewSlot
The gesture preview slot.
Protected fieldSamplesLabel
The label for the number of captured samples.
Protected fieldSamplesProgress
The progress bar for captured samples.
Protected fieldTrainingLabel
The label for the training progress.
Protected fieldTrainingProgress
The progress bar for the training.
Top
See Also