From f634a2811c613d6ec43915841b37b66d54e2d4d4 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 10 Jan 2009 13:42:43 -0700 Subject: Made a few more window components use a transparency under OpenGL, as well as some code style cleanups in the skill dialog. Signed-off-by: Ira Rice --- src/gui/itemshortcutcontainer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/itemshortcutcontainer.cpp') diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index f0ab8274..b576e843 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -21,6 +21,7 @@ #include "itemshortcutcontainer.h" +#include "../configuration.h" #include "../graphics.h" #include "../inventory.h" #include "../item.h" @@ -47,6 +48,8 @@ ItemShortcutContainer::ItemShortcutContainer(): mBackgroundImg = resman->getImage("graphics/gui/item_shortcut_bgr.png"); mMaxItems = itemShortcut->getItemCount(); + mBackgroundImg->setAlpha(config.getValue("guialpha", 0.8)); + mBoxHeight = 42; mBoxWidth = 36; } -- cgit v1.2.3-70-g09d2