parent
c256136d69
commit
fd6ead7f42
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
|
#include "MainMenuPlayerController.h"
|
||||||
|
#include "Blueprint/UserWidget.h"
|
||||||
|
|
||||||
|
void AMainMenuPlayerController::BeginPlay() {
|
||||||
|
Super::BeginPlay();
|
||||||
|
SetShowMouseCursor(true);
|
||||||
|
UUserWidget *CreatedWidget = CreateWidget<UUserWidget>(
|
||||||
|
GetWorld(), WidgetClass);
|
||||||
|
CreatedWidget->AddToViewport();
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CoreMinimal.h"
|
||||||
|
#include "GameFramework/PlayerController.h"
|
||||||
|
#include "MainMenuPlayerController.generated.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
UCLASS()
|
||||||
|
class TURNBASEDTUTORIAL_API
|
||||||
|
AMainMenuPlayerController : public APlayerController {
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
UPROPERTY(EditAnywhere)
|
||||||
|
TSubclassOf<UUserWidget> WidgetClass;
|
||||||
|
};
|
Loading…
Reference in new issue