main menu

how a pass to main menu to game when i click in play c++
i using a blank project
this is my code

void ULoginMenuWidget::OnPlayClicked()
if (GEngine) {
GEngine->AddOnScreenDebugMessage(-1, 2.f, FColor::MakeRandomColor(), TEXT(“Play”));

You mean you want Main Menu widget reference in C++?

This is probably what you are looking for - A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums

i using this tutorial to make my game

when i click in login go to main menu to ingame
i want the menu to ingame in c++
i this is my project
i put my project in dropbox
this is my link Dropbox - File Deleted

i find the soluction
with this code

case EGameState::EServerScreen: {
		currentWidget = CreateWidget <UUserWidget>(GetWorld()->GetFirstPlayerController(), cServerMenu);
		FInputModeGameOnly mode;
		GetWorld()->GetFirstPlayerController()->bShowMouseCursor = true;