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

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5df5d134be18d57cd9b576a8a93d29ba
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,4 +1,4 @@
public enum BazookaSetting public enum SettingTypes
{ {
FullScreen, FullScreen,
ShowFPS, ShowFPS,