# Delay showing tooltips, stated in milliseconds.
tooltip_show_delay (Tooltip delay) int 400
+# Append itemstring to tooltip
+tooltip_append_itemstring (Append itemstring) bool false
+
# Whether freetype fonts are used, requires freetype support to be compiled in.
freetype (Freetype fonts) bool true
settings->setDefault("keymap_slot21", "");
settings->setDefault("keymap_slot22", "");
settings->setDefault("keymap_slot23", "");
- settings->setDefault("enable_build_where_you_stand", "false" );
- settings->setDefault("3d_mode", "none");
- settings->setDefault("3d_paralax_strength", "0.025");
- settings->setDefault("aux1_descends", "false");
- settings->setDefault("doubletap_jump", "false");
- settings->setDefault("always_fly_fast", "true");
- settings->setDefault("directional_colored_fog", "true");
- settings->setDefault("tooltip_show_delay", "400");
- settings->setDefault("zoom_fov", "15");
// Some (temporary) keys for debugging
settings->setDefault("keymap_quicktune_prev", "KEY_HOME");
settings->setDefault("3d_mode", "none");
settings->setDefault("3d_paralax_strength", "0.025");
settings->setDefault("tooltip_show_delay", "400");
+ settings->setDefault("tooltip_append_itemstring", "false");
settings->setDefault("zoom_fov", "15");
settings->setDefault("fps_max", "60");
settings->setDefault("pause_fps_max", "20");
m_doubleclickdetect[1].pos = v2s32(0, 0);
m_tooltip_show_delay = (u32)g_settings->getS32("tooltip_show_delay");
+ m_tooltip_append_itemstring = g_settings->getBool("tooltip_append_itemstring");
}
GUIFormSpecMenu::~GUIFormSpecMenu()
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 (!item.name.empty()) {
+ if (tooltip_text.empty())
+ tooltip_text = utf8_to_wide(item.name);
+ if (m_tooltip_append_itemstring)
+ tooltip_text += utf8_to_wide(" [" + item.name + "]");
+ }
}
if (!tooltip_text.empty()) {
showTooltip(tooltip_text, m_default_tooltip_color,