summaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2018-04-23 19:50:50 +0200
committerrubenwardy <rw@rubenwardy.com>2018-04-23 18:50:50 +0100
commit9577a4396aa139a748878a11eec8922ce92de575 (patch)
treeef2f879b20af3ef260397492dfa24ebdced5c3c7 /src/gui/guiFormSpecMenu.cpp
parent12a8f8826d54362d70aae8524aa88118f2d84692 (diff)
downloadminetest-9577a4396aa139a748878a11eec8922ce92de575.tar.gz
minetest-9577a4396aa139a748878a11eec8922ce92de575.tar.bz2
minetest-9577a4396aa139a748878a11eec8922ce92de575.zip
Formspecs: Allow setting alpha value for the box[] element
Diffstat (limited to 'src/gui/guiFormSpecMenu.cpp')
-rw-r--r--src/gui/guiFormSpecMenu.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index e582c30de..12caf39eb 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -1560,7 +1560,7 @@ void GUIFormSpecMenu::parseBox(parserData* data, const std::string &element)
video::SColor tmp_color;
- if (parseColorString(parts[2], tmp_color, false)) {
+ if (parseColorString(parts[2], tmp_color, false, 0x8C)) {
BoxDrawSpec spec(pos, geom, tmp_color);
m_boxes.push_back(spec);
@@ -2515,8 +2515,6 @@ void GUIFormSpecMenu::drawMenu()
for (const GUIFormSpecMenu::BoxDrawSpec &spec : m_boxes) {
irr::video::SColor todraw = spec.color;
- todraw.setAlpha(140);
-
core::rect<s32> rect(spec.pos.X,spec.pos.Y,
spec.pos.X + spec.geom.X,spec.pos.Y + spec.geom.Y);