mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 08:57:30 +01:00
Hypertext: Fix hovercolor not working in global tag (#9582)
This commit is contained in:
parent
ea30b89d3f
commit
0eb3072819
@ -107,7 +107,7 @@ ParsedText::ParsedText(const wchar_t *text)
|
||||
m_root_tag.style["underline"] = "false";
|
||||
m_root_tag.style["halign"] = "left";
|
||||
m_root_tag.style["color"] = "#EEEEEE";
|
||||
m_root_tag.style["hovercolor"] = m_root_tag.style["color"];
|
||||
m_root_tag.style["hovercolor"] = "#FF0000";
|
||||
|
||||
m_active_tags.push_front(&m_root_tag);
|
||||
m_style = m_root_tag.style;
|
||||
@ -115,7 +115,6 @@ ParsedText::ParsedText(const wchar_t *text)
|
||||
// Default simple tags definitions
|
||||
StyleList style;
|
||||
|
||||
style["hovercolor"] = "#FF0000";
|
||||
style["color"] = "#0000FF";
|
||||
style["underline"] = "true";
|
||||
m_elementtags["action"] = style;
|
||||
|
Loading…
Reference in New Issue
Block a user