Allow transparent image_buttons

This commit is contained in:
Kyle 2012-10-18 12:06:47 -07:00
parent 25cf3757b2
commit f9087d14a3

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