From 8f2dbd5e2f9035b67d92ce0acbbe1a1722c5036d Mon Sep 17 00:00:00 2001 From: Nils Eikelenboom Date: Tue, 24 Sep 2024 21:43:01 +0200 Subject: [PATCH] Add extra increased font size to Windowed Console 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. --- Templates/BaseGame/game/tools/gui/profiles.ed.tscript | 5 +++++ .../tools/windowConsole/scripts/window_console.tscript | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/Templates/BaseGame/game/tools/gui/profiles.ed.tscript b/Templates/BaseGame/game/tools/gui/profiles.ed.tscript index 569c4ba60c..17390ad0ff 100644 --- a/Templates/BaseGame/game/tools/gui/profiles.ed.tscript +++ b/Templates/BaseGame/game/tools/gui/profiles.ed.tscript @@ -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) { diff --git a/Templates/BaseGame/game/tools/windowConsole/scripts/window_console.tscript b/Templates/BaseGame/game/tools/windowConsole/scripts/window_console.tscript index 4d04d1228a..00271f3127 100644 --- a/Templates/BaseGame/game/tools/windowConsole/scripts/window_console.tscript +++ b/Templates/BaseGame/game/tools/windowConsole/scripts/window_console.tscript @@ -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; @@ -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(); } }