[#12638] Add sort-by-recently-played option to the map list
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Resolves Anuken/Mindustry-Suggestions#5115
The existing "recent" sort orders by the map file's last-modified time, which only reflects edits - built-in maps never touch their file, so it's meaningless for them, and for custom maps it tracks last edited, not last played.
Track an actual last-played timestamp per map, the same way high scores are already tracked (Core.settings, keyed by filename), updated whenever a map finishes loading successfully outside of playtesting. Add it as a fifth MapPriority option alongside the existing four.
<img width="1920" height="1032" alt="{0ABD029E-F84E-4F5C-B6E1-E3791CA3963D}" src="https://github.com/user-attachments/assets/ebe8e0d7-6dea-42dc-b9f2-2fc39b553605" />
由 MDT GitHub 同步机器人自动同步。