mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 23:03:46 +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["underline"] = "false";
|
||||||
m_root_tag.style["halign"] = "left";
|
m_root_tag.style["halign"] = "left";
|
||||||
m_root_tag.style["color"] = "#EEEEEE";
|
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_active_tags.push_front(&m_root_tag);
|
||||||
m_style = m_root_tag.style;
|
m_style = m_root_tag.style;
|
||||||
@ -115,7 +115,6 @@ ParsedText::ParsedText(const wchar_t *text)
|
|||||||
// Default simple tags definitions
|
// Default simple tags definitions
|
||||||
StyleList style;
|
StyleList style;
|
||||||
|
|
||||||
style["hovercolor"] = "#FF0000";
|
|
||||||
style["color"] = "#0000FF";
|
style["color"] = "#0000FF";
|
||||||
style["underline"] = "true";
|
style["underline"] = "true";
|
||||||
m_elementtags["action"] = style;
|
m_elementtags["action"] = style;
|
||||||
|
Loading…
Reference in New Issue
Block a user