Skip to content

Commit

Permalink
Add extra increased font size to Windowed Console
Browse files Browse the repository at this point in the history
Added extra large font to the windowed console.  Use the [-A]  [A+] buttons to change the size.

Preferably would introduce "lineSpacing"  to the GuiConsole object for improved readability; as well to store this into the prefs.
  • Loading branch information
Eikelenboom committed Sep 24, 2024
1 parent 02b86ea commit 8f2dbd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Templates/BaseGame/game/tools/gui/profiles.ed.tscript
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,11 @@ new GuiControlProfile(ToolsGuiConsoleLargeProfile : ToolsGuiConsoleProfile)
{
fontSize = $GUI::fontSize[16];
};
if(!isObject(ToolsGuiConsoleXLProfile))
new GuiControlProfile(ToolsGuiConsoleXLProfile : ToolsGuiConsoleProfile)
{
fontSize = $GUI::fontSize[18];
};
if(!isObject(ToolsGuiConsoleTextProfile))
new GuiControlProfile(ToolsGuiConsoleTextProfile)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ function windowConsoleDlg::incFont()
{
switch ($Con::font)
{
case 16:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleXLProfile);
$Con::font = 18;
windowConsoleMessageLogView.refresh();
case 14:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleLargeProfile);
$Con::font = 16;
Expand All @@ -275,6 +279,10 @@ function windowConsoleDlg::decFont()
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleMediumProfile);
$Con::font = 14;
windowConsoleMessageLogView.refresh();
case 18:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleLargeProfile);
$Con::font = 16;
windowConsoleMessageLogView.refresh();
}
}

Expand Down

0 comments on commit 8f2dbd5

Please sign in to comment.