float trash

This commit is contained in:
wonkyhonky2024
2025-05-09 22:20:16 +01:00
parent a28e6869f0
commit 8e1b4928a9
8 changed files with 77 additions and 10 deletions

View File

@ -8,4 +8,19 @@ void UMyUserWidget::NativeOnInitialized() {
if (ps == nullptr)
return;
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
UTextBlock * arcaneNumbers[9] = {
URM_TextBlock,
MU_TextBlock,
Time_TextBlock,
GR_TextBlock,
CR_TextBlock,
ColX_TextBlock,
ColY_TextBlock,
WR_TextBlock,
AN_TextBlock
};
for (auto * n : arcaneNumbers) {
auto x = FCString::Atod(*n->GetText().ToString());
n->SetText(FText::FromString(FString::Printf(TEXT("%.7f"), x)));
}
}