1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Show infotext with description for item entities

This commit is contained in:
RealBadAngel 2016-01-08 15:59:36 +01:00 committed by paramat
parent eb6e2c11b1
commit 87291ea44a
7 changed files with 21 additions and 2 deletions

View file

@ -3732,8 +3732,11 @@ void Game::handlePointingAtObject(GameRunData *runData,
{
infotext = utf8_to_wide(runData->selected_object->infoText());
if (infotext == L"" && show_debug) {
infotext = utf8_to_wide(runData->selected_object->debugInfoText());
if (show_debug) {
if (infotext != L"") {
infotext += L"\n";
}
infotext += utf8_to_wide(runData->selected_object->debugInfoText());
}
if (input->getLeftState()) {