Colored console messages (e.g. player.print) for 0.15

Post your ideas and suggestions how to improve the game.
Post Reply
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1174
Joined: Wed May 18, 2016 4:55 pm
Contact:

Colored console messages (e.g. player.print) for 0.15

Post by Mooncat » Fri Sep 16, 2016 9:32 pm

I see you are working on (or planning to work on) rich text support for GUI in 0.15. I hope the console can also be benefited.

When you see something like this in your console:
WeNeedSomeColors.png
WeNeedSomeColors.png (905.63 KiB) Viewed 671 times
you also wish them to have colors, don't you? :lol:

With rich text, I hope we can give the console messages some colors, like

Code: Select all

player.print("{color=#FF0000}This is red.{/color} and this is white.")
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Colored console messages (e.g. player.print) for 0.15

Post by aubergine18 » Fri Sep 16, 2016 10:01 pm

That will be a dream for other things too, like EvoGUI, and if we can get it on floating text it would be sweet. Would be nice if we could also pass colors in via locale strings, for example:

-- cfg file:
some.str = blah {color=__1}__2{color} blah

Can we also get font tags too? That way it would be trivial to add in characters from glyph fonts, as well as set their color.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Ideas and Suggestions”

Who is online

Users browsing this forum: Google [Bot]