]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix solution editor UI (#24004)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sat, 13 Jan 2024 04:52:42 +0000 (05:52 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Jan 2024 04:52:42 +0000 (15:52 +1100)
commit3a2cd95d7f8d2b6975ebfda715b4cbf858e74668
tree981acdee02aa35e2ed65ffe482d7954cdc8e5c33
parent2375a6cd1d2edfe6692c4a0ad388d2a3f5a3ce01
Fix solution editor UI (#24004)

Fixes #23645

The problem is that the solution editor UI is an EUI, so the UI updates before the game states are applied.

A correct fix would be to move it to a BUI in some way, but that's a little involved as we don't really have pre-existing code that uses BUIs in a manner good for this. I decided against this because I realized we'd want to have more tools similar to this and tbh I kinda figured integrating it with VV would be a better fix instead, so...

This is a bad workaround to manually synchronize the UI updates against game timing. It's not pretty but it works.
Content.Client/Administration/UI/ManageSolutions/EditSolutionsEui.cs
Content.Client/Administration/UI/ManageSolutions/EditSolutionsWindow.xaml.cs
Content.Server/Administration/UI/EditSolutionsEui.cs
Content.Shared/Administration/EditSolutionsEuiState.cs