Bugfix Important Stats Widget Renamed

This commit is contained in:
Blue Probert 2023-03-23 15:55:57 +00:00
parent 34e7124861
commit e2ca14c83f

View File

@ -56,7 +56,7 @@ void ATurnBaseCombatV2::StartCombat(AActor* Enemy)
HUD->AddToViewport();
EnemyActor = Enemy;
Cast<ATempCharacter>(PlayerActor)->ImportantStats->SetVisibility(ESlateVisibility::Hidden);
Cast<ATempCharacter>(PlayerActor)->ImportantStatsWidget->SetVisibility(ESlateVisibility::Hidden);
ProbertiumResource = 10;
EisResource = 10;
@ -97,7 +97,7 @@ void ATurnBaseCombatV2::EndCombat()
{
StatusEffect->OnExpiry(PlayerActor);
}
Cast<ATempCharacter>(PlayerActor)->ImportantStats->SetVisibility(ESlateVisibility::Visible);
Cast<ATempCharacter>(PlayerActor)->ImportantStatsWidget->SetVisibility(ESlateVisibility::Visible);
HUD->RemoveFromParent();
APawn* PlayerPawn = Cast<APawn>(GetWorld()->GetFirstPlayerController()->GetPawn());