Info Block how to make color text ?

Info Block how to make color text ?

Postby Oliver_Buo » 07 Feb 2017, 22:04

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

text collor 1.JPG


text collor 2.JPG
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

Re: Info Block how to make color text ?

Postby Tobbi » 07 Feb 2017, 23:20

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.
SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

Re: Info Block how to make color text ?

Postby VNS » 08 Feb 2017, 02:22

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.
Last edited by VNS on 09 Feb 2017, 21:18, edited 1 time in total.
Hello there!
User avatar
VNS
 
Posts: 151
Joined: 30 Nov 2016, 21:40
Location: on a planet named Earth

Re: Info Block how to make color text ?

Postby GunChleoc » 08 Feb 2017, 11:25

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.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: Info Block how to make color text ?

Postby VNS » 09 Feb 2017, 01:43

The shadow is not likely going to be changed. But again, there are only 6 different types of text, the ones that I listed.
Hello there!
User avatar
VNS
 
Posts: 151
Joined: 30 Nov 2016, 21:40
Location: on a planet named Earth

Re: Info Block how to make color text ?

Postby GunChleoc » 09 Feb 2017, 11:23

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.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: Info Block how to make color text ?

Postby brmbrmcar » 09 Feb 2017, 18:31

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.
brmbrmbrmbrmbrmbrmcar
User avatar
brmbrmcar
 
Posts: 357
Joined: 24 Oct 2015, 14:46

Re: Info Block how to make color text ?

Postby Tobbi » 09 Feb 2017, 19:00

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.
SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

Re: Info Block how to make color text ?

Postby Tobbi » 09 Feb 2017, 19:20

https://github.com/SuperTux/supertux/co ... e1e21185c0

That|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.
SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

Re: Info Block how to make color text ?

Postby VNS » 09 Feb 2017, 19:34

Also, will you be able to implement custom colored text into scripts and info blocks in the 0.6.0 version?
Hello there!
User avatar
VNS
 
Posts: 151
Joined: 30 Nov 2016, 21:40
Location: on a planet named Earth

Re: Info Block how to make color text ?

Postby GunChleoc » 09 Feb 2017, 22:08

Thanks for the fix :)
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Who is online

Users browsing this forum: No registered users and 1 guest

cron