@@ -47,26 +47,26 @@ public static Color GetEffectColor(AudioMixerEffectController effect)
4747
4848 public class Styles
4949 {
50- public GUIStyle headerStyle = new GUIStyle ( EditorStyles . boldLabel ) ;
51- public GUIStyle reorderableListLabel = new GUIStyle ( "PR Label ") ;
50+ public GUIStyle headerStyle = GetStyle ( "AM HeaderStyle" ) ;
51+ public GUIStyle reorderableListLabel = GetStyle ( "ReorderableList ") ;
5252 public GUIStyle regionBg = GetStyle ( "RegionBg" ) ;
5353 public GUIStyle channelStripVUMeterBg = GetStyle ( "ChannelStripVUMeterBg" ) ;
54- public GUIStyle channelStripAreaBackground = "CurveEditorBackground" ; //"flow background";
54+ public GUIStyle channelStripAreaBackground = GetStyle ( "CurveEditorBackground" ) ; //"flow background";
5555 public GUIStyle channelStripBg = GetStyle ( "ChannelStripBg" ) ;
5656 public GUIStyle duckingMarker = GetStyle ( "ChannelStripDuckingMarker" ) ;
5757 public GUIStyle channelStripAttenuationMarkerSquare = GetStyle ( "ChannelStripAttenuationMarkerSquare" ) ;
58- public GUIStyle channelStripHeaderStyle ;
58+ public GUIStyle channelStripHeaderStyle = GetStyle ( "AM ChannelStripHeaderStyle" ) ;
5959 public GUIStyle soloToggle = GetStyle ( "SoloToggle" ) ;
6060 public GUIStyle muteToggle = GetStyle ( "MuteToggle" ) ;
6161 public GUIStyle bypassToggle = GetStyle ( "BypassToggle" ) ;
6262 public GUIStyle circularToggle = GetStyle ( "CircularToggle" ) ;
63- public GUIStyle totalVULevel = new GUIStyle ( EditorStyles . label ) ;
64- public GUIStyle attenuationBar = "ChannelStripAttenuationBar" ;
65- public GUIStyle effectBar = "ChannelStripEffectBar" ;
66- public GUIStyle sendReturnBar = "ChannelStripSendReturnBar" ;
67- public GUIStyle effectName = new GUIStyle ( EditorStyles . miniLabel ) ;
68- public GUIStyle vuValue = new GUIStyle ( EditorStyles . miniLabel ) ;
69- public GUIStyle mixerHeader = new GUIStyle ( EditorStyles . largeLabel ) ;
63+ public GUIStyle totalVULevel = GetStyle ( "AM TotalVuLabel" ) ;
64+ public GUIStyle attenuationBar = GetStyle ( "ChannelStripAttenuationBar" ) ;
65+ public GUIStyle effectBar = GetStyle ( "ChannelStripEffectBar" ) ;
66+ public GUIStyle sendReturnBar = GetStyle ( "ChannelStripSendReturnBar" ) ;
67+ public GUIStyle effectName = GetStyle ( "AM EffectName" ) ;
68+ public GUIStyle vuValue = GetStyle ( "AM VuValue" ) ;
69+ public GUIStyle mixerHeader = GetStyle ( "AM MixerHeader2" ) ;
7070 public GUIStyle warningOverlay = GetStyle ( "WarningOverlay" ) ;
7171 public Texture2D scrollShadowTexture = EditorGUIUtility . FindTexture ( "ScrollShadow" ) ;
7272 public Texture2D leftToRightShadowTexture = EditorGUIUtility . FindTexture ( "LeftToRightShadow" ) ;
@@ -92,52 +92,7 @@ static GUIStyle GetStyle(string styleName)
9292
9393 public Styles ( )
9494 {
95- headerStyle . alignment = TextAnchor . MiddleLeft ;
96-
97- Texture2D transparent = reorderableListLabel . hover . background ;
98- reorderableListLabel . normal . background = transparent ;
99- reorderableListLabel . active . background = transparent ;
100- reorderableListLabel . focused . background = transparent ;
101- reorderableListLabel . onNormal . background = transparent ;
102- reorderableListLabel . onHover . background = transparent ;
103- reorderableListLabel . onActive . background = transparent ;
104- reorderableListLabel . onFocused . background = transparent ;
105- reorderableListLabel . padding . left = reorderableListLabel . padding . right = 0 ;
106- reorderableListLabel . alignment = TextAnchor . MiddleLeft ;
107-
10895 scrollShadowTexture = EditorGUIUtility . FindTexture ( "ScrollShadow" ) ;
109-
110- channelStripHeaderStyle = new GUIStyle ( EditorStyles . boldLabel ) ;
111- channelStripHeaderStyle . alignment = TextAnchor . MiddleLeft ;
112- channelStripHeaderStyle . fontSize = 11 ;
113- channelStripHeaderStyle . fontStyle = FontStyle . Bold ;
114- channelStripHeaderStyle . wordWrap = false ;
115- channelStripHeaderStyle . clipping = TextClipping . Clip ;
116- channelStripHeaderStyle . padding = new RectOffset ( 4 , 4 , 4 , 4 ) ;
117-
118- totalVULevel . alignment = TextAnchor . MiddleRight ;
119- totalVULevel . padding . right = 20 ;
120-
121- effectName . padding . left = 4 ;
122- effectName . padding . top = 2 ;
123-
124- vuValue . padding . left = 4 ;
125- vuValue . padding . right = 4 ;
126- vuValue . padding . top = 0 ;
127- vuValue . alignment = TextAnchor . MiddleRight ;
128- vuValue . clipping = TextClipping . Overflow ;
129-
130- warningOverlay . alignment = TextAnchor . MiddleCenter ;
131-
132- mixerHeader . fontStyle = FontStyle . Bold ;
133- mixerHeader . fontSize = 17 ;
134- mixerHeader . margin = new RectOffset ( ) ;
135- mixerHeader . padding = new RectOffset ( ) ;
136- mixerHeader . alignment = TextAnchor . UpperLeft ;
137- if ( EditorGUIUtility . isProSkin )
138- mixerHeader . normal . textColor = new Color ( 0.7f , 0.7f , 0.7f , 1.0f ) ;
139- else
140- mixerHeader . normal . textColor = new Color ( 0.2f , 0.2f , 0.2f , 1.0f ) ;
14196 }
14297 }
14398 static Styles s_Styles ;
0 commit comments