0 votes

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

in Engine by (29 points)

1 Answer

0 votes

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

by (1,057 points)

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

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.