TypeWirter.cpp
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Fill out your copyright notice in the Description page of Project Settings.
#include "TypeWirter.h"
// Sets default values
ATypeWirter::ATypeWirter()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
void ATypeWirter::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void ATypeWirter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
//UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UMG Game")
//
//TSubclassOf<UUserWidget> StartingWidgetClass;
//UPROPERTY()
//
//UUserWidget* CurrentWidget;
//void ATypeWirter::ChangeMenuWidget(TSubclassOf<UMyUserWidget> NewWidgetClass)
//{
// if (CurrentWidget != nullptr)
// {
// CurrentWidget->RemoveFromViewport();
// CurrentWidget = nullptr;
// }
// if (NewWidgetClass != nullptr)
// {
// CurrentWidget = CreateWidget<UMyUserWidget>(GetWorld(), NewWidgetClass);
// if (CurrentWidget != nullptr)
// {
// CurrentWidget->AddToViewport();
// }
// }
//}