@@ -187,6 +187,10 @@ class Save
187187 metronomeVolume : 1.0 ,
188188 hitsoundVolumePlayer : 1.0 ,
189189 hitsoundVolumeOpponent : 1.0 ,
190+ instVolume : 1.0 ,
191+ playerVoiceVolume : 1.0 ,
192+ opponentVoiceVolume : 1.0 ,
193+ playbackSpeed : 1.0 ,
190194 themeMusic : true
191195 },
192196
@@ -433,6 +437,57 @@ class Save
433437 return data .optionsChartEditor .hitsoundVolumeOpponent ;
434438 }
435439
440+ public var chartEditorInstVolume (get , set ): Float ;
441+
442+ function get_chartEditorInstVolume (): Float
443+ {
444+ if (data .optionsChartEditor .instVolume == null ) data .optionsChartEditor .instVolume = 1.0 ;
445+
446+ return data .optionsChartEditor .instVolume ;
447+ }
448+
449+ function set_chartEditorInstVolume (value : Float ): Float
450+ {
451+ // Set and apply.
452+ data .optionsChartEditor .instVolume = value ;
453+ flush ();
454+ return data .optionsChartEditor .instVolume ;
455+ }
456+
457+ public var chartEditorPlayerVoiceVolume (get , set ): Float ;
458+
459+ function get_chartEditorPlayerVoiceVolume (): Float
460+ {
461+ if (data .optionsChartEditor .playerVoiceVolume == null ) data .optionsChartEditor .playerVoiceVolume = 1.0 ;
462+
463+ return data .optionsChartEditor .playerVoiceVolume ;
464+ }
465+
466+ function set_chartEditorPlayerVoiceVolume (value : Float ): Float
467+ {
468+ // Set and apply.
469+ data .optionsChartEditor .playerVoiceVolume = value ;
470+ flush ();
471+ return data .optionsChartEditor .playerVoiceVolume ;
472+ }
473+
474+ public var chartEditorOpponentVoiceVolume (get , set ): Float ;
475+
476+ function get_chartEditorOpponentVoiceVolume (): Float
477+ {
478+ if (data .optionsChartEditor .opponentVoiceVolume == null ) data .optionsChartEditor .opponentVoiceVolume = 1.0 ;
479+
480+ return data .optionsChartEditor .opponentVoiceVolume ;
481+ }
482+
483+ function set_chartEditorOpponentVoiceVolume (value : Float ): Float
484+ {
485+ // Set and apply.
486+ data .optionsChartEditor .opponentVoiceVolume = value ;
487+ flush ();
488+ return data .optionsChartEditor .opponentVoiceVolume ;
489+ }
490+
436491 public var chartEditorThemeMusic (get , set ): Bool ;
437492
438493 function get_chartEditorThemeMusic (): Bool
@@ -1714,10 +1769,16 @@ typedef SaveDataChartEditorOptions =
17141769 var ? instVolume : Float ;
17151770
17161771 /**
1717- * Voices volume in the Chart Editor.
1772+ * Player voice volume in the Chart Editor.
1773+ * @default `1.0`
1774+ */
1775+ var ? playerVoiceVolume : Float ;
1776+
1777+ /**
1778+ * Opponent voice volume in the Chart Editor.
17181779 * @default `1.0`
17191780 */
1720- var ? voicesVolume : Float ;
1781+ var ? opponentVoiceVolume : Float ;
17211782
17221783 /**
17231784 * Playback speed in the Chart Editor.
0 commit comments