Allow transparent image_buttons
authorKyle <kyle.kylina@gmail.com>
Thu, 18 Oct 2012 19:06:47 +0000 (12:06 -0700)
committerKyle <kyle.kylina@gmail.com>
Thu, 18 Oct 2012 19:06:47 +0000 (12:06 -0700)
src/guiFormSpecMenu.cpp

index ed44e441b4c562e29761165d97b18a86e7413ba1..9bdcdd5fbdc23d1b6d8d5cf695f21add25adbdea 100644 (file)
@@ -458,6 +458,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
                        
                        video::ITexture *texture = m_gamedef->tsrc()->getTextureRaw(fimage);
                        gui::IGUIButton *e = Environment->addButton(rect, this, spec.fid, spec.flabel.c_str());
+                       e->setUseAlphaChannel(true);
                        e->setImage(texture);
                        e->setPressedImage(texture);
                        e->setScaleImage(true);