diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2020-01-22 19:09:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 19:09:11 +0100 |
commit | 1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec (patch) | |
tree | c49c16a69e9c555141960b4bca22a88df9b17a61 /src/client | |
parent | fab3f5f7c8ce0cbfc27e509f065e3f4cfe28c514 (diff) | |
download | minetest-1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec.tar.gz minetest-1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec.tar.bz2 minetest-1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec.zip |
StaticText/EnrichedString: Styling support (#9187)
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/gameui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index 674d07fa6..3c7ed54b2 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -155,7 +155,7 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_ m_guitext2->setVisible(m_flags.show_debug); - setStaticText(m_guitext_info, translate_string(m_infotext).c_str()); + setStaticText(m_guitext_info, m_infotext.c_str()); m_guitext_info->setVisible(m_flags.show_hud && g_menumgr.menuCount() == 0); static const float statustext_time_max = 1.5f; @@ -169,7 +169,7 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_ } } - setStaticText(m_guitext_status, translate_string(m_statustext).c_str()); + setStaticText(m_guitext_status, m_statustext.c_str()); m_guitext_status->setVisible(!m_statustext.empty()); if (!m_statustext.empty()) { |