LADXHD/InGame/Things/GameSettings.cs

33 lines
910 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00

namespace ProjectZ.InGame.Things
{
class GameSettings
{
public static int UiScale = 0;
public static int GameScale = 11; // autoscale
public static bool EnableShadows = true;
public static bool LockFps = true;
public static bool Autosave = true;
public static bool SmoothCamera = true;
public static bool BorderlessWindowed = false;
public static bool IsFullscreen = false;
private static int _musicVolume = 100;
private static int _effectVolume = 100;
public static int MusicVolume
{
get => _musicVolume;
set { _musicVolume = value; Game1.GbsPlayer.SetVolume(value / 100.0f); }
}
public static int EffectVolume
{
get => _effectVolume;
set { _effectVolume = value; }
}
}
}