From 7fb9935e70a42ce57acd6caf522adae43ecc6937 Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Mon, 14 Nov 2022 03:18:50 +0000 Subject: [PATCH] Updated TurnBaseCombat to Show Cursor --- .../TurnBasedCombat/TurnBaseCombat.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/the_twilight_abyss/TurnBasedCombat/TurnBaseCombat.cpp b/Source/the_twilight_abyss/TurnBasedCombat/TurnBaseCombat.cpp index dd5e341..491473e 100644 --- a/Source/the_twilight_abyss/TurnBasedCombat/TurnBaseCombat.cpp +++ b/Source/the_twilight_abyss/TurnBasedCombat/TurnBaseCombat.cpp @@ -28,6 +28,15 @@ void ATurnBaseCombat::BeginPlay() UUserWidget* HUD = CreateWidget(GetWorld(), HUDWidget); HUD->AddToViewport(); + APlayerController* PC = Cast(GetWorld()->GetFirstPlayerController()); + + if (PC) + { + PC->bShowMouseCursor = true; + PC->bEnableClickEvents = true; + PC->bEnableMouseOverEvents = true; + } + TurnIndicatorTextBlock = Cast(HUD->GetWidgetFromName("TurnIndicator")); CurrentComboTextBlock = Cast(HUD->GetWidgetFromName("CurrentCombo")); ActionPointsTextBlock = Cast(HUD->GetWidgetFromName("ActionPoints"));