From 1c9bb68bd1c42681a591909be261eb6b9ca45a41 Mon Sep 17 00:00:00 2001 From: JerryALT Date: Sun, 31 Mar 2024 21:51:16 +0300 Subject: [PATCH] [Toast]: Changed the fontHandle if console ui is active. --- src/Components/Modules/Toast.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/Toast.cpp b/src/Components/Modules/Toast.cpp index adc1b26..07f5a52 100644 --- a/src/Components/Modules/Toast.cpp +++ b/src/Components/Modules/Toast.cpp @@ -115,7 +115,8 @@ namespace Components float desc = xPos + 80.0f; Game::R_AddCmdDrawTextASM(toast->title.data(), std::numeric_limits::max(), Game::sharedUiInfo->assets.objectiveFont, static_cast(title), static_cast(height - bHeight / 2 + cornerSize * 2 + 7), fontSize, fontSize, 0, wColor, 6); // Title - Game::R_AddCmdDrawTextASM(toast->desc.data(), std::numeric_limits::max(), Game::sharedUiInfo->assets.bigFont, static_cast(desc), static_cast(height - bHeight / 2 + cornerSize * 2 + 33), descSize, descSize, 0, wColor, 6); // Description + Game::Font_s* fontHandle = Dvars::console_menu_style->current.enabled ? Game::sharedUiInfo->assets.smallFont : Game::sharedUiInfo->assets.bigFont; + Game::R_AddCmdDrawTextASM(toast->desc.data(), std::numeric_limits::max(), fontHandle, static_cast(desc), static_cast(height - bHeight / 2 + cornerSize * 2 + 33), descSize, descSize, 0, wColor, 6); // Description } else {