From f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 18 Oct 2012 12:06:47 -0700 Subject: [PATCH] Allow transparent image_buttons --- src/guiFormSpecMenu.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1