mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 05:21:51 +02:00
Fix item tooltip background color not working
This commit is contained in:
parent
55dba1bc6d
commit
09d7fbd645
|
@ -3718,6 +3718,7 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text,
|
|||
{
|
||||
EnrichedString ntext(text);
|
||||
ntext.setDefaultColor(color);
|
||||
if (!ntext.hasBackground())
|
||||
ntext.setBackground(bgcolor);
|
||||
|
||||
setStaticText(m_tooltip_element, ntext);
|
||||
|
|
Loading…
Reference in a new issue