Updated Book UI to Display Only Valid Combos

This commit is contained in:
Philip W 2023-04-21 04:26:09 +01:00
parent 11a58bb836
commit 7c39553dd2
2 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@ -453,10 +453,11 @@ void ATurnBaseCombatV2::RunButtonOnClick()
void ATurnBaseCombatV2::UpdateComboString(FString NewCombo) const
{
CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
CurrentComboTextBlock1->SetText(FText::FromString(""));
CurrentComboTextBlock2->SetText(FText::FromString(""));
CurrentComboTextBlock->SetText(FText::FromString("?"));
CurrentComboTextBlock1->SetText(FText::FromString("?"));
CurrentComboTextBlock2->SetText(FText::FromString("?"));
if (IsValidCombo(NewCombo)) CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
if (NewCombo.Len() == 1)
{
CurrentComboTextBlock1->SetText(FText::FromString(NewCombo));