mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Allow transparent image_buttons
This commit is contained in:
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user