Problem with line spacing in labels
Asked Answered
H

4

0

I'm having trouble with line spacing in a leaderboard I'm making in a little 2D platformer game.

Hanschen answered 7/12, 2023 at 9:25 Comment(0)
S
0

Hanschen Do you have all the highscore names in one big multiline label with line breaks and then another big multiline label next to it with the scores? If that is the case then you should add one HBox for each highscore "line" that contains two labels, one for the name and one for the score. And then add ten of those HBox "lines".

Also where do the black and gray stripes come from? Is that just a background image?

Supererogatory answered 7/12, 2023 at 21:23 Comment(0)
S
0

Hanschen You need to show more about your scene tree setup. What is behind those labels? What theme settings do you have? Any containers?

Supererogatory answered 7/12, 2023 at 11:1 Comment(0)
H
0

Supererogatory This is the scene tree, I have a theme although that only changes the font.

Hanschen answered 7/12, 2023 at 21:13 Comment(0)
S
0

Hanschen Do you have all the highscore names in one big multiline label with line breaks and then another big multiline label next to it with the scores? If that is the case then you should add one HBox for each highscore "line" that contains two labels, one for the name and one for the score. And then add ten of those HBox "lines".

Also where do the black and gray stripes come from? Is that just a background image?

Supererogatory answered 7/12, 2023 at 21:23 Comment(0)
H
0

Supererogatory Ok, thanks. Yeah the stripes are the BackgroundImage panel.

Hanschen answered 8/12, 2023 at 3:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.