preferences fixes and dropdown styles
This commit is contained in:
1 parent
464d39321e
commit
70ab364c08
9 files changed
+1792
-2164
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user