added session loss sequence, added energy and stamina to HUD, added home location trigger
This commit is contained in:
@@ -104,8 +104,17 @@ FString UForumCommissionWidget::BuildObjectivesString() const
|
||||
if (!Result.IsEmpty())
|
||||
Result += LINE_TERMINATOR;
|
||||
|
||||
FString Line = FString::Printf(TEXT("• %s"), *Objective->GetDescription().ToString());
|
||||
|
||||
// Append any "while Y" constraint text so the row reads "Be fully naked while at Beach (50%)".
|
||||
const FString Constraints = Objective->GetConstraintsDescription().ToString();
|
||||
if (!Constraints.IsEmpty())
|
||||
Line += FString::Printf(TEXT(" %s"), *Constraints);
|
||||
|
||||
const int32 Pct = FMath::RoundToInt(Objective->GetProgress() * 100.0f);
|
||||
Result += FString::Printf(TEXT("• %s (%d%%)"), *Objective->GetDescription().ToString(), Pct);
|
||||
Line += FString::Printf(TEXT(" (%d%%)"), Pct);
|
||||
|
||||
Result += Line;
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user