fix(ui): restore retail vitals and window interactions
All checks were successful
CI / linux-portable (push) Successful in 3m16s
CI / windows-gate (push) Successful in 5m41s
CI / release (push) Successful in 2m5s

This commit is contained in:
Erik 2026-08-20 13:26:35 +02:00
parent 4d84456c21
commit 1bd2b30291
36 changed files with 1462 additions and 86 deletions

View file

@ -4,6 +4,7 @@ using AcDream.App.Combat;
using AcDream.App.Composition;
using AcDream.App.Diagnostics;
using AcDream.App.Rendering;
using AcDream.App.Settings;
using AcDream.App.Spells;
using AcDream.Content;
using AcDream.App.UI;
@ -35,6 +36,25 @@ public sealed class InteractionRetainedUiCompositionTests
InteractionRetainedUiCompositionPoint.InventoryContainerBound,
];
[Fact]
public void RadarLockBindingUsesAuthoritativeRequestInsteadOfPresentationOnlySetter()
{
MethodInfo compose = typeof(RetailInteractionRetainedUiCompositionFactory)
.GetMethod(nameof(
RetailInteractionRetainedUiCompositionFactory.CreateRetainedUi))!;
IReadOnlyList<CompiledCall> references =
CompiledCallGraph.ReadMethodReferences(compose);
Assert.Contains(
references,
call => call.Target.DeclaringType == typeof(RuntimeSettingsController)
&& call.Target.Name == nameof(RuntimeSettingsController.RequestUiLocked));
Assert.DoesNotContain(
references,
call => call.Target.DeclaringType == typeof(RuntimeSettingsController)
&& call.Target.Name == nameof(RuntimeSettingsController.SetUiLocked));
}
[Fact]
public void EnabledUiPublishesOneExactResultAfterFrozenConstructionOrder()
{