@@ -531,8 +531,6 @@ public void DrawSettingsWindow()
531531 SaveSettings ( ) ;
532532 }
533533
534- if ( Settings . EnableGhostRain )
535- DrawGhostRainColorSettings ( ) ;
536534 }
537535
538536 GUILayout . Space ( 10 ) ;
@@ -559,7 +557,7 @@ public void DrawSettingsWindow()
559557
560558 // Color settings section / 颜色设置区域
561559 bool colorsExpanded = GUILayout . Toggle ( ColorExpanded != null , ( ColorExpanded != null ? "\u25E2 " : "\u25B6 " ) + I18n . Tr ( "colors" ) ) ;
562- if ( colorsExpanded && ColorExpanded == null ) ColorExpanded = new bool [ 9 ] ;
560+ if ( colorsExpanded && ColorExpanded == null ) ColorExpanded = new bool [ 12 ] ;
563561 if ( ! colorsExpanded ) ColorExpanded = null ;
564562 if ( ColorExpanded != null )
565563 {
@@ -919,62 +917,26 @@ private void DrawTextChangeSection()
919917 GUILayout . EndVertical ( ) ;
920918 }
921919
922- /// <summary>
923- /// Draw the color settings section / 绘制颜色设置区域
924- /// RGB-A sliders with preview and reset buttons for each color / 每个颜色的 R/G/B/A 滑块、预览和重置按钮
925- /// </summary>
926- private void DrawGhostRainColorSettings ( )
927- {
928- GUILayout . BeginVertical ( "box" ) ;
929- string [ ] rowNames = { I18n . Tr ( "rain_row1" ) , I18n . Tr ( "rain_row2" ) , I18n . Tr ( "rain_row3" ) } ;
930- Color [ ] ghostColors = { Settings . GhostRainColor , Settings . GhostRainColor2 , Settings . GhostRainColor3 } ;
931- Color [ ] ghostDefaults = { GhostRainColorDefault , GhostRainColor2Default , GhostRainColor3Default } ;
932-
933- int rowCount = Settings . KeyViewerStyle == KeyviewerStyle . Key20 ? 3 : 2 ;
934- for ( int r = 0 ; r < rowCount ; r ++ )
935- {
936- bool expanded = GUILayout . Toggle ( ghostRainColorExpanded == r ,
937- ( ghostRainColorExpanded == r ? "\u25E2 " : "\u25B6 " ) + I18n . Tr ( "ghost_rain" ) + " " + rowNames [ r ] ) ;
938- if ( expanded != ( ghostRainColorExpanded == r ) )
939- ghostRainColorExpanded = expanded ? r : - 1 ;
940-
941- if ( ghostRainColorExpanded == r )
942- {
943- GUILayout . BeginVertical ( "box" ) ;
944- Color cur = ghostColors [ r ] ;
945- Color newColor = DrawColorPicker ( rowNames [ r ] , cur , ghostDefaults [ r ] ) ;
946- if ( newColor != cur )
947- {
948- switch ( r )
949- {
950- case 0 : Settings . GhostRainColor = newColor ; break ;
951- case 1 : Settings . GhostRainColor2 = newColor ; break ;
952- case 2 : Settings . GhostRainColor3 = newColor ; break ;
953- }
954- SaveSettings ( ) ;
955- }
956- GUILayout . EndVertical ( ) ;
957- }
958- }
959- GUILayout . EndVertical ( ) ;
960- }
961-
962920 private void DrawColorSettings ( )
963921 {
964922 GUILayout . BeginVertical ( "box" ) ;
965923 string [ ] colorNames = {
966924 I18n . Tr ( "color_bg" ) , I18n . Tr ( "color_bg_clicked" ) , I18n . Tr ( "color_outline" ) , I18n . Tr ( "color_outline_clicked" ) ,
967925 I18n . Tr ( "color_text" ) , I18n . Tr ( "color_text_clicked" ) ,
968- I18n . Tr ( "color_rain1" ) , I18n . Tr ( "color_rain2" ) , I18n . Tr ( "color_rain3" )
926+ I18n . Tr ( "color_rain1" ) , I18n . Tr ( "color_rain2" ) , I18n . Tr ( "color_rain3" ) ,
927+ I18n . Tr ( "ghost_rain_color1" ) , I18n . Tr ( "ghost_rain_color2" ) , I18n . Tr ( "ghost_rain_color3" )
969928 } ;
970929 Color [ ] defaultColors = {
971930 Background , BackgroundClicked , Outline , OutlineClicked ,
972931 Text , TextClicked ,
973- RainColor , RainColor2 , RainColor3
932+ RainColor , RainColor2 , RainColor3 ,
933+ GhostRainColorDefault , GhostRainColor2Default , GhostRainColor3Default
974934 } ;
975- for ( int i = 0 ; i < 9 ; i ++ )
935+ for ( int i = 0 ; i < 12 ; i ++ )
976936 {
977- if ( i >= 6 && ! Settings . EnableRainEffect )
937+ if ( i >= 6 && i < 9 && ! Settings . EnableRainEffect )
938+ continue ;
939+ if ( i >= 9 && ! Settings . EnableGhostRain )
978940 continue ;
979941 ColorExpanded [ i ] = GUILayout . Toggle ( ColorExpanded [ i ] , ColorExpanded [ i ] ? $ "\u25E2 { colorNames [ i ] } " : $ "\u25B6 { colorNames [ i ] } ") ;
980942 if ( ColorExpanded [ i ] )
@@ -1002,8 +964,6 @@ private void DrawColorSettings()
1002964 int kpsColorType = - 1 ;
1003965 int totalColorType = - 1 ;
1004966
1005- int ghostRainColorExpanded = - 1 ;
1006-
1007967 private void DrawKpsTotalColors ( int pi , string label , ref int expandedType )
1008968 {
1009969 bool show = GUILayout . Toggle ( expandedType >= 0 , ( expandedType >= 0 ? "◢ " : "▶ " ) + label ) ;
0 commit comments