]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix replay load error screens (#32115)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Fri, 13 Sep 2024 13:58:02 +0000 (15:58 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 13:58:02 +0000 (23:58 +1000)
commitb6ca604a661e2b98ed9b3e9a8f5ce88a7cd49cfa
treec9aa3e7fd2803557ea30c0e3506ce8ff74f9470d
parent1d997d6e46785042ab984ae0454e97ea664176fd
Fix replay load error screens (#32115)

If an error occurs while loading a replay, it's *supposed* to show a popup "hey do you wanna continue with error tolerance", and it does do this. But because of spaghetti in the replay state code, it also immediately tries to reload the replay without input, as a consequence of trying to reset to the game's default state.

Now the replay load system has a proper game state for "replay load failed", with nice presentation and explicit formatting and 10% less italian cuisine.
Content.Client/Replay/ContentReplayPlaybackManager.cs
Content.Client/Replay/UI/Loading/ReplayLoadingFailed.cs [new file with mode: 0644]
Content.Client/Replay/UI/Loading/ReplayLoadingFailedControl.xaml [new file with mode: 0644]
Content.Client/Replay/UI/Loading/ReplayLoadingFailedControl.xaml.cs [new file with mode: 0644]
Resources/Locale/en-US/replays/replays.ftl