mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Formspecs: Allow setting alpha value for the box[] element
This commit is contained in:
parent
12a8f8826d
commit
9577a4396a
5 changed files with 15 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue