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:
parent
eb6e2c11b1
commit
87291ea44a
7 changed files with 21 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue