Invisible Text (Irrlicht 1.8)

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

Invisible Text (Irrlicht 1.8)

by Menche » Sat Dec 01, 2012 19:14

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).
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

trukoil
Member
 
Posts: 145
Joined: Mon Oct 22, 2012 03:32

by trukoil » Sun Dec 02, 2012 00:11

Same problem here, 64 bit version. Also, typing / in-game select the / character making command useless.
I don't always sign a post
but when i do, i dig.
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Sun Dec 02, 2012 07:33

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.
Last edited by dannydark on Sun Dec 02, 2012 07:47, edited 1 time in total.
 

leo_rockway
Member
 
Posts: 131
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Sun Dec 02, 2012 08:02

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 =]
Last edited by leo_rockway on Sun Dec 02, 2012 19:18, edited 1 time in total.
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Sun Dec 02, 2012 19:54

@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.
Last edited by dannydark on Sun Dec 02, 2012 19:55, edited 1 time in total.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 10 guests

cron