Rename BazookaSetting.cs to Types/SettingTypes.cs

This commit is contained in:
2025-07-12 13:59:37 -07:00
parent fa4ba4e0e7
commit 2728738184
4 changed files with 15 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
using UnityEngine;
public class HideIfSettingFalse : MonoBehaviour {
public BazookaSetting setting;
public SettingTypes setting;
public bool reverse;
void Start() {
@@ -9,13 +9,13 @@ public class HideIfSettingFalse : MonoBehaviour {
gameObject.SetActive(value == !reverse);
}
bool GetSettingValue(BazookaSetting s) {
bool GetSettingValue(SettingTypes s) {
var b = BazookaManager.Instance;
return s switch {
BazookaSetting.FullScreen => b.GetSettingFullScreen() ?? false,
BazookaSetting.ShowFPS => b.GetSettingShowFPS(),
BazookaSetting.Vsync => b.GetSettingVsync() ?? false,
BazookaSetting.HideSocials => b.GetSettingHideSocials() ?? false,
SettingTypes.FullScreen => b.GetSettingFullScreen() ?? false,
SettingTypes.ShowFPS => b.GetSettingShowFPS(),
SettingTypes.Vsync => b.GetSettingVsync() ?? false,
SettingTypes.HideSocials => b.GetSettingHideSocials() ?? false,
_ => false
};
}