Skip to content
Permalink
Browse files

Show itemstring as tooltip if no item description

  • Loading branch information...
Wuzzy authored and SmallJoker committed Feb 24, 2017
1 parent 9f4916a commit 2cc518dcaffd345c498f671354b3dd504f2f4195
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/guiFormSpecMenu.cpp
@@ -2394,6 +2394,9 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase,
utf8_to_wide(item.getDefinition(m_client->idef()).description);
else
tooltip_text = utf8_to_wide(desc);
// Show itemstring as fallback for easier debugging
if (!item.name.empty() && tooltip_text.empty())
tooltip_text = utf8_to_wide(item.name);
}
if (tooltip_text != L"") {
std::vector<std::wstring> tt_rows = str_split(tooltip_text, L'\n');

0 comments on commit 2cc518d

Please sign in to comment.
You can’t perform that action at this time.