Click or drag to resize

SpellEditView Class

The spell configuration view.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.UI.ViewsView
            RavingBots.MagicGestures.UI.ViewsSpellEditView

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

The SpellEditView type exposes the following members.

Constructors
  NameDescription
Public methodSpellEditView
Initializes a new instance of the SpellEditView class
Top
Properties
  NameDescription
Protected propertyColorSlots
All colors slots.
Protected propertyEffectSlots
All effects slots.
Top
Methods
  NameDescription
Protected methodAwake
Set the initial state.
(Overrides ViewAwake.)
Private methodCreateColorSlots
Create all of the color slots in a circle.
Private methodCreateEffectSlots
Create all of the effect slots.
Public methodGetRandomColorSlot
Get a random color slot.
Public methodGoBack
Called when user presses the back button.
(Overrides ViewGoBack.)
Private methodSetColor
Change the selected color.
Private methodSetEffect
Change the selected effect.
Public methodSetVisible
Change the visibility of the view.
(Overrides ViewSetVisible(Boolean, Boolean).)
Protected methodStart
Private methodUpdateSelectedColor
Update the slots after a new color is selected.
Private methodUpdateSelectedEffect
Update the slots after a new effect is selected.
Top
Fields
  NameDescription
Protected fieldColorSlotCount
The number of color slots.
Protected fieldColorSlotPrefab
The prefab for the color slots.
Protected fieldColorSlotRadius
The radius of the circle on which slots will be laid out.
Protected fieldEffectSlotPrefab
The prefab for the effect slots.
Protected fieldEffectSlotRadius
The radius of the effect slots.
Protected fieldPreviewSlot
The gesture preview slot.
Protected fieldSlotColor1
Slot colors are interpolated between three colors based on the position of the slot.
Protected fieldSlotColor2
Slot colors are interpolated between three colors based on the position of the slot.
Protected fieldSlotColor3
Slot colors are interpolated between three colors based on the position of the slot.
Top
See Also