34 lines
767 B
C++
34 lines
767 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SlateIMInGameWindow.h"
|
|
|
|
#include "SlateIM.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(SlateIMInGameWindow)
|
|
|
|
ASlateIMInGameWindow::ASlateIMInGameWindow(const FObjectInitializer& ObjectInitializer)
|
|
{
|
|
}
|
|
|
|
ASlateIMInGameWindow::ASlateIMInGameWindow(const FName& InWindowName, const FStringView& InWindowTitle)
|
|
: WindowName(InWindowName)
|
|
, WindowTitle(InWindowTitle)
|
|
{
|
|
}
|
|
|
|
void ASlateIMInGameWindow::DrawWidget(const float DeltaTime)
|
|
{
|
|
const bool bIsDrawingWindow = SlateIM::BeginWindowRoot(WindowName, WindowTitle, WindowSize);
|
|
if (bIsDrawingWindow)
|
|
{
|
|
DrawContent(DeltaTime);
|
|
}
|
|
SlateIM::EndRoot();
|
|
|
|
if (!bIsDrawingWindow && !bDestroyRequested)
|
|
{
|
|
bDestroyRequested = true;
|
|
Server_Destroy();
|
|
}
|
|
}
|