Droppable items fix

This commit is contained in:
2026-09-05 19:17:09 +02:00
parent 42b8944a62
commit 1f4e7a63f3
8 changed files with 24 additions and 14 deletions

View File

@@ -40,6 +40,11 @@ void UMainGameWidget::OpenWidget(UEleriBaseWidget* Widget)
{
Widget->DisplayInputPrompts();
}
if (!WidgetStack.IsEmpty())
{
WidgetStack[WidgetStack.Num() - 1]->SetFocus();
}
}
void UMainGameWidget::CloseWidget(UEleriBaseWidget* Widget)
@@ -63,6 +68,11 @@ void UMainGameWidget::CloseWidget(UEleriBaseWidget* Widget)
{
GetScreenActionInputDisplayWidget()->SetVisibility(ESlateVisibility::Hidden);
}
if (!WidgetStack.IsEmpty())
{
WidgetStack[WidgetStack.Num() - 1]->SetFocus();
}
}
bool UMainGameWidget::IsBookOpen() const