From fc6ecc7dbd62723463410f9c9199b2f8ca6a35e7 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 18 Sep 2021 17:40:41 +0300 Subject: [PATCH] Fix html,body background not using container opacity --- nel/src/gui/group_html.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nel/src/gui/group_html.cpp b/nel/src/gui/group_html.cpp index 5d7a66eed..021a3691a 100644 --- a/nel/src/gui/group_html.cpp +++ b/nel/src/gui/group_html.cpp @@ -4120,6 +4120,22 @@ namespace NLGUI void CGroupHTML::draw () { + uint8 CurrentAlpha = 255; + // search a parent container + CInterfaceGroup *gr = getParent(); + while (gr) + { + if (gr->isGroupContainer()) + { + CGroupContainer *gc = static_cast(gr); + CurrentAlpha = gc->getCurrentContainerAlpha(); + break; + } + gr = gr->getParent(); + } + m_HtmlBackground.CurrentAlpha = CurrentAlpha; + m_BodyBackground.CurrentAlpha = CurrentAlpha; + m_HtmlBackground.draw(); m_BodyBackground.draw(); CGroupScrollText::draw ();