Page 1 of 1

Invisible Text (Irrlicht 1.8)

PostPosted: Sat Dec 01, 2012 19:14
by Menche
When I use minetest with the latest version of Irrlicht, the text in text boxes is the same or a very similar color to the background. For example, there is text in all of these boxes:
Image
If you look closely you can see the text in all but the password box (it's there but is completely invisible).

PostPosted: Sun Dec 02, 2012 00:11
by trukoil
Same problem here, 64 bit version. Also, typing / in-game select the / character making command useless.

PostPosted: Sun Dec 02, 2012 07:33
by dannydark
Menche wrote:When I use minetest with the latest version of Irrlicht, the text in text boxes is the same or a very similar color to the background. For example, there is text in all of these boxes: (IMAGE)
If you look closely you can see the text in all but the password box (it's there but is completely invisible).


The skin colours where changed in Irrlicht 1.8 as well as some new additions added you will need to edit the Minetest source if you want the input fields to display correctly in Irrlicht 1.8.

If you open main.cpp in the Minetest source and goto line 1351 which should look like:
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
skin->setColor(gui::EGDC_HIGH_LIGHT_TEXT, video::SColor(255,255,255,255));


After this line add the following:
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
   
    // Irrlicht 1.8 input colours
    skin->setColor(gui::EGDC_EDITABLE, video::SColor(255,128,128,128));
    skin->setColor(gui::EGDC_FOCUSED_EDITABLE, video::SColor(255,86,134,19));


So the final code should look like:
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
    skin->setColor(gui::EGDC_HIGH_LIGHT_TEXT, video::SColor(255,255,255,255));

    // Irrlicht 1.8 input colours
    skin->setColor(gui::EGDC_EDITABLE, video::SColor(255,128,128,128));
    skin->setColor(gui::EGDC_FOCUSED_EDITABLE, video::SColor(255,86,134,19));


The compile and the inputs should be coloured again and easily readable, I've set the inputs to a green colour but you can change them to whatever colour you want by changing the SColor() value.

trukoil wrote:Same problem here, 64 bit version. Also, typing / in-game select the / character making command useless.


With regards to the forward slash being highlighted after the quick command interface opens, this bug happens in the current minetest master too, its not a bug in Irrlicht 1.8.

You can just re-add the forward slash to run the command though or use the normal chat (T by default) or even the console (F10) its probably quicker than having to deselect the forward slash in the quick command input first, I will have a look at what causes this bug later if I get chance.

Hope the above helped.

EDIT: Also just another quick note, Minetest is officially still being developed with Irrlicht 1.7.x I think the reason being is some distros don't yet have easy access to Irrlicht 1.8 so until that happens you probably won't see the main master getting any changes needed for Irrlicht 1.8.

So until then if you ensist on using Irrlicht 1.8 like me ^_^ (instead of 1.7.3) you will need to make sure these 1.8 specific lines are not removed.

PostPosted: Sun Dec 02, 2012 08:02
by leo_rockway
Thanks, I'll try this out. I'm on Irrlicht svn. I had mentioned this colour issue in IRC before (but it never bothered me too much).

EDIT: Thanks, green looks really good =]

PostPosted: Sun Dec 02, 2012 19:54
by dannydark
@leo_rockway haha no worries, yeah I liked it too, just thought I would give people a heads up as it might not be to everyones liking hehe >_< glad it helped.