anchor.diff:    MusicToggled, ShuffleToggled: Boolean;
   begin
     //Change these options only if they changed state since last time
  -  MusicToggled   := (gGameApp.GameSettings.MusicOff <> CheckBox_Settings_MusicOff.Checked);
  -  ShuffleToggled := (gGameApp.GameSettings.ShuffleOn <> CheckBox_Settings_ShuffleOn.Checked);
  -
  -  gGameApp.GameSettings.Brightness            := TrackBar_Settings_Brightness.Position;
  -  gGameApp.GameSettings.Autosave              := CheckBox_Settings_Autosave.Checked;
  -  gGameApp.GameSettings.ReplayAutopause       := CheckBox_Settings_ReplayAutopause.Checked;
  -  gGameApp.GameSettings.ScrollSpeed           := TrackBar_Settings_ScrollSpeed.Position;
  -  gGameApp.GameSettings.SoundFXVolume         := TrackBar_Settings_SFX.Position / TrackBar_Settings_SFX.MaxValue;
  -  gGameApp.GameSettings.MusicVolume           := TrackBar_Settings_Music.Position / TrackBar_Settings_Music.MaxValue;
  -  gGameApp.GameSettings.MusicOff              := CheckBox_Settings_MusicOff.Checked;
  -  gGameApp.GameSettings.ShuffleOn             := CheckBox_Settings_ShuffleOn.Checked;
  +  MusicToggled   := (gGameApp.GameSettings.MusicOff <> CheckBox_MusicOff.Checked);
  +  ShuffleToggled := (gGameApp.GameSettings.ShuffleOn <> CheckBox_ShuffleOn.Checked);
  +
  +  gGameApp.GameSettings.Brightness            := TrackBar_Brightness.Position;
  +  gGameApp.GameSettings.Autosave              := CheckBox_Autosave.Checked;
  +  gGameApp.GameSettings.ReplayAutopause       := CheckBox_ReplayAutopauseAtPTEnd.Checked;
  +  gGameApp.GameSettings.ScrollSpeed           := TrackBar_ScrollSpeed.Position;
  +  gGameApp.GameSettings.SoundFXVolume         := TrackBar_SFX.Position / TrackBar_SFX.MaxValue;
  +  gGameApp.GameSettings.MusicVolume           := TrackBar_Music.Position / TrackBar_Music.MaxValue;
  +  gGameApp.GameSettings.MusicOff              := CheckBox_MusicOff.Checked;
  +  gGameApp.GameSettings.ShuffleOn             := CheckBox_ShuffleOn.Checked;
   
     if gGame.IsReplay then
  -    gGameApp.GameSettings.ReplayShowBeacons   := CheckBox_Settings_ReplaySpecShowBeacons.Checked
  +    gGameApp.GameSettings.ReplayShowBeacons   := CheckBox_ReplaySpecShowBeacons.Checked
     else if gGame.GameMode = gmMultiSpectate then
  -    gGameApp.GameSettings.SpecShowBeacons   := CheckBox_Settings_ReplaySpecShowBeacons.Checked;
  +    gGameApp.GameSettings.SpecShowBeacons   := CheckBox_ReplaySpecShowBeacons.Checked;
   
     gSoundPlayer.UpdateSoundVolume(gGameApp.GameSettings.SoundFXVolume);
     gGameApp.MusicLib.UpdateMusicVolume(gGameApp.GameSettings.MusicVolume);
  
positive.code: begin
    Top := 15;
    if gGame.IsReplay then
      CheckBox_Settings_Autosave.Hide
    else begin
      CheckBox_Settings_Autosave.Show;
      Inc(Top, 25);
    end;
  
    if gGame.GameMode = gmReplayMulti then
    begin
      CheckBox_Settings_ReplayAutoPause.Top := Top;
      CheckBox_Settings_ReplayAutoPause.Show;
      Inc(Top, 40);
    end else
      CheckBox_Settings_ReplayAutoPause.Hide;
  
    if gGame.GameMode in [gmReplaySingle, gmReplayMulti, gmMultiSpectate] then
    begin
      CheckBox_Settings_ReplaySpecShowBeacons.Top := Top;
      CheckBox_Settings_ReplaySpecShowBeacons.Show;
      Inc(Top, 25);
    end else
      CheckBox_Settings_ReplaySpecShowBeacons.Hide;
  
    TrackBar_Settings_Brightness.Top := Top;
    Inc(Top, 55);
    TrackBar_Settings_ScrollSpeed.Top := Top;
    Inc(Top, 55);
    TrackBar_Settings_SFX.Top := Top;
    Inc(Top, 55);
    TrackBar_Settings_Music.Top := Top;
    Inc(Top, 55);
    CheckBox_Settings_MusicOff.Top := Top;
    Inc(Top, 25);
    CheckBox_Settings_ShuffleOn.Top := Top;
  
    Panel_Settings.Height := CheckBox_Settings_ShuffleOn.Top + CheckBox_Settings_ShuffleOn.Height + 2;
  end;
  
  procedure TKMGameMenuSettings.Menu_Settings_Fill;
  begin
    TrackBar_Settings_Brightness.Position     := gGameApp.GameSettings.Brightness;
    CheckBox_Settings_Autosave.Checked        := gGameApp.GameSettings.Autosave;
    CheckBox_Settings_ReplayAutoPause.Checked := gGameApp.GameSettings.ReplayAutopause;
    TrackBar_Settings_ScrollSpeed.Position    := gGameApp.GameSettings.ScrollSpeed;
    TrackBar_Settings_SFX.Position            := Round(gGameApp.GameSettings.SoundFXVolume * TrackBar_Settings_SFX.MaxValue);
    TrackBar_Settings_Music.Position          := Round(gGameApp.GameSettings.MusicVolume * TrackBar_Settings_Music.MaxValue);
    CheckBox_Settings_MusicOff.Checked        := gGameApp.GameSettings.MusicOff;
    CheckBox_Settings_ShuffleOn.Checked       := gGameApp.GameSettings.ShuffleOn;
  
    if gGame.IsReplay then
      CheckBox_Settings_ReplaySpecShowBeacons.Checked := gGameApp.GameSettings.ReplayShowBeacons
    else if gGame.GameMode = gmMultiSpectate then
      CheckBox_Settings_ReplaySpecShowBeacons.Checked := gGameApp.GameSettings.SpecShowBeacons;
  
    TrackBar_Settings_Music.Enabled           := not CheckBox_Settings_MusicOff.Checked;
    CheckBox_Settings_ShuffleOn.Enabled       := not CheckBox_Settings_MusicOff.Checked;
    CheckBox_Settings_ReplayAutoPause.Enabled := (gGame.GameMode = gmReplayMulti) and gGame.IsPeaceTime;
    UpdateControlsPosition;
  end;
  
  
negative.code:     procedure UpdateControlsPosition;
    protected
      Panel_Settings: TKMPanel;
        CheckBox_Autosave: TKMCheckBox;
        CheckBox_ReplayAutopauseAtPTEnd: TKMCheckBox;
        CheckBox_ReplaySpecShowBeacons: TKMCheckBox;
        TrackBar_Brightness: TKMTrackBar;
        TrackBar_SFX: TKMTrackBar;
        TrackBar_Music: TKMTrackBar;
        TrackBar_ScrollSpeed: TKMTrackBar;
        CheckBox_MusicOff: TKMCheckBox;
        CheckBox_ShuffleOn: TKMCheckBox;
    public
      constructor Create(aParent: TKMPanel);
  
  