First go at bird pooper controller

This commit is contained in:
Michal Pikulski
2025-11-20 01:29:30 +01:00
parent 97921c3727
commit 635b74db0a
18 changed files with 905 additions and 104 deletions

View File

@@ -11,7 +11,7 @@ namespace AppleHills.Core.Settings.Editor
{
private Vector2 scrollPosition;
private List<BaseSettings> allSettings = new List<BaseSettings>();
private string[] tabNames = new string[] { "Player & Follower", "Interaction & Items", "Diving Minigame", "Card System", "Card Sorting" };
private string[] tabNames = new string[] { "Player & Follower", "Interaction & Items", "Diving Minigame", "Card System", "Card Sorting", "Bird Pooper" };
private int selectedTab = 0;
private Dictionary<string, SerializedObject> serializedSettingsObjects = new Dictionary<string, SerializedObject>();
private GUIStyle headerStyle;
@@ -51,6 +51,7 @@ namespace AppleHills.Core.Settings.Editor
CreateSettingsIfMissing<DivingMinigameSettings>("DivingMinigameSettings");
CreateSettingsIfMissing<CardSystemSettings>("CardSystemSettings");
CreateSettingsIfMissing<CardSortingSettings>("CardSortingSettings");
CreateSettingsIfMissing<BirdPooperSettings>("BirdPooperSettings");
}
private void CreateSettingsIfMissing<T>(string fileName) where T : BaseSettings
@@ -123,6 +124,9 @@ namespace AppleHills.Core.Settings.Editor
case 4: // Card Sorting
DrawSettingsEditor<CardSortingSettings>();
break;
case 5: // Bird Pooper
DrawSettingsEditor<BirdPooperSettings>();
break;
}
EditorGUILayout.EndScrollView();