Updated TurnBaseCombat to Show Cursor
This commit is contained in:
parent
ce4c2294c4
commit
7fb9935e70
@ -28,6 +28,15 @@ void ATurnBaseCombat::BeginPlay()
|
|||||||
UUserWidget* HUD = CreateWidget<UUserWidget>(GetWorld(), HUDWidget);
|
UUserWidget* HUD = CreateWidget<UUserWidget>(GetWorld(), HUDWidget);
|
||||||
HUD->AddToViewport();
|
HUD->AddToViewport();
|
||||||
|
|
||||||
|
APlayerController* PC = Cast<APlayerController>(GetWorld()->GetFirstPlayerController());
|
||||||
|
|
||||||
|
if (PC)
|
||||||
|
{
|
||||||
|
PC->bShowMouseCursor = true;
|
||||||
|
PC->bEnableClickEvents = true;
|
||||||
|
PC->bEnableMouseOverEvents = true;
|
||||||
|
}
|
||||||
|
|
||||||
TurnIndicatorTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("TurnIndicator"));
|
TurnIndicatorTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("TurnIndicator"));
|
||||||
CurrentComboTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("CurrentCombo"));
|
CurrentComboTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("CurrentCombo"));
|
||||||
ActionPointsTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("ActionPoints"));
|
ActionPointsTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("ActionPoints"));
|
||||||
|
Loading…
Reference in New Issue
Block a user