fix(ui): restore retail vitals and window interactions
This commit is contained in:
parent
4d84456c21
commit
1bd2b30291
36 changed files with 1462 additions and 86 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue