Skip to content
Snippets Groups Projects
Commit fb3af22d authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

fix issues with displaying old (or non-complete) data in the status bar

closes #116
parent 1c471c79
No related branches found
No related tags found
No related merge requests found
...@@ -41,11 +41,14 @@ void USFHUDWidget::SetCondition(const TMap<FString, FString>& Texts) ...@@ -41,11 +41,14 @@ void USFHUDWidget::SetCondition(const TMap<FString, FString>& Texts)
FSFLoggingUtils::Log("Not all factor levels fit in the HUD, so only showing the first 6 levels"); FSFLoggingUtils::Log("Not all factor levels fit in the HUD, so only showing the first 6 levels");
break; break;
} }
TextBlocks[TextIndex++]->SetText(FText::FromString(FactorLevel.Key + ": " + FactorLevel.Value)); TextBlocks[TextIndex]->SetText(FText::FromString(FactorLevel.Key + ": " + FactorLevel.Value));
TextBlocks[TextIndex]->SetVisibility(ESlateVisibility::Visible);
TextIndex++;
} }
while (TextIndex < TextBlocks.Num()) while (TextIndex < TextBlocks.Num())
{ {
TextBlocks[TextIndex++]->SetVisibility(ESlateVisibility::Collapsed); TextBlocks[TextIndex]->SetVisibility(ESlateVisibility::Collapsed);
TextIndex++;
} }
ConditionTexts = Texts; ConditionTexts = Texts;
} }
......
...@@ -129,7 +129,7 @@ protected: ...@@ -129,7 +129,7 @@ protected:
TMap<USFIndependentVariable*, FString> IndependentVariablesValues; TMap<USFIndependentVariable*, FString> IndependentVariablesValues;
UPROPERTY() UPROPERTY()
int CurrentConditionIdx; int CurrentConditionIdx = -1;
double StartTime = 0.0; double StartTime = 0.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment