Updated Combat UI for New Conventions (WIP)

This commit is contained in:
Philip W 2023-03-28 04:36:27 +01:00
parent 544de9810c
commit 1b4a2673e3
10 changed files with 24 additions and 22 deletions

Binary file not shown.

BIN
Content/Blueprints/Combat_UI/Resource_Fill.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Combat_UI/Resource_Outline.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Fonts/ChildrenOnceWhere.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Fonts/ChildrenOnceWhere_Font.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/Build.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -79,27 +79,11 @@ void ATempCharacter::Sneak()
UnCrouch(); UnCrouch();
isInStealth = false; isInStealth = false;
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.0f; if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.0f;
//for (AActor* Actor : AIActors)
//{
// USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
// if (IsValid(SphereComponent))
// {
// SphereComponent->SetSphereRadius(40.0f); //default value
// }
//}
} }
else else
{ {
Crouch(); Crouch();
isInStealth = true; isInStealth = true;
/*for (AActor* Actor : AIActors)
{
USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
if (IsValid(SphereComponent))
{
SphereComponent->SetSphereRadius(5.0f);
}
}*/
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.8f; if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.8f;
} }
} }

View File

@ -233,13 +233,13 @@ void ATurnBaseCombatV2::ExecuteCast(FString Combo)
case true: case true:
// Player Turn // Player Turn
DamageEnemy(*ValidCombos.Find(Combo)); DamageEnemy(*ValidCombos.Find(Combo));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Enemy Damaged %d"), *ValidCombos.Find(Combo))); //GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Enemy Damaged %d"), *ValidCombos.Find(Combo)));
OnPlayerTurn.Broadcast(PlayerActor, EnemyActor); OnPlayerTurn.Broadcast(PlayerActor, EnemyActor);
break; break;
case false: case false:
// Enemy Turn // Enemy Turn
DamagePlayer(*ValidCombos.Find(Combo)); DamagePlayer(*ValidCombos.Find(Combo));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Player Damaged %d"), *ValidCombos.Find(Combo))); //GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Player Damaged %d"), *ValidCombos.Find(Combo)));
OnEnemyTurn.Broadcast(EnemyActor, PlayerActor); OnEnemyTurn.Broadcast(EnemyActor, PlayerActor);
break; break;
} }

BIN
UI designs/Resource_Fill.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
UI designs/Resource_Outline.png (Stored with Git LFS) Normal file

Binary file not shown.