mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Better current run name implementation
This commit is contained in:
parent
f7065721e0
commit
d859d99af4
@ -331,6 +331,11 @@ FString UTypewriterTextWidget::CalculateSegments(FString* OutCurrentRunName)
|
|||||||
{
|
{
|
||||||
Result += TEXT("</>");
|
Result += TEXT("</>");
|
||||||
}
|
}
|
||||||
|
if (OutCurrentRunName)
|
||||||
|
{
|
||||||
|
*OutCurrentRunName = Segment.RunInfo.Name;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bIsSegmentComplete)
|
if (bIsSegmentComplete)
|
||||||
@ -344,19 +349,7 @@ FString UTypewriterTextWidget::CalculateSegments(FString* OutCurrentRunName)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OutCurrentRunName)
|
|
||||||
{
|
|
||||||
if (CurrentSegmentIndex < Segments.Num())
|
|
||||||
{
|
|
||||||
*OutCurrentRunName = Segments[CurrentSegmentIndex].RunInfo.Name;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*OutCurrentRunName = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user