[0.17.72] Server description and word wrapping

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
User avatar
SimonFlapse
Burner Inserter
Burner Inserter
Posts: 17
Joined: Thu Feb 28, 2019 1:20 pm
Contact:

[0.17.72] Server description and word wrapping

Post by SimonFlapse »

In the server browser most server descriptions have their text centered, but if a description causes a word-wrap the centering will break.
I think this could be fixed quickly by applying the horizontal_align style and setting it to 'center'.

Fixing it would make server descriptions more consistent

Examples:

Server description with word-wrap
Image

Server description without word-wrap
Image

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1150
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: [0.17.72] Server description and word wrapping

Post by valneq »

IMHO, this behaves exactly as I would expect it to. Consider having a server description of 5 full text lines + a couple of words. In this case, the last couple of words hanging centered would look just weird.

I would not mind having all server descriptions be ragged right, even single lines. But centering single line descriptions is fine.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.72] Server description and word wrapping

Post by Rseding91 »

Thanks for the report. That's how centering works for text boxes in Factorio. As far as I know we don't support the style of horizontal text-alignment you're describing when multi-line text is involved.
If you want to get ahold of me I'm almost always on Discord.

User avatar
SimonFlapse
Burner Inserter
Burner Inserter
Posts: 17
Joined: Thu Feb 28, 2019 1:20 pm
Contact:

Re: [0.17.72] Server description and word wrapping

Post by SimonFlapse »

I've managed to do it in text boxes with horizontal_align: 'center'

Image

The string "This section is supposed to be filled out on a per map basis, but now it is word wrapping." has been word wrapped but is still centered. If you paste the same into the server description it will look like my before mentioned example with word wrap.

Furthermore the centering in the server description only works when no lines have been word wrapped.
So the following string in my example in this replay: "If you're seeing this message, ping the admin team to get/na description added for this map (20 coin reward)" would be left aligned now. Even though I've manually added a newline

Example:
Image

Edit:
I had not noticed that the entire description is a single label, and not a text box. I still think it looks very weird.

I can still center the text in a label using the horizontal_align: 'center'. No word wrap though

Image

Post Reply

Return to “Ideas and Suggestions”