Display array elements in label

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Harshitsoam

Hi I am beginner game developer, I am making a stopwatch for recording my Rubik’s cube solves.
In my project when once the stopwatch is paused it’s time is saved in a array named solves now I have a button named all solves which opens a popup dialog when clicked and it’s supposed to show all previous solves done there in a label

How can I put all the times in array (solves) in label one by one like a list

:bust_in_silhouette: Reply From: SteveSmith

Add a separate label for each one, and add those labels to a VBoxContainer, and add that to your popup.

So according to you if the user is doing 1000 solves I have to make 1000 labels where I don’t know how much more he or she will go

Harshitsoam | 2022-10-03 16:51

I didn’t know there would be over a thousand, it will be quite a big “popup” dialog. Try a RichTextEdit instead then.

SteveSmith | 2022-10-03 17:51