diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-30 10:56:54 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-30 10:56:54 -0700 |
commit | d57be9d49c55bc0b85eb8f539ff2029518cfafc0 (patch) | |
tree | df3726aab3d3a4227330496e3b54803a713b1e7d /src/gui/shortcutcontainer.cpp | |
parent | cc37b4a9153379d5c5529ba85305d36efba2cd85 (diff) | |
download | mana-client-d57be9d49c55bc0b85eb8f539ff2029518cfafc0.tar.gz mana-client-d57be9d49c55bc0b85eb8f539ff2029518cfafc0.tar.bz2 mana-client-d57be9d49c55bc0b85eb8f539ff2029518cfafc0.tar.xz mana-client-d57be9d49c55bc0b85eb8f539ff2029518cfafc0.zip |
Exposed most gui elements to take alpha values. There are still a few
spots that could also be fixed up as well, but require other methods to
fix them (the filled color rectangles on the progress bars, as well as
the text on them as well, as an example).
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/shortcutcontainer.cpp')
-rw-r--r-- | src/gui/shortcutcontainer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/shortcutcontainer.cpp b/src/gui/shortcutcontainer.cpp index d03bc809..62b2d382 100644 --- a/src/gui/shortcutcontainer.cpp +++ b/src/gui/shortcutcontainer.cpp @@ -21,6 +21,7 @@ #include "shortcutcontainer.h" +#include "../configuration.h" #include "../graphics.h" #include "../inventory.h" #include "../item.h" @@ -33,13 +34,14 @@ #include "../utils/tostring.h" +float ShortcutContainer::mAlpha = config.getValue("guialpha", 0.8); + ShortcutContainer::ShortcutContainer(): mGridWidth(1), mGridHeight(1) { } - void ShortcutContainer::widgetResized(const gcn::Event &event) { mGridWidth = getWidth() / mBoxWidth; |