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

+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() {