This commit is contained in:
CortexCore
2025-04-30 14:18:13 +08:00
parent f8bcf8a4d4
commit fc189b98cc
13 changed files with 3880 additions and 11 deletions

View File

@@ -106,7 +106,15 @@ var button = container.Get<Button>();
protected override void OnReturn()
{
UXService.Entry(_prevPanel);
if (_prevPanel is not null)
{
UXService.Entry(_prevPanel);
}
else
{
UXService.Return();
}
}
public void Perform(IHotkeyCollection collection)

View File

@@ -210,7 +210,7 @@ Object.Destroy(gameObject);
}
if (_entryQueue.TryPop(out var nextPanel))
{
if (nextPanel.IsWindow)
if (nextPanel is {IsWindow:true})
{
_windowEntryGroup.TransitionState(nextPanel);
return;