diff options
author | xyzz <zhuravlevilya@ya.ru> | 2012-11-22 09:13:18 -0800 |
---|---|---|
committer | xyzz <zhuravlevilya@ya.ru> | 2012-11-22 09:13:18 -0800 |
commit | a0b5605db8ba7f36d868491d2a2274d2bbd8aec5 (patch) | |
tree | 6fa8dc93e6f3bfae02c446281a4c013dfa9e56d4 | |
parent | 3ba9b263103d2cd5218246b05d19b6485347ae28 (diff) | |
parent | f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f (diff) | |
download | minetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.tar.gz minetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.tar.bz2 minetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.zip |
Merge pull request #268 from khonkhortisan/image_button
Allow transparent image_buttons
-rw-r--r-- | src/guiFormSpecMenu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 7815089b2..4db020c11 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -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); |