Skip to content

Commit

Permalink
Update Options.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamd3v committed Aug 3, 2024
1 parent 0157b36 commit 22dc6cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Data/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,36 @@ public static void Initialize()
EnableHitmarkers = _enableHitmarkers;
HitmarkerSFX = _hitmarkerVolume;
HitmarkerPitch = _hitmarkerPitch;

MelonPreferences.Save();
}

public static void SetDefaultSkin(string skin)
{
_favoritedSkin.entry.Value = skin;
FavoriteSkin = _favoritedSkin;
MelonPreferences.Save();
}

public static void SetEnableHitmarkers(bool enable)
{
_enableHitmarkers.entry.Value = enable;
EnableHitmarkers = _enableHitmarkers;
MelonPreferences.Save();
}

public static void SetHitmarkerVolume(float volume)
{
_hitmarkerVolume.entry.Value = volume;
HitmarkerSFX = _hitmarkerVolume;
MelonPreferences.Save();
}

public static void SetHitmarkerPitch(float pitch)
{
_hitmarkerPitch.entry.Value = pitch;
HitmarkerPitch = _hitmarkerPitch;
MelonPreferences.Save();
}
}
}

0 comments on commit 22dc6cd

Please sign in to comment.