From 65a243fa6853bd9b4820b90e3cd40db11900c680 Mon Sep 17 00:00:00 2001 From: playinful <82474412+playinful@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:35:07 -0400 Subject: [PATCH] Editor Sorting Fixes & Upgrades (#808) * ready to pr i think Fixed Alphabetical Sorting. Fixed Chronological Sorting by adding a sorting value to every minigame. Added Sort By Usage. * i accidentally removed a bunch of work from yall oops this should fix that i think --- .../Sprites/Editor/UI/icons/temp.png | Bin 0 -> 3913 bytes .../Sprites/Editor/UI/icons/temp.png.meta | 123 ++++++++ .../Sprites/Editor/UI/icons_atlas.spriteatlas | 2 + Assets/Scenes/Editor.unity | 271 ++++++++++++++++-- Assets/Scripts/EventCaller.cs | 5 + Assets/Scripts/Games/AirRally/AirRally.cs | 3 +- Assets/Scripts/Games/Airboarder/Airboarder.cs | 5 +- Assets/Scripts/Games/BlueBear/BlueBear.cs | 3 +- .../Games/BoardMeeting/BoardMeeting.cs | 3 +- Assets/Scripts/Games/BonOdori/BonOdori.cs | 3 +- .../Games/BuiltToScaleDS/BuiltToScaleDS.cs | 3 +- .../Games/BuiltToScaleRvl/BuiltToScaleRvl.cs | 3 +- Assets/Scripts/Games/Cannery/Cannery.cs | 4 +- Assets/Scripts/Games/CatchyTune/CatchyTune.cs | 3 +- .../Games/CheerReaders/CheerReaders.cs | 3 +- Assets/Scripts/Games/ClapTrap/ClapTrap.cs | 4 +- Assets/Scripts/Games/ClappyTrio/ClappyTrio.cs | 3 +- Assets/Scripts/Games/CoinToss/CoinToss.cs | 3 +- Assets/Scripts/Games/CropStomp/CropStomp.cs | 3 +- Assets/Scripts/Games/DJSchool/DJSchool.cs | 3 +- Assets/Scripts/Games/DogNinja/DogNinja.cs | 3 +- Assets/Scripts/Games/DoubleDate/DoubleDate.cs | 3 +- .../DrummingPractice/DrummingPractice.cs | 3 +- Assets/Scripts/Games/FanClub/FanClub.cs | 3 +- Assets/Scripts/Games/Fireworks/Fireworks.cs | 3 +- .../Games/FirstContact/FirstContact.cs | 3 +- .../Scripts/Games/FlipperFlop/FlipperFlop.cs | 3 +- Assets/Scripts/Games/ForkLifter/ForkLifter.cs | 3 +- .../Scripts/Games/FreezeFrame/FreezeFrame.cs | 3 +- Assets/Scripts/Games/GleeClub/GleeClub.cs | 3 +- Assets/Scripts/Games/KarateMan/KarateMan.cs | 3 +- Assets/Scripts/Games/Kitties/Kitties.cs | 3 +- .../Scripts/Games/LaunchParty/LaunchParty.cs | 3 +- Assets/Scripts/Games/Lockstep/Lockstep.cs | 3 +- .../Scripts/Games/LumBEARjack/LumBEARjack.cs | 4 +- .../MannequinFactory/MannequinFactory.cs | 3 +- Assets/Scripts/Games/Manzai/Manzai.cs | 3 +- .../Games/MarchingOrders/MarchingOrders.cs | 3 +- .../Scripts/Games/MeatGrinder/MeatGrinder.cs | 3 +- .../Scripts/Games/MonkeyWatch/MonkeyWatch.cs | 4 +- Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs | 3 +- Assets/Scripts/Games/MunchyMonk/MunchyMonk.cs | 3 +- .../Games/NailCarpenter/NailCarpenter.cs | 3 +- .../Games/NightWalkAgb/AgbNightWalk.cs | 4 +- .../Games/OctopusMachine/OctopusMachine.cs | 3 +- .../Scripts/Games/PajamaParty/PajamaParty.cs | 3 +- .../PowerCalligraphy/PowerCalligraphy.cs | 3 +- Assets/Scripts/Games/QuizShow/QuizShow.cs | 3 +- .../Scripts/Games/RhythmRally/RhythmRally.cs | 3 +- .../Scripts/Games/RhythmSomen/RhythmSomen.cs | 3 +- .../Games/RhythmTestGBA/RhythmTestGBA.cs | 5 +- .../Games/RhythmTweezers/RhythmTweezers.cs | 3 +- Assets/Scripts/Games/Ringside/Ringside.cs | 3 +- Assets/Scripts/Games/Rockers/Rockers.cs | 3 +- .../Games/SamuraiSliceNtr/SamuraiSliceNtr.cs | 3 +- Assets/Scripts/Games/SeeSaw/SeeSaw.cs | 3 +- Assets/Scripts/Games/ShootEmUp/ShootEmUp.cs | 3 +- Assets/Scripts/Games/SickBeats/SickBeats.cs | 3 +- .../Scripts/Games/SlotMonster/SlotMonster.cs | 3 +- .../Games/SneakySpirits/SneakySpirits.cs | 3 +- Assets/Scripts/Games/SpaceDance/SpaceDance.cs | 3 +- .../Scripts/Games/SpaceSoccer/SpaceSoccer.cs | 3 +- Assets/Scripts/Games/Spaceball/Spaceball.cs | 3 +- Assets/Scripts/Games/Splashdown/Splashdown.cs | 3 +- .../Games/SumoBrothers/SumoBrothers.cs | 7 +- Assets/Scripts/Games/Tambourine/Tambourine.cs | 3 +- Assets/Scripts/Games/TapTrial/TapTrial.cs | 3 +- Assets/Scripts/Games/TapTroupe/TapTroupe.cs | 3 +- Assets/Scripts/Games/TheDazzles/TheDazzles.cs | 3 +- Assets/Scripts/Games/TossBoys/TossBoys.cs | 3 +- Assets/Scripts/Games/TotemClimb/TotemClimb.cs | 3 +- .../Games/TramAndPauline/TramAndPauline.cs | 3 +- Assets/Scripts/Games/TrickClass/TrickClass.cs | 3 +- Assets/Scripts/Games/Tunnel/Tunnel.cs | 3 +- .../Games/WizardsWaltz/WizardsWaltz.cs | 3 +- .../Games/WorkingDough/WorkingDough.cs | 3 +- .../EventSelector/GridGameSelector.cs | 108 ++++--- Assets/Scripts/Minigames.cs | 17 +- 78 files changed, 607 insertions(+), 145 deletions(-) create mode 100644 Assets/Resources/Sprites/Editor/UI/icons/temp.png create mode 100644 Assets/Resources/Sprites/Editor/UI/icons/temp.png.meta diff --git a/Assets/Resources/Sprites/Editor/UI/icons/temp.png b/Assets/Resources/Sprites/Editor/UI/icons/temp.png new file mode 100644 index 0000000000000000000000000000000000000000..faecf99c43a30d012b7779eb7045c7ed586d077d GIT binary patch literal 3913 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 GetAllInGameManagerList(string gameName) + { + return instance.gameManager.Beatmap.Entities.FindAll(c => c.datamodel.Split('/')[0] == gameName); + } + public static List GetAllInGameManagerList(string gameName, string[] include) { List temp1 = instance.gameManager.Beatmap.Entities.FindAll(c => c.datamodel.Split('/')[0] == gameName); diff --git a/Assets/Scripts/Games/AirRally/AirRally.cs b/Assets/Scripts/Games/AirRally/AirRally.cs index 75845dee..8c4aa609 100644 --- a/Assets/Scripts/Games/AirRally/AirRally.cs +++ b/Assets/Scripts/Games/AirRally/AirRally.cs @@ -223,7 +223,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "rvl", "keep" }, "rvlbadminton", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 13 ); } } diff --git a/Assets/Scripts/Games/Airboarder/Airboarder.cs b/Assets/Scripts/Games/Airboarder/Airboarder.cs index 2476981f..9a9398a2 100644 --- a/Assets/Scripts/Games/Airboarder/Airboarder.cs +++ b/Assets/Scripts/Games/Airboarder/Airboarder.cs @@ -132,11 +132,12 @@ namespace HeavenStudio.Games.Loaders new Param("additive", true, "Additive Rotation", "Toggle if the above rotation should be added to the current angle instead of setting the target angle to travel to.") } }, - } + }, // , - // new List() {"ntr", "normal"}, + new List() {"ntr", "normal"}, // "ntrAirboarder", "en", // new List() { } + chronologicalSortKey: 99 ); } } diff --git a/Assets/Scripts/Games/BlueBear/BlueBear.cs b/Assets/Scripts/Games/BlueBear/BlueBear.cs index 3e41b208..7a544072 100644 --- a/Assets/Scripts/Games/BlueBear/BlueBear.cs +++ b/Assets/Scripts/Games/BlueBear/BlueBear.cs @@ -90,7 +90,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ctr", "normal" }, "ctrbear", "en", - new List() { } + new List() { }, + chronologicalSortKey: 70 ); } } diff --git a/Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs b/Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs index e7347cde..5de8bb75 100644 --- a/Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs +++ b/Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs @@ -68,7 +68,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "rvl", "normal" }, "rvlrotation", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 8 ); } } diff --git a/Assets/Scripts/Games/BonOdori/BonOdori.cs b/Assets/Scripts/Games/BonOdori/BonOdori.cs index ccb5ddf7..38de92bc 100644 --- a/Assets/Scripts/Games/BonOdori/BonOdori.cs +++ b/Assets/Scripts/Games/BonOdori/BonOdori.cs @@ -155,7 +155,8 @@ namespace HeavenStudio.Games.Loaders } }, }, - new List() { "agb", "normal" }, "agbBonOdori", "en", new List() { } + new List() { "agb", "normal" }, "agbBonOdori", "en", new List() { }, + chronologicalSortKey: 10 ); } }; diff --git a/Assets/Scripts/Games/BuiltToScaleDS/BuiltToScaleDS.cs b/Assets/Scripts/Games/BuiltToScaleDS/BuiltToScaleDS.cs index 7854ab72..4ce680f6 100644 --- a/Assets/Scripts/Games/BuiltToScaleDS/BuiltToScaleDS.cs +++ b/Assets/Scripts/Games/BuiltToScaleDS/BuiltToScaleDS.cs @@ -65,7 +65,8 @@ namespace HeavenStudio.Games.Loaders new Param("auto", true, "Lights (Auto)", "Toggle if the lights should automatically activate until the another Lights event is reached.") } } - }, new List() { "ntr", "normal" }, "ntrassembly", "en", new List() { }); + }, new List() { "ntr", "normal" }, "ntrassembly", "en", new List() { }, + chronologicalSortKey: 1); } } } diff --git a/Assets/Scripts/Games/BuiltToScaleRvl/BuiltToScaleRvl.cs b/Assets/Scripts/Games/BuiltToScaleRvl/BuiltToScaleRvl.cs index 42863cf4..98a70e8f 100644 --- a/Assets/Scripts/Games/BuiltToScaleRvl/BuiltToScaleRvl.cs +++ b/Assets/Scripts/Games/BuiltToScaleRvl/BuiltToScaleRvl.cs @@ -81,7 +81,8 @@ namespace HeavenStudio.Games.Loaders new Param("ease", Util.EasingFunction.Ease.Linear, "Ease", "Set the easing of the action."), } }, - }, new List() { "rvl", "normal" }, "rvlbuilt", "en", new List() { }); + }, new List() { "rvl", "normal" }, "rvlbuilt", "en", new List() { }, + chronologicalSortKey: 12); } } } diff --git a/Assets/Scripts/Games/Cannery/Cannery.cs b/Assets/Scripts/Games/Cannery/Cannery.cs index 3e8de788..35b21075 100644 --- a/Assets/Scripts/Games/Cannery/Cannery.cs +++ b/Assets/Scripts/Games/Cannery/Cannery.cs @@ -85,8 +85,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "pco", "normal" }, "pcocannery", "en", - new List() { } - ); + new List() { }, + chronologicalSortKey: 20160704); } } } diff --git a/Assets/Scripts/Games/CatchyTune/CatchyTune.cs b/Assets/Scripts/Games/CatchyTune/CatchyTune.cs index ef213e61..4672cd9e 100644 --- a/Assets/Scripts/Games/CatchyTune/CatchyTune.cs +++ b/Assets/Scripts/Games/CatchyTune/CatchyTune.cs @@ -59,7 +59,8 @@ namespace HeavenStudio.Games.Loaders new List() { "ctr", "normal" }, "ctrcatchy", "en", - new List() { } + new List() { }, + chronologicalSortKey: 4 ); } } diff --git a/Assets/Scripts/Games/CheerReaders/CheerReaders.cs b/Assets/Scripts/Games/CheerReaders/CheerReaders.cs index 79991e17..e59f72dc 100644 --- a/Assets/Scripts/Games/CheerReaders/CheerReaders.cs +++ b/Assets/Scripts/Games/CheerReaders/CheerReaders.cs @@ -102,7 +102,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "rvl", "normal" }, "rvlbooks", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 33 ); } } diff --git a/Assets/Scripts/Games/ClapTrap/ClapTrap.cs b/Assets/Scripts/Games/ClapTrap/ClapTrap.cs index 53a2bac8..c04405e4 100644 --- a/Assets/Scripts/Games/ClapTrap/ClapTrap.cs +++ b/Assets/Scripts/Games/ClapTrap/ClapTrap.cs @@ -69,7 +69,9 @@ namespace HeavenStudio.Games.Loaders }, }, - }); + }, + new List() {"rvl", "normal"}, + chronologicalSortKey: 301); } } } diff --git a/Assets/Scripts/Games/ClappyTrio/ClappyTrio.cs b/Assets/Scripts/Games/ClappyTrio/ClappyTrio.cs index 162ac47e..5e356d09 100644 --- a/Assets/Scripts/Games/ClappyTrio/ClappyTrio.cs +++ b/Assets/Scripts/Games/ClappyTrio/ClappyTrio.cs @@ -62,7 +62,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbclap", "en", - new List() {} + new List() {}, + chronologicalSortKey: 5 ); } } diff --git a/Assets/Scripts/Games/CoinToss/CoinToss.cs b/Assets/Scripts/Games/CoinToss/CoinToss.cs index 9ac52b76..33744944 100644 --- a/Assets/Scripts/Games/CoinToss/CoinToss.cs +++ b/Assets/Scripts/Games/CoinToss/CoinToss.cs @@ -53,7 +53,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "aim" }, "ntrcoin", "en", - new List() { } + new List() { }, + chronologicalSortKey: 101 ); } } diff --git a/Assets/Scripts/Games/CropStomp/CropStomp.cs b/Assets/Scripts/Games/CropStomp/CropStomp.cs index d17afb83..08bc77ba 100644 --- a/Assets/Scripts/Games/CropStomp/CropStomp.cs +++ b/Assets/Scripts/Games/CropStomp/CropStomp.cs @@ -66,7 +66,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "keep"}, "ntrstomp", "en", - new List() {} + new List() {}, + chronologicalSortKey: 12 ); } } diff --git a/Assets/Scripts/Games/DJSchool/DJSchool.cs b/Assets/Scripts/Games/DJSchool/DJSchool.cs index a860f025..2f156490 100644 --- a/Assets/Scripts/Games/DJSchool/DJSchool.cs +++ b/Assets/Scripts/Games/DJSchool/DJSchool.cs @@ -81,7 +81,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "normal"}, "ntrdj", "en", - new List(){} + new List(){}, + chronologicalSortKey: 17 ); } } diff --git a/Assets/Scripts/Games/DogNinja/DogNinja.cs b/Assets/Scripts/Games/DogNinja/DogNinja.cs index dc115d9d..db61b8b6 100644 --- a/Assets/Scripts/Games/DogNinja/DogNinja.cs +++ b/Assets/Scripts/Games/DogNinja/DogNinja.cs @@ -116,7 +116,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "normal" }, "ntrninja", "en", - new List() { } + new List() { }, + chronologicalSortKey: 23 ); } } diff --git a/Assets/Scripts/Games/DoubleDate/DoubleDate.cs b/Assets/Scripts/Games/DoubleDate/DoubleDate.cs index d5c41ea6..6390c4b6 100644 --- a/Assets/Scripts/Games/DoubleDate/DoubleDate.cs +++ b/Assets/Scripts/Games/DoubleDate/DoubleDate.cs @@ -85,7 +85,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "normal"}, "rvldate", "en", - new List() {} + new List() {}, + chronologicalSortKey: 4 ); } } diff --git a/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs b/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs index 12e3e336..fb8aa0be 100644 --- a/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs +++ b/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs @@ -78,7 +78,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ctr", "normal"}, "ctrintro", "en", - new List() {} + new List() {}, + chronologicalSortKey: 0 ); } } diff --git a/Assets/Scripts/Games/FanClub/FanClub.cs b/Assets/Scripts/Games/FanClub/FanClub.cs index 474ec746..827cce96 100644 --- a/Assets/Scripts/Games/FanClub/FanClub.cs +++ b/Assets/Scripts/Games/FanClub/FanClub.cs @@ -109,7 +109,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "normal" }, "ntridol", "jp", - new List() { "jp" } + new List() { "jp" }, + chronologicalSortKey: 4 ); } } diff --git a/Assets/Scripts/Games/Fireworks/Fireworks.cs b/Assets/Scripts/Games/Fireworks/Fireworks.cs index 160313ce..862149bd 100644 --- a/Assets/Scripts/Games/Fireworks/Fireworks.cs +++ b/Assets/Scripts/Games/Fireworks/Fireworks.cs @@ -70,7 +70,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbexplode", "en", - new List() {} + new List() {}, + chronologicalSortKey: 28 ); } } diff --git a/Assets/Scripts/Games/FirstContact/FirstContact.cs b/Assets/Scripts/Games/FirstContact/FirstContact.cs index 06da55d6..48251ed3 100644 --- a/Assets/Scripts/Games/FirstContact/FirstContact.cs +++ b/Assets/Scripts/Games/FirstContact/FirstContact.cs @@ -82,7 +82,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ctr", "repeat" }, "ctrinterpreter", "en", - new List() { } + new List() { }, + chronologicalSortKey: 13 ); } } diff --git a/Assets/Scripts/Games/FlipperFlop/FlipperFlop.cs b/Assets/Scripts/Games/FlipperFlop/FlipperFlop.cs index de8eac0f..d127a265 100644 --- a/Assets/Scripts/Games/FlipperFlop/FlipperFlop.cs +++ b/Assets/Scripts/Games/FlipperFlop/FlipperFlop.cs @@ -100,7 +100,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "rvl", "keep" }, "rvlseal", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 22 ); } } diff --git a/Assets/Scripts/Games/ForkLifter/ForkLifter.cs b/Assets/Scripts/Games/ForkLifter/ForkLifter.cs index ee6446a7..f458868c 100644 --- a/Assets/Scripts/Games/ForkLifter/ForkLifter.cs +++ b/Assets/Scripts/Games/ForkLifter/ForkLifter.cs @@ -76,7 +76,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "normal"}, "rvlfork", "en", - new List() {} + new List() {}, + chronologicalSortKey: 6 ); } } diff --git a/Assets/Scripts/Games/FreezeFrame/FreezeFrame.cs b/Assets/Scripts/Games/FreezeFrame/FreezeFrame.cs index ee9b9abc..d9ee4230 100644 --- a/Assets/Scripts/Games/FreezeFrame/FreezeFrame.cs +++ b/Assets/Scripts/Games/FreezeFrame/FreezeFrame.cs @@ -204,7 +204,8 @@ namespace HeavenStudio.Games.Loaders }, }, new List() { "ntr", "normal" }, - "ntrcameraman", "en" + "ntrcameraman", "en", + chronologicalSortKey: 13 ); } } diff --git a/Assets/Scripts/Games/GleeClub/GleeClub.cs b/Assets/Scripts/Games/GleeClub/GleeClub.cs index f9e6334d..9ba74e79 100644 --- a/Assets/Scripts/Games/GleeClub/GleeClub.cs +++ b/Assets/Scripts/Games/GleeClub/GleeClub.cs @@ -99,7 +99,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "repeat" }, "ntrchorus", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 3 ); } } diff --git a/Assets/Scripts/Games/KarateMan/KarateMan.cs b/Assets/Scripts/Games/KarateMan/KarateMan.cs index 27772eab..78e2171a 100644 --- a/Assets/Scripts/Games/KarateMan/KarateMan.cs +++ b/Assets/Scripts/Games/KarateMan/KarateMan.cs @@ -401,7 +401,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "agb", "ntr", "rvl", "ctr", "pco", "normal" }, "karate", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 1 ); } } diff --git a/Assets/Scripts/Games/Kitties/Kitties.cs b/Assets/Scripts/Games/Kitties/Kitties.cs index 1e815a84..d5769bf3 100644 --- a/Assets/Scripts/Games/Kitties/Kitties.cs +++ b/Assets/Scripts/Games/Kitties/Kitties.cs @@ -80,7 +80,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ctr", "normal" }, "ctrteppan", "en", - new List() { } + new List() { }, + chronologicalSortKey: 74 ); } } diff --git a/Assets/Scripts/Games/LaunchParty/LaunchParty.cs b/Assets/Scripts/Games/LaunchParty/LaunchParty.cs index 23c51b48..59c8e88c 100644 --- a/Assets/Scripts/Games/LaunchParty/LaunchParty.cs +++ b/Assets/Scripts/Games/LaunchParty/LaunchParty.cs @@ -136,7 +136,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "normal"}, "rvlrocket", "en", - new List() {} + new List() {}, + chronologicalSortKey: 26 ); } } diff --git a/Assets/Scripts/Games/Lockstep/Lockstep.cs b/Assets/Scripts/Games/Lockstep/Lockstep.cs index 3fed9b82..d6f0fcb4 100644 --- a/Assets/Scripts/Games/Lockstep/Lockstep.cs +++ b/Assets/Scripts/Games/Lockstep/Lockstep.cs @@ -119,7 +119,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "keep"}, "ntrbackbeat", "en", - new List() {} + new List() {}, + chronologicalSortKey: 27 ); } diff --git a/Assets/Scripts/Games/LumBEARjack/LumBEARjack.cs b/Assets/Scripts/Games/LumBEARjack/LumBEARjack.cs index 6289db88..c82b146c 100644 --- a/Assets/Scripts/Games/LumBEARjack/LumBEARjack.cs +++ b/Assets/Scripts/Games/LumBEARjack/LumBEARjack.cs @@ -229,7 +229,9 @@ namespace HeavenStudio.Games.Loaders }, resizable = true }, - } + }, + new List() {"ctr", "normal"}, + chronologicalSortKey: 22 ); } } diff --git a/Assets/Scripts/Games/MannequinFactory/MannequinFactory.cs b/Assets/Scripts/Games/MannequinFactory/MannequinFactory.cs index fa5860fe..9b9c8555 100644 --- a/Assets/Scripts/Games/MannequinFactory/MannequinFactory.cs +++ b/Assets/Scripts/Games/MannequinFactory/MannequinFactory.cs @@ -88,7 +88,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbmannequin", "en", - new List() {} + new List() {}, + chronologicalSortKey: 104 ); } } diff --git a/Assets/Scripts/Games/Manzai/Manzai.cs b/Assets/Scripts/Games/Manzai/Manzai.cs index a1144ac2..c78df9a3 100644 --- a/Assets/Scripts/Games/Manzai/Manzai.cs +++ b/Assets/Scripts/Games/Manzai/Manzai.cs @@ -139,7 +139,8 @@ namespace HeavenStudio.Games.Loaders }}, new List() { "rvl", "normal" }, "rvlmanzai", "jp", - new List() { "jp" } + new List() { "jp" }, + chronologicalSortKey: 104 ); } } diff --git a/Assets/Scripts/Games/MarchingOrders/MarchingOrders.cs b/Assets/Scripts/Games/MarchingOrders/MarchingOrders.cs index 1785fea2..e3fed6f2 100644 --- a/Assets/Scripts/Games/MarchingOrders/MarchingOrders.cs +++ b/Assets/Scripts/Games/MarchingOrders/MarchingOrders.cs @@ -178,7 +178,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "agb", "normal" }, "agbmarcher", "en", - new List() { "en", "jp" } + new List() { "en", "jp" }, + chronologicalSortKey: 3 ); } } diff --git a/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs b/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs index 6157738f..7cb7e9c3 100644 --- a/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs +++ b/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs @@ -126,7 +126,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "pco", "normal", "repeat" }, "pcomeat", "en", - new List() { } + new List() { }, + chronologicalSortKey: 20220513 ); } } diff --git a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs index eecee36a..5881f6bd 100644 --- a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs +++ b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs @@ -135,7 +135,9 @@ namespace HeavenStudio.Games.Loaders new Param("ease", Util.EasingFunction.Ease.Linear, "Ease") } } - }); + }, + new List() {"rvl", "keep"}, + chronologicalSortKey: 9); } } } diff --git a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs index 3e592dab..0e18ffac 100644 --- a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs +++ b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs @@ -135,7 +135,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "keep"}, "agboffbeat", "en", - new List() {} + new List() {}, + chronologicalSortKey: 101 ); } } diff --git a/Assets/Scripts/Games/MunchyMonk/MunchyMonk.cs b/Assets/Scripts/Games/MunchyMonk/MunchyMonk.cs index 0bfc9c93..0fe6f475 100644 --- a/Assets/Scripts/Games/MunchyMonk/MunchyMonk.cs +++ b/Assets/Scripts/Games/MunchyMonk/MunchyMonk.cs @@ -151,7 +151,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "normal"}, "ntrshugyo", "en", - new List() {"en"} + new List() {"en"}, + chronologicalSortKey: 16 ); } } diff --git a/Assets/Scripts/Games/NailCarpenter/NailCarpenter.cs b/Assets/Scripts/Games/NailCarpenter/NailCarpenter.cs index 1e70b540..7a479941 100644 --- a/Assets/Scripts/Games/NailCarpenter/NailCarpenter.cs +++ b/Assets/Scripts/Games/NailCarpenter/NailCarpenter.cs @@ -53,7 +53,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "pco", "normal" }, "pconail", "en", - new List() { } + new List() { }, + chronologicalSortKey: 20121009 ); } } diff --git a/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs b/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs index b5e70f4d..c12868be 100644 --- a/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs +++ b/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs @@ -112,7 +112,9 @@ namespace HeavenStudio.Games.Loaders new Param("repeat", new EntityTypes.Integer(0, 100, 1), "Repeat Amount", "How many times will this event repeat?"), } }, - }); + }, + new List() {"agb", "keep"}, + chronologicalSortKey: 20); } } } diff --git a/Assets/Scripts/Games/OctopusMachine/OctopusMachine.cs b/Assets/Scripts/Games/OctopusMachine/OctopusMachine.cs index e89a4fc8..74832afc 100644 --- a/Assets/Scripts/Games/OctopusMachine/OctopusMachine.cs +++ b/Assets/Scripts/Games/OctopusMachine/OctopusMachine.cs @@ -172,7 +172,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "repeat"}, "ntrcork", "en", - new List() {} + new List() {}, + chronologicalSortKey: 204 ); } } diff --git a/Assets/Scripts/Games/PajamaParty/PajamaParty.cs b/Assets/Scripts/Games/PajamaParty/PajamaParty.cs index 24d40fbd..d9238292 100644 --- a/Assets/Scripts/Games/PajamaParty/PajamaParty.cs +++ b/Assets/Scripts/Games/PajamaParty/PajamaParty.cs @@ -106,7 +106,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ctr", "normal" }, "ctrpillow", "en", - new List() {"en", "jp", "ko"} + new List() {"en", "jp", "ko"}, + chronologicalSortKey: 66 ); } } diff --git a/Assets/Scripts/Games/PowerCalligraphy/PowerCalligraphy.cs b/Assets/Scripts/Games/PowerCalligraphy/PowerCalligraphy.cs index f796c268..c4763d2b 100644 --- a/Assets/Scripts/Games/PowerCalligraphy/PowerCalligraphy.cs +++ b/Assets/Scripts/Games/PowerCalligraphy/PowerCalligraphy.cs @@ -94,7 +94,8 @@ namespace HeavenStudio.Games.Loaders defaultLength = 0.5f, }, }, - new List() { "agb", "normal" }, "agbCalligraphy", "en", new List() { } + new List() { "agb", "normal" }, "agbCalligraphy", "en", new List() { }, + chronologicalSortKey: 21 ); } } diff --git a/Assets/Scripts/Games/QuizShow/QuizShow.cs b/Assets/Scripts/Games/QuizShow/QuizShow.cs index 939bc201..e56667a6 100644 --- a/Assets/Scripts/Games/QuizShow/QuizShow.cs +++ b/Assets/Scripts/Games/QuizShow/QuizShow.cs @@ -113,7 +113,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "repeat"}, "agbquiz", "en", - new List() {} + new List() {}, + chronologicalSortKey: 19 ); } } diff --git a/Assets/Scripts/Games/RhythmRally/RhythmRally.cs b/Assets/Scripts/Games/RhythmRally/RhythmRally.cs index 1d6a0f7d..921c922b 100644 --- a/Assets/Scripts/Games/RhythmRally/RhythmRally.cs +++ b/Assets/Scripts/Games/RhythmRally/RhythmRally.cs @@ -118,7 +118,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "keep" }, "ntrpingpong", "en", - new List() { } + new List() { }, + chronologicalSortKey: 6 ); } } diff --git a/Assets/Scripts/Games/RhythmSomen/RhythmSomen.cs b/Assets/Scripts/Games/RhythmSomen/RhythmSomen.cs index 174f7c51..39d63436 100644 --- a/Assets/Scripts/Games/RhythmSomen/RhythmSomen.cs +++ b/Assets/Scripts/Games/RhythmSomen/RhythmSomen.cs @@ -48,7 +48,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "pco", "normal" }, "pcosomen", "en", - new List() { } + new List() { }, + chronologicalSortKey: 20130101 ); } } diff --git a/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs b/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs index a9d187fc..b7317c53 100644 --- a/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs +++ b/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs @@ -92,9 +92,10 @@ namespace HeavenStudio.Games.Loaders }, }, - new List() {"abg", "aim"}, + new List() {"agb", "aim"}, "agbRhythmTestGBA", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 0 ); } } diff --git a/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs b/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs index f6e87e0c..2a1c2d6f 100644 --- a/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs +++ b/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs @@ -104,7 +104,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "repeat"}, "agbhair", "en", - new List() {} + new List() {}, + chronologicalSortKey: 2 ); } } diff --git a/Assets/Scripts/Games/Ringside/Ringside.cs b/Assets/Scripts/Games/Ringside/Ringside.cs index 968209b6..303179aa 100644 --- a/Assets/Scripts/Games/Ringside/Ringside.cs +++ b/Assets/Scripts/Games/Ringside/Ringside.cs @@ -81,7 +81,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "normal"}, "rvlinterview", "en", - new List() {"en"} + new List() {"en"}, + chronologicalSortKey: 16 ); } } diff --git a/Assets/Scripts/Games/Rockers/Rockers.cs b/Assets/Scripts/Games/Rockers/Rockers.cs index 63b77e79..67a954e2 100644 --- a/Assets/Scripts/Games/Rockers/Rockers.cs +++ b/Assets/Scripts/Games/Rockers/Rockers.cs @@ -288,7 +288,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "repeat" }, "ntrrockers", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 28 ); } } diff --git a/Assets/Scripts/Games/SamuraiSliceNtr/SamuraiSliceNtr.cs b/Assets/Scripts/Games/SamuraiSliceNtr/SamuraiSliceNtr.cs index 5d9d9c79..d26123db 100644 --- a/Assets/Scripts/Games/SamuraiSliceNtr/SamuraiSliceNtr.cs +++ b/Assets/Scripts/Games/SamuraiSliceNtr/SamuraiSliceNtr.cs @@ -97,7 +97,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "normal" }, "ntrsamurai", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 104 ); } } diff --git a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs index 2088e67a..4a95dfc7 100644 --- a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs +++ b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs @@ -122,7 +122,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "normal", "keep"}, "rvlseesaw", "en", - new List() {"en"} + new List() {"en"}, + chronologicalSortKey: 3 ); } } diff --git a/Assets/Scripts/Games/ShootEmUp/ShootEmUp.cs b/Assets/Scripts/Games/ShootEmUp/ShootEmUp.cs index 5ab9b75d..749e8166 100644 --- a/Assets/Scripts/Games/ShootEmUp/ShootEmUp.cs +++ b/Assets/Scripts/Games/ShootEmUp/ShootEmUp.cs @@ -83,7 +83,8 @@ namespace HeavenStudio.Games.Loaders } }, }, - new List() { "ntr", "normal" }, "ntrShootEmUp", "en", new List() { } + new List() { "ntr", "normal" }, "ntrShootEmUp", "en", new List() { }, + chronologicalSortKey: 7 ); } } diff --git a/Assets/Scripts/Games/SickBeats/SickBeats.cs b/Assets/Scripts/Games/SickBeats/SickBeats.cs index 2df3eb68..11981254 100644 --- a/Assets/Scripts/Games/SickBeats/SickBeats.cs +++ b/Assets/Scripts/Games/SickBeats/SickBeats.cs @@ -88,7 +88,8 @@ namespace HeavenStudio.Games.Loaders } }, }, - new List() { "agb", "normal" }, "agbSickBeats", "en", new List() { } + new List() { "agb", "normal" }, "agbSickBeats", "en", new List() { }, + chronologicalSortKey: 10 ); } } diff --git a/Assets/Scripts/Games/SlotMonster/SlotMonster.cs b/Assets/Scripts/Games/SlotMonster/SlotMonster.cs index a4d028e8..313bbb98 100644 --- a/Assets/Scripts/Games/SlotMonster/SlotMonster.cs +++ b/Assets/Scripts/Games/SlotMonster/SlotMonster.cs @@ -100,7 +100,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "normal" }, "ntrslotmonster", "en", - new List() {} + new List() {}, + chronologicalSortKey: 203 ); } } diff --git a/Assets/Scripts/Games/SneakySpirits/SneakySpirits.cs b/Assets/Scripts/Games/SneakySpirits/SneakySpirits.cs index bce5e464..dd133871 100644 --- a/Assets/Scripts/Games/SneakySpirits/SneakySpirits.cs +++ b/Assets/Scripts/Games/SneakySpirits/SneakySpirits.cs @@ -58,7 +58,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "aim"}, "agbghost", "en", - new List() {} + new List() {}, + chronologicalSortKey: 7 ); } } diff --git a/Assets/Scripts/Games/SpaceDance/SpaceDance.cs b/Assets/Scripts/Games/SpaceDance/SpaceDance.cs index 895fb5d3..ff5ff80b 100644 --- a/Assets/Scripts/Games/SpaceDance/SpaceDance.cs +++ b/Assets/Scripts/Games/SpaceDance/SpaceDance.cs @@ -103,7 +103,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbspacedance", "jp", - new List() {"jp"} + new List() {"jp"}, + chronologicalSortKey: 17 ); } } diff --git a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs index 83124a57..d4f965b4 100644 --- a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs +++ b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs @@ -151,7 +151,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "keep" }, "ntrsoccer", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 26 ); } } diff --git a/Assets/Scripts/Games/Spaceball/Spaceball.cs b/Assets/Scripts/Games/Spaceball/Spaceball.cs index 027e4181..81f43998 100644 --- a/Assets/Scripts/Games/Spaceball/Spaceball.cs +++ b/Assets/Scripts/Games/Spaceball/Spaceball.cs @@ -68,7 +68,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbbatter", "en", - new List() {} + new List() {}, + chronologicalSortKey: 4 ); } } diff --git a/Assets/Scripts/Games/Splashdown/Splashdown.cs b/Assets/Scripts/Games/Splashdown/Splashdown.cs index b0ca1b4d..eb0ebdd8 100644 --- a/Assets/Scripts/Games/Splashdown/Splashdown.cs +++ b/Assets/Scripts/Games/Splashdown/Splashdown.cs @@ -75,7 +75,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "normal" }, "ntrdiving", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 21 ); } } diff --git a/Assets/Scripts/Games/SumoBrothers/SumoBrothers.cs b/Assets/Scripts/Games/SumoBrothers/SumoBrothers.cs index 3a91d2f6..4bdc49ef 100644 --- a/Assets/Scripts/Games/SumoBrothers/SumoBrothers.cs +++ b/Assets/Scripts/Games/SumoBrothers/SumoBrothers.cs @@ -118,10 +118,11 @@ namespace HeavenStudio.Games.Loaders resizable = true }, - } - //new List() { "ctr", "keep" }, + }, + new List() { "ctr", "keep" }, //"ctrsumou", "jp", - //new List() { } + //new List() { }, + chronologicalSortKey: 31 ); } } diff --git a/Assets/Scripts/Games/Tambourine/Tambourine.cs b/Assets/Scripts/Games/Tambourine/Tambourine.cs index ee8c4418..a210d39e 100644 --- a/Assets/Scripts/Games/Tambourine/Tambourine.cs +++ b/Assets/Scripts/Games/Tambourine/Tambourine.cs @@ -73,7 +73,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "repeat"}, "rvldrum", "en", - new List() {} + new List() {}, + chronologicalSortKey: 7 ); } } diff --git a/Assets/Scripts/Games/TapTrial/TapTrial.cs b/Assets/Scripts/Games/TapTrial/TapTrial.cs index 0ace8321..569db4ed 100644 --- a/Assets/Scripts/Games/TapTrial/TapTrial.cs +++ b/Assets/Scripts/Games/TapTrial/TapTrial.cs @@ -85,7 +85,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "agb", "normal" }, "agbtap", "en", - new List() { } + new List() { }, + chronologicalSortKey: 29 ); } } diff --git a/Assets/Scripts/Games/TapTroupe/TapTroupe.cs b/Assets/Scripts/Games/TapTroupe/TapTroupe.cs index 2b4efccc..07b9e54f 100644 --- a/Assets/Scripts/Games/TapTroupe/TapTroupe.cs +++ b/Assets/Scripts/Games/TapTroupe/TapTroupe.cs @@ -90,7 +90,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "keep"}, "rvllegs", "en", - new List() {"en"} + new List() {"en"}, + chronologicalSortKey: 31 ); } } diff --git a/Assets/Scripts/Games/TheDazzles/TheDazzles.cs b/Assets/Scripts/Games/TheDazzles/TheDazzles.cs index c1f3a7d4..dabb38a9 100644 --- a/Assets/Scripts/Games/TheDazzles/TheDazzles.cs +++ b/Assets/Scripts/Games/TheDazzles/TheDazzles.cs @@ -119,7 +119,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"ntr", "normal"}, "ntrboxshow", "en", - new List() {"en"} + new List() {"en"}, + chronologicalSortKey: 14 ); } } diff --git a/Assets/Scripts/Games/TossBoys/TossBoys.cs b/Assets/Scripts/Games/TossBoys/TossBoys.cs index 4e027517..b33abfc7 100644 --- a/Assets/Scripts/Games/TossBoys/TossBoys.cs +++ b/Assets/Scripts/Games/TossBoys/TossBoys.cs @@ -103,7 +103,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbtoss", "jp", - new List() {} + new List() {}, + chronologicalSortKey: 27 ); } } diff --git a/Assets/Scripts/Games/TotemClimb/TotemClimb.cs b/Assets/Scripts/Games/TotemClimb/TotemClimb.cs index 9eee7315..d11ff17b 100644 --- a/Assets/Scripts/Games/TotemClimb/TotemClimb.cs +++ b/Assets/Scripts/Games/TotemClimb/TotemClimb.cs @@ -101,7 +101,8 @@ namespace HeavenStudio.Games.Loaders resizable = true, defaultLength = 4f } - }); + }, + chronologicalSortKey: 20240127); } } } diff --git a/Assets/Scripts/Games/TramAndPauline/TramAndPauline.cs b/Assets/Scripts/Games/TramAndPauline/TramAndPauline.cs index c483a8c1..6ef54cf3 100644 --- a/Assets/Scripts/Games/TramAndPauline/TramAndPauline.cs +++ b/Assets/Scripts/Games/TramAndPauline/TramAndPauline.cs @@ -71,7 +71,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "normal"}, "agbtrampoline", "jp", - new List() {} + new List() {}, + chronologicalSortKey: 16 ); } } diff --git a/Assets/Scripts/Games/TrickClass/TrickClass.cs b/Assets/Scripts/Games/TrickClass/TrickClass.cs index ef319e7a..19c642ee 100644 --- a/Assets/Scripts/Games/TrickClass/TrickClass.cs +++ b/Assets/Scripts/Games/TrickClass/TrickClass.cs @@ -101,7 +101,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "mob", "normal" }, "mobtrick", "en", - new List() { } + new List() { }, + chronologicalSortKey: 20170124 // source: this sketchy site https://rhythm-heaven-fever.appstor.io/ it was the only mention of it online that had a date attached ); } } diff --git a/Assets/Scripts/Games/Tunnel/Tunnel.cs b/Assets/Scripts/Games/Tunnel/Tunnel.cs index 8b850014..da652457 100644 --- a/Assets/Scripts/Games/Tunnel/Tunnel.cs +++ b/Assets/Scripts/Games/Tunnel/Tunnel.cs @@ -54,7 +54,8 @@ namespace HeavenStudio.Games.Loaders }, new List() { "ntr", "keep" }, "ntrtunnel", "en", - new List() { "en" } + new List() { "en" }, + chronologicalSortKey: 103 ); } } diff --git a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs index 53d737fe..9cc8e625 100644 --- a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs +++ b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs @@ -39,7 +39,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"agb", "repeat"}, "agbwizard", "en", - new List() {} + new List() {}, + chronologicalSortKey: 13 ); } } diff --git a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs index c187da16..5b5d8a7e 100644 --- a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs +++ b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs @@ -110,7 +110,8 @@ namespace HeavenStudio.Games.Loaders }, new List() {"rvl", "repeat"}, "rvldough", "en", - new List() {} + new List() {}, + chronologicalSortKey: 11 ); } } diff --git a/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs b/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs index 5b3d886b..3ee994b8 100644 --- a/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs +++ b/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs @@ -11,6 +11,7 @@ using DG.Tweening; using HeavenStudio.Util; using HeavenStudio.Editor.Track; using System.Text; +using System.Configuration; namespace HeavenStudio.Editor { @@ -258,35 +259,48 @@ namespace HeavenStudio.Editor // sorts depending on which sorting button you click public void Sort(string type) { - var mgsSort = mgsActive; + List mgsSort = mgsActive; mgsSort.Sort((x, y) => string.Compare(x.name, y.name)); switch (type) { case "favorites": - SortFavorites(mgsSort); - break; + SortFavorites(mgsSort); + break; case "chronologic": - SortChronologic(mgsSort); - break; + SortChronologic(mgsSort); + break; + case "usage": + SortUsage(mgsSort); + break; default: // "alphabet" - SortAlphabet(mgsSort); - break; + SortAlphabet(mgsSort); + break; } } void SortAlphabet(List mgs) { - for (int i = 0; i < mgsActive.Count; i++) { - mgs[i].SetSiblingIndex(i + fxActive.Count + 1); + List alph = mgs.OrderBy(AlphabetSortKey).ToList(); + + for (int i = 0; i < alph.Count; i++) { + alph[i].SetSiblingIndex(i + fxActive.Count + 1); } } + string AlphabetSortKey(RectTransform minigame) + { + Minigames.Minigame mg = EventCaller.instance.GetMinigame(minigame.name); + if (mg.displayName.StartsWith("the ", System.StringComparison.InvariantCultureIgnoreCase)) + return mg.displayName[4..]; + else + return mg.displayName; + } // if there are no favorites, the games will sort alphabetically void SortFavorites(List allMgs) { - var favs = allMgs.FindAll(mg => mg.GetComponent().StarActive); - var mgs = allMgs.FindAll(mg => !mg.GetComponent().StarActive); + List favs = allMgs.FindAll(mg => mg.GetComponent().StarActive).OrderBy(AlphabetSortKey).ToList(); + List mgs = allMgs.FindAll(mg => !mg.GetComponent().StarActive).OrderBy(AlphabetSortKey).ToList(); if (Input.GetKey(KeyCode.LeftShift)) { foreach (var fav in favs) @@ -304,43 +318,49 @@ namespace HeavenStudio.Editor void SortChronologic(List mgs) { - var systems = new List[] { - new List(), - new List(), - new List(), - new List(), - new List(), - new List(), - }; - for (int i = 0; i < mgs.Count; i++) - { - var mg = EventCaller.instance.GetMinigame(mgs[i].name); - var tags = mg.tags; - if (tags.Count != 0) { - systems[tags[0] switch { - "agb" => 0, - "ntr" => 1, - "rvl" => 2, - "ctr" => 3, - "mob" => 4, - _ => 5, - }].Add(mgs[i]); - } else if (mg.inferred) { - systems[^1].Add(mgs[i]); - } else { - Debug.LogWarning($"Chronological sorting has failed, does \"{mg.displayName}\" ({mg.name}) have an asset bundle assigned to it?"); - } + List chrono = mgs.OrderBy(GameOriginSortKey).ThenBy(ChronologicSortKey).ThenBy(AlphabetSortKey).ToList(); + + for (int i = 0; i < chrono.Count; i++) { + chrono[i].SetSiblingIndex(i + fxActive.Count + 1); } - int j = fxActive.Count + 1; - foreach (var system in systems) + } + int GameOriginSortKey(RectTransform minigame) + { + Minigames.Minigame mg = EventCaller.instance.GetMinigame(minigame.name); + if (mg.tags.Count > 0) { - system.OrderBy(mg => mg.name); - for (int i = 0; i < system.Count; i++) + return mg.tags[0] switch { - system[i].SetSiblingIndex(j); - j++; - } + "agb" => 0, + "ntr" => 1, + "rvl" => 2, + "ctr" => 3, + _ => 10, + }; } + + return 10; + } + uint ChronologicSortKey(RectTransform minigame) + { + Minigames.Minigame mg = EventCaller.instance.GetMinigame(minigame.name); + if (mg.chronologicalSortKey is uint i) + return i; + + return uint.MaxValue; + } + + void SortUsage(List mgs) + { + List usage = mgs.OrderByDescending(UsageSortKey).ThenBy(AlphabetSortKey).ToList(); + + for (int i = 0; i < usage.Count; i++) { + usage[i].SetSiblingIndex(i + fxActive.Count + 1); + } + } + int UsageSortKey(RectTransform minigame) + { + return EventCaller.GetAllInGameManagerList(minigame.name).Count; } public void Search() diff --git a/Assets/Scripts/Minigames.cs b/Assets/Scripts/Minigames.cs index b0e7d28d..b2b1a54c 100644 --- a/Assets/Scripts/Minigames.cs +++ b/Assets/Scripts/Minigames.cs @@ -371,6 +371,15 @@ namespace HeavenStudio public bool hidden; public bool fxOnly; public List actions = new List(); + + + public uint? chronologicalSortKey; + // playinful: basically i figure this should just be whatever index number the minigame is + // in its game of origin. So, basically, like, if we're talking Rhythm Heaven DS, Built to + // Scale would be 1, then Fillbots would be 2, and so on. If it's an endless game, add 100. + // If it's a rhythm toy, add 200. If it's a 2-Player endless game, add 300. If it's a credits + // game... IDK, I guess just set it to 99. It works. If the game isn't a RH original then just + // put the date in YYYYMMDD format. Oh, and if it's a practice game set it to 0. public List tags; public string defaultLocale = "en"; @@ -405,7 +414,7 @@ namespace HeavenStudio set => soundSequences = value; } - public Minigame(string name, string displayName, string color, bool hidden, bool fxOnly, List actions, List tags = null, string wantAssetBundle = null, string defaultLocale = "en", List supportedLocales = null, bool inferred = false) + public Minigame(string name, string displayName, string color, bool hidden, bool fxOnly, List actions, List tags = null, string wantAssetBundle = null, string defaultLocale = "en", List supportedLocales = null, bool inferred = false, uint? chronologicalSortKey = null) { this.name = name; this.displayName = displayName; @@ -422,9 +431,11 @@ namespace HeavenStudio this.splitColorL = null; this.splitColorR = null; + + this.chronologicalSortKey = chronologicalSortKey; } - public Minigame(string name, string displayName, string color, string splitColorL, string splitColorR, bool hidden, bool fxOnly, List actions, List tags = null, string wantAssetBundle = null, string defaultLocale = "en", List supportedLocales = null, bool inferred = false) + public Minigame(string name, string displayName, string color, string splitColorL, string splitColorR, bool hidden, bool fxOnly, List actions, List tags = null, string wantAssetBundle = null, string defaultLocale = "en", List supportedLocales = null, bool inferred = false, uint? chronologicalSortKey = null) { this.name = name; this.displayName = displayName; @@ -441,6 +452,8 @@ namespace HeavenStudio this.splitColorL = splitColorL; this.splitColorR = splitColorR; + + this.chronologicalSortKey = chronologicalSortKey; } public AssetBundle GetLocalizedAssetBundle()