JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
1.97k stars 606 forks source link

Improve console and font handling #1184

Closed Daggolin closed 5 months ago

Daggolin commented 8 months ago

This pull request aims to slightly improve the console behavior.

1) It replaces the SDLK_CARET shift-requirement when trying to open the console in scancode mode (cl_consoleUseScanCode) with the cvar check from jk2mv: cl_consoleShiftRequirement (prefixed mv_ instead of cl_ on jk2mv).

2) It adds a cvar to set the height of the console: con_height.

Daggolin commented 7 months ago

Added additional features and fixes to this pull request:

  1. Console features from jk2mv (con_scale, con_timestamp, ...).

  2. Terminal and qconsole.log timestamps (cvar: com_timestamps).

  3. Fix ocr_a font disappearing from consoles on renderer restart.

  4. Fix UI module using incorrect font handles.

  5. Support for sharper fonts (cvar: r_fontSharpness).