Updated Book UI to Display Only Valid Combos
This commit is contained in:
parent
11a58bb836
commit
7c39553dd2
BIN
Content/Blueprints/Combat_UI/Widget3DPassThrough.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Combat_UI/Widget3DPassThrough.uasset
(Stored with Git LFS)
Binary file not shown.
@ -453,10 +453,11 @@ void ATurnBaseCombatV2::RunButtonOnClick()
|
|||||||
|
|
||||||
void ATurnBaseCombatV2::UpdateComboString(FString NewCombo) const
|
void ATurnBaseCombatV2::UpdateComboString(FString NewCombo) const
|
||||||
{
|
{
|
||||||
CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
|
CurrentComboTextBlock->SetText(FText::FromString("?"));
|
||||||
CurrentComboTextBlock1->SetText(FText::FromString(""));
|
CurrentComboTextBlock1->SetText(FText::FromString("?"));
|
||||||
CurrentComboTextBlock2->SetText(FText::FromString(""));
|
CurrentComboTextBlock2->SetText(FText::FromString("?"));
|
||||||
|
|
||||||
|
if (IsValidCombo(NewCombo)) CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
|
||||||
if (NewCombo.Len() == 1)
|
if (NewCombo.Len() == 1)
|
||||||
{
|
{
|
||||||
CurrentComboTextBlock1->SetText(FText::FromString(NewCombo));
|
CurrentComboTextBlock1->SetText(FText::FromString(NewCombo));
|
||||||
|
Loading…
Reference in New Issue
Block a user