Improve level metadata display and font handling

- If the level font is higher than 10 pixels, the third description
  line (Desc3) is disabled and unavailable. CJK languages require less
  characters to convey the same message (140 characters caused people
  to cram tweets in all languages except CJK) and this gives us enough
  room in the levels list without having to cram the metadata even more
  than it already was or showing less levels per page.
- The "Untitled Level" and "by Unknown" now selectively show up in the
  interface font instead of the level font.
This commit is contained in:
Dav999-v
2023-01-19 20:15:17 +01:00
committed by Misa Elizabeth Kai
parent 653eee505b
commit 8d5e3b1a8a
5 changed files with 122 additions and 47 deletions

View File

@@ -6266,7 +6266,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
{
text[ii] = SDL_tolower(text[ii]);
}
option(text);
option(text, true, cl.ListOfMetaData[i].title_is_gettext ? PR_FONT_INTERFACE : PR_FONT_8X8); // TODO level font
}
}
if (cl.ListOfMetaData.size() > 8)