From 093825dc0dfa644b1a5adfa988392105739d2c4c Mon Sep 17 00:00:00 2001 From: MH261677 Date: Thu, 16 Mar 2023 14:49:17 +0000 Subject: [PATCH] Potential fix for merchant system UI ** POTENTIALLY FIXED NEED TO TEST** --- Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp | 5 +++++ Source/the_twilight_abyss/PlayerTemp/TempCharacter.h | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp index a50c2be..14a79e7 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp @@ -219,6 +219,11 @@ void ATempCharacter::InputDisabler() { PlayerCharacter->DisableInput(GetWorld()->GetFirstPlayerController()); } + //TURNING OFF CROSSHAIR + + CrossHairWidget->SetVisibility(ESlateVisibility::Hidden); + ImportantStatsWidget->SetVisibility(ESlateVisibility::Hidden); + //Set to UI Mode Only APlayerController* PlayerController = GetWorld()->GetFirstPlayerController(); PlayerController->SetInputMode(FInputModeUIOnly()); diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h index 013e8b2..59eb643 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h @@ -36,9 +36,7 @@ public: UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Inventory, meta = (AllowPrivateAccess = "true")) class UInventoryComponent* Inventory; //Using the InventoryComponent class - - //UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Widgets") - //UUserWidget* ItemSelectorWidget; + // Called to bind functionality to input virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;