@@ -145,7 +145,7 @@ Texture2D gridTextureTilable
145145
146146 void DrawAreaBackground ( Rect rect )
147147 {
148- if ( Event . current . type == EventType . repaint )
148+ if ( Event . current . type == EventType . Repaint )
149149 {
150150 // Draw background
151151 Color prevColor = GUI . color ;
@@ -822,7 +822,7 @@ private bool DoSoloButton(Rect r, AudioMixerGroupController group, List<AudioMix
822822 Event evt = Event . current ;
823823
824824 // Right click toggle
825- if ( evt . type == EventType . mouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . solo ) )
825+ if ( evt . type == EventType . MouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . solo ) )
826826 {
827827 Undo . RecordObject ( group , "Change solo state" ) ;
828828 foreach ( var g in allGroups )
@@ -849,7 +849,7 @@ private bool DoMuteButton(Rect r, AudioMixerGroupController group, List<AudioMix
849849 {
850850 Event evt = Event . current ;
851851 // Right click toggle
852- if ( evt . type == EventType . mouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . mute ) )
852+ if ( evt . type == EventType . MouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . mute ) )
853853 {
854854 Undo . RecordObject ( group , "Change mute state" ) ;
855855 if ( allGroups . Any ( g => g . solo ) )
@@ -883,7 +883,7 @@ private bool DoBypassEffectsButton(Rect r, AudioMixerGroupController group, List
883883 {
884884 Event evt = Event . current ;
885885 // Right click toggle
886- if ( evt . type == EventType . mouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . bypassEffects ) )
886+ if ( evt . type == EventType . MouseUp && evt . button == 1 && r . Contains ( evt . mousePosition ) && allGroups . Any ( g => g . bypassEffects ) )
887887 {
888888 Undo . RecordObject ( group , "Change bypass effects state" ) ;
889889 foreach ( var g in allGroups )
@@ -1170,7 +1170,7 @@ List<Rect> GetBackgroundRects(Rect r, AudioMixerGroupController group, int maxNu
11701170
11711171 void DrawBackgrounds ( ChannelStripParams p , bool selected )
11721172 {
1173- if ( Event . current . type == EventType . repaint )
1173+ if ( Event . current . type == EventType . Repaint )
11741174 {
11751175 // Bg
11761176 styles . channelStripBg . Draw ( p . stripRect , false , false , selected , false ) ;
@@ -1320,7 +1320,7 @@ void DoEffectList(ChannelStripParams p, bool selected, ref int highlightEffectIn
13201320 if ( p . visible )
13211321 {
13221322 Rect effectRect = p . bgRects [ p . bgRects . Count - 1 ] ;
1323- if ( evt . type == EventType . repaint )
1323+ if ( evt . type == EventType . Repaint )
13241324 {
13251325 GUI . DrawTextureWithTexCoords ( new Rect ( effectRect . x , effectRect . y , effectRect . width , effectRect . height - 1 ) , styles . effectBar . hover . background , new Rect ( 0 , 0.5f , 0.1f , 0.1f ) ) ;
13261326 GUI . Label ( effectRect , addText , styles . effectName ) ;
@@ -1525,10 +1525,10 @@ public void OnGUI(Rect rect, bool showReferencedBuses, bool showBusConnections,
15251525 DrawChannelStrip ( channelStripParams , ref m_Controller . m_HighlightEffectIndex , ref patchslots , showBusConnectionsOfSelection ) ;
15261526
15271527 // If we click inside the the strip rect we use the event to ensure the mousedown is not caught by rectangle selection
1528- if ( evt . type == EventType . mouseDown && evt . button == 0 && channelStripParams . stripRect . Contains ( evt . mousePosition ) )
1528+ if ( evt . type == EventType . MouseDown && evt . button == 0 && channelStripParams . stripRect . Contains ( evt . mousePosition ) )
15291529 evt . Use ( ) ;
15301530 // If we are dragging effects we reset destination index when dragging outside effects
1531- if ( IsMovingEffect ( ) && evt . type == EventType . mouseDrag && channelStripParams . stripRect . Contains ( evt . mousePosition ) && GUIUtility . hotControl == m_EffectInteractionControlID )
1531+ if ( IsMovingEffect ( ) && evt . type == EventType . MouseDrag && channelStripParams . stripRect . Contains ( evt . mousePosition ) && GUIUtility . hotControl == m_EffectInteractionControlID )
15321532 {
15331533 m_MovingEffectDstIndex = - 1 ;
15341534 evt . Use ( ) ;
0 commit comments