Updated BookUI for Small Cosmetic Changes
This commit is contained in:
parent
7c39553dd2
commit
b5d451d948
@ -3,7 +3,7 @@
|
||||
[/Script/EngineSettings.GeneralProjectSettings]
|
||||
ProjectID=F2B2881E401D78B424BDDF9BBE633AFD
|
||||
ProjectVersion=0.2.0
|
||||
CompanyName=Team 2:13
|
||||
ProjectDisplayedTitle=NSLOCTEXT("[/Script/EngineSettings]", "3415E4AF4ECD4236C9C61DA55D72AA2A", "The Twilight Abyss")
|
||||
ProjectName=The Twilight Abyss
|
||||
CompanyName=Cave In Studios
|
||||
ProjectDisplayedTitle=NSLOCTEXT("[/Script/EngineSettings]", "3415E4AF4ECD4236C9C61DA55D72AA2A", "Azure Abyss")
|
||||
ProjectName=Azure Abyss
|
||||
|
||||
|
BIN
Content/Blueprints/Combat_UI/BookCombat_UI.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Combat_UI/BookCombat_UI.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Combat_UI/Combat_UI.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Combat_UI/Combat_UI.uasset
(Stored with Git LFS)
Binary file not shown.
@ -55,8 +55,6 @@ void ATurnBaseCombatV2::StartCombat(AActor* Enemy)
|
||||
HUD->AddToViewport();
|
||||
EnemyActor = Enemy;
|
||||
|
||||
//Cast<ATempCharacter>(PlayerActor)->ImportantStatsWidget->SetVisibility(ESlateVisibility::Hidden);
|
||||
|
||||
ProbertiumResource = 10;
|
||||
EisResource = 10;
|
||||
AzosResource = 10;
|
||||
@ -96,7 +94,6 @@ void ATurnBaseCombatV2::EndCombat()
|
||||
{
|
||||
StatusEffect->OnExpiry(PlayerActor);
|
||||
}
|
||||
//Cast<ATempCharacter>(PlayerActor)->ImportantStatsWidget->SetVisibility(ESlateVisibility::Visible);
|
||||
|
||||
HUD->RemoveFromParent();
|
||||
APawn* PlayerPawn = Cast<APawn>(GetWorld()->GetFirstPlayerController()->GetPawn());
|
||||
@ -113,16 +110,6 @@ void ATurnBaseCombatV2::EndCombat()
|
||||
PlayerController->bShowMouseCursor = false;
|
||||
}
|
||||
|
||||
// void ATurnBaseCombatV2::FKeyPressed()
|
||||
// {
|
||||
// PButtonOnClick();
|
||||
// }
|
||||
//
|
||||
// void ATurnBaseCombatV2::WKeyPressed()
|
||||
// {
|
||||
// EButtonOnClick();
|
||||
// }
|
||||
|
||||
void ATurnBaseCombatV2::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
@ -147,7 +134,6 @@ void ATurnBaseCombatV2::BeginPlay()
|
||||
CurrentComboTextBlock = Cast<UTextBlock>(BookHUD->GetWidgetFromName("CurrentCombo"));
|
||||
CurrentComboTextBlock1 = Cast<UTextBlock>(BookHUD->GetWidgetFromName("CurrentCombo_1"));
|
||||
CurrentComboTextBlock2 = Cast<UTextBlock>(BookHUD->GetWidgetFromName("CurrentCombo_2"));
|
||||
ActionPointsTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("ActionPoints"));
|
||||
BattleLogTextBlock = Cast<UTextBlock>(HUD->GetWidgetFromName("BattleLog"));
|
||||
PlayerHealthBar = Cast<UProgressBar>(BookHUD->GetWidgetFromName("PlayerHealthBar"));
|
||||
EnemyHealthBar = Cast<UProgressBar>(HUD->GetWidgetFromName("EnemyHealthBar"));
|
||||
@ -239,13 +225,11 @@ void ATurnBaseCombatV2::ExecuteCast(FString Combo)
|
||||
case true:
|
||||
// Player Turn
|
||||
DamageEnemy(*ValidCombos.Find(Combo));
|
||||
//GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Enemy Damaged %d"), *ValidCombos.Find(Combo)));
|
||||
OnPlayerTurn.Broadcast(PlayerActor, EnemyActor);
|
||||
break;
|
||||
case false:
|
||||
// Enemy Turn
|
||||
DamagePlayer(*ValidCombos.Find(Combo));
|
||||
//GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("Player Damaged %d"), *ValidCombos.Find(Combo)));
|
||||
OnEnemyTurn.Broadcast(EnemyActor, PlayerActor);
|
||||
break;
|
||||
}
|
||||
@ -471,7 +455,7 @@ void ATurnBaseCombatV2::UpdateComboString(FString NewCombo) const
|
||||
|
||||
void ATurnBaseCombatV2::UpdateActionPoints() const
|
||||
{
|
||||
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(DefaultActionPoints - ActiveActionPoints)));
|
||||
return;
|
||||
}
|
||||
|
||||
void ATurnBaseCombatV2::AddBattleLogMessage(FString Message)
|
||||
|
@ -100,10 +100,6 @@ public:
|
||||
void StartCombat(AActor* Enemy);
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void EndCombat();
|
||||
// UFUNCTION(BlueprintCallable)
|
||||
// void FKeyPressed();
|
||||
// UFUNCTION(BlueprintCallable)
|
||||
// void WKeyPressed();
|
||||
|
||||
DECLARE_EVENT_TwoParams(ATurnBaseCombatV2, FOnPlayerTurn, AActor*, AActor*);
|
||||
DECLARE_EVENT_TwoParams(ATurnBaseCombatV2, FOnEnemyTurn, AActor*, AActor*);
|
||||
@ -154,8 +150,6 @@ private:
|
||||
UTextBlock* CurrentComboTextBlock2;
|
||||
UPROPERTY(VisibleAnywhere)
|
||||
UTextBlock* BattleLogTextBlock;
|
||||
UPROPERTY(VisibleAnywhere)
|
||||
UTextBlock* ActionPointsTextBlock;
|
||||
|
||||
UPROPERTY(VisibleAnywhere)
|
||||
UProgressBar* PlayerHealthBar;
|
||||
|
Loading…
Reference in New Issue
Block a user