From 6f61d2df6a3ea45991833d1c8caae988abccf9df Mon Sep 17 00:00:00 2001 From: noobour Date: Fri, 7 Aug 2026 22:36:16 -0400 Subject: [PATCH 1/3] Fix: Map List's sorting resetting Uh yeah i hope this is fine LOL --- scripts/ui/menu/play/MapList.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/ui/menu/play/MapList.cs b/scripts/ui/menu/play/MapList.cs index 67e91e2..7a7fa40 100644 --- a/scripts/ui/menu/play/MapList.cs +++ b/scripts/ui/menu/play/MapList.cs @@ -130,13 +130,19 @@ public override void _Ready() { MapCache.Load(false); UpdateMaps(); + Sort(); Select(maps[0]); } }; - MapManager.MapsInitialized += _ => UpdateMaps(); + MapManager.MapsInitialized += _ => + { + UpdateMaps(); + Sort(); + }; MapManager.MapUpdated += map => { UpdateMaps(); + Sort(); }; MapManager.MapDeleted += map => { @@ -153,6 +159,7 @@ public override void _Ready() { clear(); UpdateMaps(); + Sort(); }).CallDeferred(); }; @@ -456,6 +463,7 @@ public void Search(string query = "", string author = "") AuthorQuery = author ?? AuthorQuery; UpdateMaps(); + Sort(); } public void UpdateMaps() From 2f3914fd9c04d8b274d98f648360325fbe00f565 Mon Sep 17 00:00:00 2001 From: noobour Date: Sat, 8 Aug 2026 16:04:45 -0400 Subject: [PATCH 2/3] Update sorting error solution The game was bugging out, thought the optimal solution borked things, seems to be working fine now so im updating it --- scripts/ui/menu/play/MapList.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/ui/menu/play/MapList.cs b/scripts/ui/menu/play/MapList.cs index 7a7fa40..1189279 100644 --- a/scripts/ui/menu/play/MapList.cs +++ b/scripts/ui/menu/play/MapList.cs @@ -130,19 +130,16 @@ public override void _Ready() { MapCache.Load(false); UpdateMaps(); - Sort(); Select(maps[0]); } }; MapManager.MapsInitialized += _ => { UpdateMaps(); - Sort(); }; MapManager.MapUpdated += map => { UpdateMaps(); - Sort(); }; MapManager.MapDeleted += map => { @@ -159,7 +156,6 @@ public override void _Ready() { clear(); UpdateMaps(); - Sort(); }).CallDeferred(); }; @@ -463,7 +459,6 @@ public void Search(string query = "", string author = "") AuthorQuery = author ?? AuthorQuery; UpdateMaps(); - Sort(); } public void UpdateMaps() @@ -483,6 +478,7 @@ public void UpdateMaps() Maps.Add(map); } + Sort(); clear(); } From d30bb59586c374e69193490f2d538e2f997dbc67 Mon Sep 17 00:00:00 2001 From: noobour Date: Tue, 11 Aug 2026 18:13:25 -0400 Subject: [PATCH 3/3] revert changes --- scripts/ui/menu/play/MapList.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/ui/menu/play/MapList.cs b/scripts/ui/menu/play/MapList.cs index 1189279..d0a542e 100644 --- a/scripts/ui/menu/play/MapList.cs +++ b/scripts/ui/menu/play/MapList.cs @@ -133,14 +133,10 @@ public override void _Ready() Select(maps[0]); } }; - MapManager.MapsInitialized += _ => - { - UpdateMaps(); - }; - MapManager.MapUpdated += map => - { - UpdateMaps(); - }; + MapManager.MapsInitialized += _ => UpdateMaps(); + + MapManager.MapUpdated += map => UpdateMaps(); + MapManager.MapDeleted += map => { if (selectedMapID == map.Name)