Potential fix for merchant system UI

** POTENTIALLY FIXED NEED TO TEST**
This commit is contained in:
MH261677 2023-03-16 14:49:17 +00:00
parent 4d45fff004
commit 093825dc0d
2 changed files with 6 additions and 3 deletions

View File

@ -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());

View File

@ -37,8 +37,6 @@ 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;