Page 1 of 1

green HUD font

PostPosted: Thu Sep 24, 2015 20:34
by barsik
i want to have option for changing ingame font colour to green/dark green, like in cars
in cars, when you are driving during night, speedometer and other indicatiors are never painted white because it will blind you
same in minetest: HUD looks very bright and repulsive when playing during in-game night (especially when combined with IRL night)

Re: green HUD font

PostPosted: Thu Sep 24, 2015 21:28
by kaadmy
Which text? The only text on the HUD is the hotbar for the itemstack sizes.

Re: green HUD font

PostPosted: Thu Sep 24, 2015 22:18
by rubenwardy
use the number attribute in a HUD def to change the color.

http://rubenwardy.com/minetest_modding_ ... .html#text

Re: green HUD font

PostPosted: Thu Sep 24, 2015 23:11
by barsik
kaadmy wrote:Which text?

chat, for example

Re: green HUD font

PostPosted: Fri Sep 25, 2015 00:06
by Dragonop
+1 I think that in later builds there should be an option to change chat font colour, hard to see it if you are on a snow biome.

Re: green HUD font

PostPosted: Fri Sep 25, 2015 07:19
by Krock
Dragonop wrote:+1 I think that in later builds there should be an option to change chat font colour, hard to see it if you are on a snow biome.

Shadowed text may help to see it better.

Re: green HUD font

PostPosted: Fri Sep 25, 2015 12:36
by Ferk
Krock wrote:Shadowed text may help to see it better.

I made a pull request for a shadowed crosshair, but it was rejected because it was "too 3D". I'd guess implementing shadowed text would give similar complains.

EDIT: wait.. there are already dim shadows in current font :S

Re: green HUD font

PostPosted: Fri Sep 25, 2015 18:00
by kaadmy
Ferk wrote:[...]EDIT: wait.. there are already dim shadows in current font :S

I checked, there's a setting in the minetest.conf for the text shadow, but it seems to only apply in formspecs and in the main menu, but not in the in-game HUD.

Re: green HUD font

PostPosted: Fri Sep 25, 2015 19:15
by Calinou
kaadmy wrote:
Ferk wrote:[...]EDIT: wait.. there are already dim shadows in current font :S

I checked, there's a setting in the minetest.conf for the text shadow, but it seems to only apply in formspecs and in the main menu, but not in the in-game HUD.


It applies to all Freetype fonts, which includes the HUD and player names.

Re: green HUD font

PostPosted: Fri Sep 25, 2015 20:38
by kaadmy
Calinou wrote:
kaadmy wrote:
Ferk wrote:[...]EDIT: wait.. there are already dim shadows in current font :S

I checked, there's a setting in the minetest.conf for the text shadow, but it seems to only apply in formspecs and in the main menu, but not in the in-game HUD.


It applies to all Freetype fonts, which includes the HUD and player names.

Ah, you're right, it does show up in the HUD text, just very light. Adding the setting
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
font_shadow_alpha = 255

makes it much more visible, but looks uglier.

Re: green HUD font

PostPosted: Fri Sep 25, 2015 21:58
by barsik
it is visible ok, just very bright