Feel  4.0.1
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMSequencerEditor Class Reference

Custom editor for MMSequencer, handles recalibration and sequencer display More...

Inheritance diagram for MoreMountains.Feedbacks.MMSequencerEditor:

Public Member Functions

override bool RequiresConstantRepaint ()
 We want constant repaint on this inspector More...
 
override void OnInspectorGUI ()
 Draws the default inspector and the sequencer More...
 

Protected Member Functions

virtual void OnEnable ()
 On enable we grab our textures and initialize our styles More...
 
virtual void FillControlList ()
 
virtual void LookForChanges ()
 Whenever we detect a change in the settings we recalibrate our sequence accordingly More...
 
virtual void DrawControlButtons ()
 Draws control buttons More...
 
virtual void DrawSequenceIndexes ()
 Draws an index for each sequence item More...
 
virtual void DrawTrack (int trackIndex)
 Draws a line of the sequencer More...
 
virtual void DrawSequenceButton (int trackIndex, int sequenceIndex, Color buttonColor)
 Draws an interactive button for the sequencer More...
 
virtual Color SequencerColor (float lastBeatTimestamp, Color buttonColor)
 Color interpolation on hits More...
 

Protected Attributes

MMSequencer _targetSequencer
 
float _inspectorWidth
 
GUIStyle _buttonStyle
 
GUIStyle _trackControlStyle
 
GUIStyle _indexStyle
 
Texture2D _buttonBackground
 
Texture2D _dotBackground
 
Color _buttonColor
 
Color _trackControlColor
 
Color _emptyButtonColor = new Color(0,0,0,0.5f)
 
Color _empty4ButtonColor = new Color(0, 0, 0, 0.75f)
 
int _boxesPerLine
 
Color _originalBackgroundColor
 
Color _controlColor
 
List< float > _trackControlLastUseTimestamps
 

Static Protected Attributes

const float _buttonWidth = 24
 
const float _trackControlWidth = 11
 
const float _distanceBetweenButtons = 6f
 

Detailed Description

Custom editor for MMSequencer, handles recalibration and sequencer display

Member Function Documentation

◆ DrawControlButtons()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.DrawControlButtons ( )
protectedvirtual

Draws control buttons

◆ DrawSequenceButton()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.DrawSequenceButton ( int  trackIndex,
int  sequenceIndex,
Color  buttonColor 
)
protectedvirtual

Draws an interactive button for the sequencer

Parameters
trackIndex
sequenceIndex
buttonColor

◆ DrawSequenceIndexes()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.DrawSequenceIndexes ( )
protectedvirtual

Draws an index for each sequence item

◆ DrawTrack()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.DrawTrack ( int  trackIndex)
protectedvirtual

Draws a line of the sequencer

Parameters
trackIndex

◆ FillControlList()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.FillControlList ( )
protectedvirtual

◆ LookForChanges()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.LookForChanges ( )
protectedvirtual

Whenever we detect a change in the settings we recalibrate our sequence accordingly

◆ OnEnable()

virtual void MoreMountains.Feedbacks.MMSequencerEditor.OnEnable ( )
protectedvirtual

On enable we grab our textures and initialize our styles

◆ OnInspectorGUI()

override void MoreMountains.Feedbacks.MMSequencerEditor.OnInspectorGUI ( )

Draws the default inspector and the sequencer

◆ RequiresConstantRepaint()

override bool MoreMountains.Feedbacks.MMSequencerEditor.RequiresConstantRepaint ( )

We want constant repaint on this inspector

Returns

◆ SequencerColor()

virtual Color MoreMountains.Feedbacks.MMSequencerEditor.SequencerColor ( float  lastBeatTimestamp,
Color  buttonColor 
)
protectedvirtual

Color interpolation on hits

Parameters
lastBeatTimestamp
buttonColor
Returns

Member Data Documentation

◆ _boxesPerLine

int MoreMountains.Feedbacks.MMSequencerEditor._boxesPerLine
protected

◆ _buttonBackground

Texture2D MoreMountains.Feedbacks.MMSequencerEditor._buttonBackground
protected

◆ _buttonColor

Color MoreMountains.Feedbacks.MMSequencerEditor._buttonColor
protected

◆ _buttonStyle

GUIStyle MoreMountains.Feedbacks.MMSequencerEditor._buttonStyle
protected

◆ _buttonWidth

const float MoreMountains.Feedbacks.MMSequencerEditor._buttonWidth = 24
staticprotected

◆ _controlColor

Color MoreMountains.Feedbacks.MMSequencerEditor._controlColor
protected

◆ _distanceBetweenButtons

const float MoreMountains.Feedbacks.MMSequencerEditor._distanceBetweenButtons = 6f
staticprotected

◆ _dotBackground

Texture2D MoreMountains.Feedbacks.MMSequencerEditor._dotBackground
protected

◆ _empty4ButtonColor

Color MoreMountains.Feedbacks.MMSequencerEditor._empty4ButtonColor = new Color(0, 0, 0, 0.75f)
protected

◆ _emptyButtonColor

Color MoreMountains.Feedbacks.MMSequencerEditor._emptyButtonColor = new Color(0,0,0,0.5f)
protected

◆ _indexStyle

GUIStyle MoreMountains.Feedbacks.MMSequencerEditor._indexStyle
protected

◆ _inspectorWidth

float MoreMountains.Feedbacks.MMSequencerEditor._inspectorWidth
protected

◆ _originalBackgroundColor

Color MoreMountains.Feedbacks.MMSequencerEditor._originalBackgroundColor
protected

◆ _targetSequencer

MMSequencer MoreMountains.Feedbacks.MMSequencerEditor._targetSequencer
protected

◆ _trackControlColor

Color MoreMountains.Feedbacks.MMSequencerEditor._trackControlColor
protected

◆ _trackControlLastUseTimestamps

List<float> MoreMountains.Feedbacks.MMSequencerEditor._trackControlLastUseTimestamps
protected

◆ _trackControlStyle

GUIStyle MoreMountains.Feedbacks.MMSequencerEditor._trackControlStyle
protected

◆ _trackControlWidth

const float MoreMountains.Feedbacks.MMSequencerEditor._trackControlWidth = 11
staticprotected

The documentation for this class was generated from the following file: