From e9dd22b0ba76366259f4078296a620f93b806f9c Mon Sep 17 00:00:00 2001 From: Halynn Date: Tue, 10 Dec 2024 01:48:34 -0500 Subject: [PATCH] removed blurred ellipses under five main menu options --- src/guiengine/skin.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index 9a674c75b1..727e1d4647 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -1400,6 +1400,7 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget, else { bool use_glow = true; + bool use_square = true; if (widget->m_event_handler != NULL && widget->m_event_handler->m_properties[PROP_SQUARE] == "true") @@ -1410,6 +1411,13 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget, ->m_properties[PROP_SQUARE] == "true") use_glow = false; + if (widget->m_properties[PROP_ID] == "story" || widget->m_properties[PROP_ID] == "new" + || widget->m_properties[PROP_ID] == "multiplayer" || widget->m_properties[PROP_ID] == "online" + || widget->m_properties[PROP_ID] == "addons") + { + use_glow = false; use_square = false; + } + /* in combo ribbons, always show selection */ RibbonWidget* parentRibbonWidget = NULL; bool always_show_selection = false; @@ -1601,7 +1609,7 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget, /*alpha*/true); } // if we're not using glow, draw square focus instead - else + else if (use_square) { drawBoxFromStretchableTexture(parentRibbonWidget, rect, SkinConfig::m_render_params["squareFocusHalo1::neutral"]);