preferences fixes and dropdown styles

This commit is contained in:
ntr committed 2022-04-01 14:08:47 +11:00
1 parent 84def133a9
commit fe7b36a198
9 files changed
+1792 -2164

No files matched your search

+747 -745
View File
File diff suppressed because it is too large. Load diff
+37
View File
@@ -0,0 +1,37 @@
using System.IO;
using UnityEngine;
[System.Serializable]
public class PreferenceData {
// Preference Fields
public int themeIndex;
// Others
string _path;
public PreferenceData(string path) {
_path = path;
themeIndex = 0;
}
public PreferenceData Load() {
try {
string json = File.ReadAllText(_path);
JsonUtility.FromJsonOverwrite(json, this);
return this;
} catch {
// file doesn't exist yet
return Save();
}
}
public PreferenceData Save() {
File.WriteAllText(_path, JsonUtility.ToJson(this));
return this;
}
}
public interface IPreferenceData {
PreferenceData LoadPreferences();
PreferenceData SavePreferences();
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 527dc6c194bc32c4da9ea01e83de6fbe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+21
View File
@@ -0,0 +1,21 @@
using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
public class Preferences : MonoBehaviour {
ThemeSelector themeSelector;
public PreferenceData data;
void Awake() {
string path = Path.Combine(Application.persistentDataPath, "preferences.json");
data = new PreferenceData(path).Load();
// Debug.Log($"ThemeIndex {data.themeIndex}");
}
public void SetThemeIndex(int i) {
data.themeIndex = i;
data.Save();
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 26b88d85e12af85469a5e3e4cfc3586b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+512 -192
View File
@@ -198,7 +198,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 100829523}
m_LocalRotation: {x: 0.16018224, y: 0.000000009349981, z: -0.0000000015172936, w: 0.9870875}
m_LocalRotation: {x: 0.16018224, y: -0.000000009349981, z: 0.0000000015172936, w: 0.9870875}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@@ -282,7 +282,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 135872332}
m_LocalRotation: {x: 0.12422062, y: 0.000000011957323, z: -0.0000000014969403, w: 0.9922547}
m_LocalRotation: {x: 0.124220625, y: 0.0000000031629452, z: -3.9596992e-10, w: 0.9922547}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@@ -1674,6 +1674,28 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 890755856}
m_CullTransparentMesh: 1
--- !u!114 &910216853 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4039978357261195959, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
m_PrefabInstance: {fileID: 1258533306}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5a4ecabf05fe7f144948e9229d01468b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &910216854 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
m_PrefabInstance: {fileID: 1258533306}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &915876173
GameObject:
m_ObjectHideFlags: 0
@@ -1711,17 +1733,6 @@ RectTransform:
m_AnchoredPosition: {x: -5, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &916906094 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 3228088716711179522, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
m_PrefabInstance: {fileID: 1258533306}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5a4ecabf05fe7f144948e9229d01468b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &936348874
GameObject:
m_ObjectHideFlags: 0
@@ -1924,7 +1935,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 936348874}
m_LocalRotation: {x: 0.14220117, y: 0.000000017570704, z: -0.000000002369296, w: 0.98983777}
m_LocalRotation: {x: 0.14220117, y: 0.000000017570702, z: -0.000000002369276, w: 0.98983777}
m_LocalPosition: {x: 0, y: 50, z: -150}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@@ -2133,6 +2144,98 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 389580469399573724, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 389580469399573724, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.y
value: 0.81333333
objectReference: {fileID: 0}
- target: {fileID: 600543511852417227, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.b
value: 1
objectReference: {fileID: 0}
- target: {fileID: 600543511852417227, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.g
value: 1
objectReference: {fileID: 0}
- target: {fileID: 600543511852417227, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1336357564912058984, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1336357564912058984, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3116174350813030682, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.b
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.g
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: 2eec6d9eb205aff4ab971dea4ede1c30, type: 3}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_MinSize
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4106120602628123904, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_FontSize
value: 16
objectReference: {fileID: 0}
- target: {fileID: 4542287051049337128, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Type
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4542287051049337128, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Sprite
value:
objectReference: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0}
- target: {fileID: 4783419054629544575, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4783419054629544575, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4783419054629544575, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_SizeDelta.x
value: -17
objectReference: {fileID: 0}
- target: {fileID: 5066440549684384060, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_CullTransparentMesh
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5228971210325442140, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5228971210325442140, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMin.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5228971210325442140, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchoredPosition.x
value: -96
objectReference: {fileID: 0}
- target: {fileID: 5305278010342315827, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Pivot.x
value: 0
@@ -2221,59 +2324,276 @@ PrefabInstance:
propertyPath: m_Name
value: Menu
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Maskable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5382601166916166373, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_RaycastTarget
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Transition
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.b
value: 0.3962264
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.g
value: 0.3962264
objectReference: {fileID: 0}
- target: {fileID: 5561576185973773021, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.r
value: 0.3962264
objectReference: {fileID: 0}
- target: {fileID: 5991222522342734210, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_PressedColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_DisabledColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_SelectedColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Colors.m_HighlightedColor.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Options.m_Options.Array.data[1].m_Text
value: Doppler
objectReference: {fileID: 0}
- target: {fileID: 6230645932078680939, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgument
value:
objectReference: {fileID: 910216854}
- target: {fileID: 6756787231240982881, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.a
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6756787231240982881, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.b
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6756787231240982881, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.g
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6756787231240982881, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.r
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6756787231240982881, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6822126994811884559, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6822126994811884559, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6822126994811884559, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.b
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.g
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Color.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: 2eec6d9eb205aff4ab971dea4ede1c30, type: 3}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_MinSize
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_FontSize
value: 16
objectReference: {fileID: 0}
- target: {fileID: 8164636713992556007, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_FontData.m_FontStyle
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8330535021437960620, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8571172288365902113, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: m_Text
value: Monochrome
objectReference: {fileID: 0}
- target: {fileID: 8681115429733332136, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
propertyPath: data.themeIndex
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 31660dba95ae9a9408051002a1e4c382, type: 3}
--- !u!28 &1296665471
Texture2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: AudioSpectrumData128
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 2
m_Width: 128
m_Height: 1
m_CompleteImageSize: 512
m_MipsStripped: 0
m_TextureFormat: 18
m_MipCount: 1
m_IsReadable: 1
m_IsPreProcessed: 0
m_IgnoreMasterTextureLimit: 0
m_StreamingMipmaps: 0
m_StreamingMipmapsPriority: 0
m_VTOnly: 0
m_AlphaIsTransparency: 0
m_ImageCount: 1
m_TextureDimension: 2
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 0
m_WrapV: 0
m_WrapW: 0
m_LightmapFormat: 0
m_ColorSpace: 0
m_PlatformBlob:
image data: 512
_typelessdata: 4c8bbd3e65a3a93ea62d943e67f5653eda412f3ee8fb023e506ddb3d45edd13dd5a2d53d5067cd3d9dccab3d9af48b3df7318d3d7b7d8d3df7fc893da0f88a3d1f73893d47d48a3db3738f3de6b08d3dde338c3dc7f8883ddd4c833d306e663d1c775a3de522573d5970503dce3c6d3d08da6c3ddd186f3d9f74753db13e763d8e5c6d3dc14e643d6498553d05294a3d8cb9403d73d32f3d82d4243d74f32c3da3e9303df96a343d68bc353deb652e3d506e283d8e611f3d68541c3d217d1f3d6aa9293d250f303da6b32a3dce3e353d15f5343d320c353d1de7263d8a8d233d6a461f3dd8251e3dd6c9213d1b4e2b3d041e2b3d682b333dd48b2e3d9e5b2b3d8e6d1b3d0eed273d23a32e3d2080323da24c2d3d8190333d77c63f3d72c23f3d6916363db407273d4b67243de85a243d62b32e3d89b8333db13e333d163c223d62e5293d5576293d7a4e1b3d0471143d980f133d575b1c3d1443233df0fa273dea57263dcb5a233de860283dcda72b3d1ee82a3d4ac2333dd169393da4372c3dfbcb313d6027263dceb91d3d2a15243de75a1f3de9731e3d99d91d3dc9742a3d9477363d833e363daf113e3d49fc443d6ff33d3d783a333d31682c3d83522c3d35d22a3d8634243d08b6243db9a01d3d1611263dba07283da8352c3d14e6283dcf99213dfd2d243d33641a3d9169053dc0b0e53cea88ad3c79f4923ca019813c
m_StreamData:
serializedVersion: 2
offset: 0
size: 0
path:
--- !u!1 &1391277498
GameObject:
m_ObjectHideFlags: 3
@@ -2699,7 +3019,7 @@ VisualEffect:
m_Overridden: 1
m_NamedObject:
m_Array:
- m_Value: {fileID: 1296665471}
- m_Value: {fileID: 0}
m_Name: SpectrumDataTexture
m_Overridden: 1
- m_Value: {fileID: 0}
@@ -2728,134 +3048,134 @@ MonoBehaviour:
- rid: 1586242992680206341
Preview:
Values:
- 0.37020338
- 0.33132473
- 0.28941077
- 0.22456895
- 0.17114964
- 0.12791407
- 0.10714209
- 0.10250334
- 0.10431448
- 0.10029471
- 0.08388636
- 0.068337634
- 0.06894296
- 0.06908699
- 0.06737702
- 0.06785703
- 0.06711411
- 0.0677877
- 0.0700449
- 0.06918506
- 0.068458304
- 0.066880755
- 0.06411145
- 0.056257427
- 0.053336248
- 0.052523512
- 0.050888393
- 0.057919316
- 0.05782512
- 0.05837332
- 0.05992567
- 0.06011838
- 0.057949595
- 0.055739168
- 0.052147284
- 0.049355526
- 0.04705195
- 0.042926263
- 0.040241726
- 0.042224362
- 0.043191563
- 0.04404733
- 0.04436913
- 0.042577665
- 0.041120827
- 0.038911395
- 0.038166434
- 0.03893769
- 0.04142133
- 0.042983193
- 0.041675232
- 0.04424935
- 0.04417904
- 0.044201083
- 0.04074775
- 0.039929904
- 0.03888551
- 0.03861031
- 0.039499126
- 0.041822534
- 0.041776672
- 0.043742567
- 0.04261382
- 0.04183542
- 0.037946276
- 0.040997557
- 0.042636048
- 0.04357922
- 0.04230941
- 0.04383898
- 0.04682013
- 0.046816297
- 0.044454966
- 0.04077883
- 0.04013757
- 0.040125757
- 0.04265154
- 0.04387716
- 0.04376096
- 0.039608084
- 0.041478522
- 0.041372616
- 0.037916638
- 0.036240593
- 0.035903543
- 0.038173046
- 0.039858893
- 0.041010797
- 0.040611185
- 0.03988151
- 0.041108042
- 0.041908074
- 0.04172527
- 0.04388646
- 0.04526693
- 0.04204525
- 0.04340742
- 0.040564895
- 0.038507275
- 0.040059246
- 0.03890505
- 0.03868476
- 0.038537595
- 0.04161528
- 0.044547632
- 0.04449321
- 0.046403583
- 0.04809216
- 0.046374734
- 0.043756932
- 0.042091552
- 0.042070877
- 0.041704375
- 0.040089153
- 0.04021266
- 0.038483355
- 0.04054364
- 0.041022994
- 0.042043358
- 0.041235045
- 0.039453324
- 0.04008292
- 0.037693214
- 0.03257138
- 0.028038383
- 0.02118345
- 0.01793884
- 0.01575929
- 0.12829196
- 0.14729007
- 0.15364045
- 0.1745775
- 0.1426107
- 0.11876336
- 0.09566428
- 0.0778589
- 0.07286102
- 0.07283296
- 0.13844793
- 0.1178728
- 0.08355127
- 0.066860475
- 0.056554157
- 0.05637158
- 0.05930678
- 0.067554206
- 0.06267484
- 0.09781064
- 0.16083272
- 0.107682064
- 0.1057368
- 0.07985558
- 0.06429029
- 0.054194152
- 0.07636309
- 0.064341046
- 0.053050388
- 0.05068822
- 0.054001477
- 0.050896116
- 0.07787979
- 0.0797262
- 0.08320936
- 0.062432215
- 0.04882139
- 0.04171444
- 0.042304516
- 0.038559373
- 0.036789782
- 0.039586876
- 0.046672966
- 0.038919546
- 0.036980364
- 0.032985687
- 0.030647788
- 0.030970765
- 0.03172354
- 0.030127835
- 0.034116533
- 0.041103117
- 0.038046557
- 0.060753535
- 0.047321104
- 0.04107691
- 0.034719955
- 0.03125839
- 0.028180238
- 0.029365104
- 0.028922526
- 0.027106361
- 0.024752297
- 0.024192298
- 0.026466986
- 0.025646225
- 0.036590084
- 0.03407405
- 0.03152835
- 0.029421758
- 0.026214628
- 0.02564094
- 0.02441266
- 0.025441417
- 0.02545333
- 0.02397288
- 0.03094736
- 0.028312633
- 0.026201816
- 0.023467595
- 0.022274172
- 0.027121145
- 0.024065332
- 0.022943452
- 0.022798259
- 0.02231278
- 0.021841876
- 0.020449458
- 0.01918986
- 0.019229753
- 0.020286178
- 0.018419987
- 0.01830752
- 0.017637124
- 0.016298862
- 0.016355136
- 0.01607626
- 0.015910992
- 0.015543093
- 0.015038632
- 0.014739141
- 0.015057219
- 0.014653509
- 0.014338021
- 0.014094846
- 0.014774569
- 0.013968571
- 0.013444827
- 0.013344071
- 0.013389823
- 0.013142074
- 0.013055022
- 0.01287418
- 0.012951684
- 0.012708565
- 0.012611955
- 0.012430197
- 0.0127952015
- 0.012916936
- 0.013274893
- 0.012760007
- 0.012466968
- 0.012099214
- 0.011856165
- 0.01157304
- 0.011295105
- 0.010889844
- 0.010433554
SpectrumSizeParameter:
m_Name: SpectrumSize
SpectrumDataTextureParameter:
@@ -2868,7 +3188,7 @@ MonoBehaviour:
type: {class: SmoothSpectrumTransformer, ns: Assets.WasapiAudio.Scripts.Unity.Transformers, asm: Assembly-CSharp}
data:
Enabled: 1
Iterations: 8
Iterations: 15
- rid: 1586242992680206341
type: {class: CurveScaledSpectrumTransformer, ns: Assets.WasapiAudio.Scripts.Unity.Transformers, asm: Assembly-CSharp}
data:
@@ -2929,6 +3249,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 269234fd88fbc1d4abae3d63a0e04233, type: 3}
m_Name:
m_EditorClassIdentifier:
themeSelector: {fileID: 916906094}
themeSelector: {fileID: 910216853}
ThemeParameter:
m_Name: Theme
+3 -3
View File
@@ -9,14 +9,14 @@ public class ThemeSelector : MonoBehaviour {
public static Gradient theme;
public Preferences preferences;
void Awake() {
theme = themeList[preferences.data.themeIndex];
void Start() {
gameObject.GetComponent<Dropdown>().value = preferences.data.themeIndex;
theme = themeList[preferences.data.themeIndex];
}
public void SelectTheme(Dropdown d) {
theme = themeList[d.value];
preferences.data.SetThemeIndex(d.value);
preferences.SetThemeIndex(d.value);
}
public Gradient CurrentTheme() {