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;