forked from Mirrorlandia_minetest/minetest
Merge pull request #268 from khonkhortisan/image_button
Allow transparent image_buttons
This commit is contained in:
commit
a0b5605db8
@ -476,6 +476,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