diff options
author | Wuzzy <wuzzy2@mail.ru> | 2019-03-17 13:55:02 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-03-17 13:55:02 +0100 |
commit | 9f1b98b9978fa90dc939663a73f17727f9e32425 (patch) | |
tree | 57334b4686c908c5c5f2be2ad4e30c3a46b6308f /src/gui | |
parent | d50feb89debf209a11426b2e8f44d90d64ed6cc2 (diff) | |
download | minetest-9f1b98b9978fa90dc939663a73f17727f9e32425.tar.gz minetest-9f1b98b9978fa90dc939663a73f17727f9e32425.tar.bz2 minetest-9f1b98b9978fa90dc939663a73f17727f9e32425.zip |
Add newline before itemstring in item tooltip (#8213)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 6c404728f..54434931e 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2425,7 +2425,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int layer, if (tooltip_text.empty()) tooltip_text = utf8_to_wide(item.name); else if (m_tooltip_append_itemname) - tooltip_text += utf8_to_wide(" [" + item.name + "]"); + tooltip_text += utf8_to_wide("\n[" + item.name + "]"); } } if (!tooltip_text.empty()) { |