1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 08:55:01 -05:00

Allow transparent image_buttons

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

View 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);