Set proper field background colors in Irrlicht 1.8
authorPerttu Ahola <celeron55@gmail.com>
Thu, 6 Dec 2012 17:35:40 +0000 (19:35 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 6 Dec 2012 17:35:40 +0000 (19:35 +0200)
src/main.cpp

index 73757cbecd56fd4b72d5c98fe10af4663323346e..ede9f63b06477308d091263809190ade2e934259 100644 (file)
@@ -1349,7 +1349,13 @@ int main(int argc, char *argv[])
        skin->setColor(gui::EGDC_3D_SHADOW, video::SColor(255,0,0,0));
        skin->setColor(gui::EGDC_HIGH_LIGHT, video::SColor(255,70,100,50));
        skin->setColor(gui::EGDC_HIGH_LIGHT_TEXT, video::SColor(255,255,255,255));
-       
+
+#if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2
+       // 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,96,134,49));
+#endif
+
        /*
                GUI stuff
        */