aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorxyzz <zhuravlevilya@ya.ru>2012-11-22 09:13:18 -0800
committerxyzz <zhuravlevilya@ya.ru>2012-11-22 09:13:18 -0800
commita0b5605db8ba7f36d868491d2a2274d2bbd8aec5 (patch)
tree6fa8dc93e6f3bfae02c446281a4c013dfa9e56d4 /src/guiFormSpecMenu.cpp
parent3ba9b263103d2cd5218246b05d19b6485347ae28 (diff)
parentf9087d14a3655af0a8f47db819b1f9b5dcb9bd7f (diff)
downloadminetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.tar.gz
minetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.tar.bz2
minetest-a0b5605db8ba7f36d868491d2a2274d2bbd8aec5.zip
Merge pull request #268 from khonkhortisan/image_button
Allow transparent image_buttons
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp1
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);