Page 1 of 1
Info Block how to make color text ?

Posted:
07 Feb 2017, 22:04
by Oliver_Buo
I am allmost finish with my "oliver's world" with 27 Levels + End fight agains Nolok.
...i just make a wellcome Levels, and have now this Question:
If i make a infoblock usualy the Text is black and its difficult recognize the text / to read the text.
I found allredy out how to make the Text in collor start with * = blue or start with - = yellow.
Is there other collors possible and what sign i have go use to make Text in a other collor. for example red ?
see pic 1+2
Re: Info Block how to make color text ?

Posted:
07 Feb 2017, 23:20
by Tobbi
There are only those options that you listed.
Setting arbitrary color for infobox text is not supported yet. We're considering supporting it at a later time.
Re: Info Block how to make color text ?

Posted:
08 Feb 2017, 02:22
by VNS
There are only these prefixes existing currently in 0.5.1:
- Yellow Text (Recommended for headers, center align)
* Blue Text (Recommended for quotes or extra information, center align)
(space) Tiny white text (Recommended for quotes as well, center align)
# White Text (Recommended for descriptions, left align)
! For importing image URLS from the data folder (Recommended for unique tiles, center align)
(Any other character) Black text (Not recommended, left align)
It's only supported for info blocks, above. And soon I'll probably make some more info on that and other things. Would that be OK by the SuperTux Team?
EDIT: Added the alignment styles as well to each text element.
Re: Info Block how to make color text ?

Posted:
08 Feb 2017, 11:25
by GunChleoc
The black text is actually pretty hard to read, because it's black with a black drop shadow. Maybe make it dark/medium grey to give it some contrast to the shadow? Some level authors simply use the default color, so it would be good to have it produce legible text.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 01:43
by VNS
The shadow is not likely going to be changed. But again, there are only 6 different types of text, the ones that I listed.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 11:23
by GunChleoc
Let's change the default text then to make it dark grey instead of black. That's much easier to do than implementing individual drop shadow colors anyway.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 18:31
by brmbrmcar
And don't cut off the first character. In fact, this should be MUCH simpler to do in the editor. New users simply don't have a clue.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 19:00
by Tobbi
I agree. I will add a fix for the first character cutoff thing... And set the color to something else than black. Because black looks horrible.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 19:20
by Tobbi
https://github.com/SuperTux/supertux/co ... e1e21185c0That|s where I fixed the obvious bug with that. Yes, I agree with you that this needs to be made simpler, but currently, there are other, more pressing thing.
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 19:34
by VNS
Also, will you be able to implement custom colored text into scripts and info blocks in the 0.6.0 version?
Re: Info Block how to make color text ?

Posted:
09 Feb 2017, 22:08
by GunChleoc
Thanks for the fix
