1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-06 17:35:14 -05:00

Merge pull request #268 from khonkhortisan/image_button

Allow transparent image_buttons
This commit is contained in:
xyzz 2012-11-22 09:13:18 -08:00
commit a0b5605db8

View File

@ -476,6 +476,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);