diff options
author | Kyle <kyle.kylina@gmail.com> | 2012-10-18 12:06:47 -0700 |
---|---|---|
committer | Kyle <kyle.kylina@gmail.com> | 2012-10-18 12:06:47 -0700 |
commit | f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f (patch) | |
tree | d460526c2cba829b40ab3c86361010687dc4d00f | |
parent | 25cf3757b29a0397e201a4719788ead3dc76ec94 (diff) | |
download | minetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.tar.gz minetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.tar.bz2 minetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.zip |
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 ed44e441b..9bdcdd5fb 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -458,6 +458,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); |