From 63e8224636cec3ede1dbb8b78954a8e3a82407a5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 23 Aug 2021 20:13:17 +0000 Subject: Fix 6th line of infotext being cut off in half (#11456) --- src/client/gameui.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index 028052fe6..9b77cf6ff 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -71,11 +71,14 @@ void GameUI::init() chat_font_size, FM_Unspecified)); } - // At the middle of the screen - // Object infos are shown in this + + // Infotext of nodes and objects. + // If in debug mode, object debug infos shown here, too. + // Located on the left on the screen, below chat. u32 chat_font_height = m_guitext_chat->getActiveFont()->getDimension(L"Ay").Height; m_guitext_info = gui::StaticText::add(guienv, L"", - core::rect(0, 0, 400, g_fontengine->getTextHeight() * 5 + 5) + + // Size is limited; text will be truncated after 6 lines. + core::rect(0, 0, 400, g_fontengine->getTextHeight() * 6) + v2s32(100, chat_font_height * (g_settings->getU16("recent_chat_messages") + 3)), false, true, guiroot); -- cgit v1.2.3