[Toast]: Changed the fontHandle if console ui is active.
This commit is contained in:
parent
e29fb79d36
commit
1c9bb68bd1
@ -115,7 +115,8 @@ namespace Components
|
|||||||
float desc = xPos + 80.0f;
|
float desc = xPos + 80.0f;
|
||||||
|
|
||||||
Game::R_AddCmdDrawTextASM(toast->title.data(), std::numeric_limits<int>::max(), Game::sharedUiInfo->assets.objectiveFont, static_cast<float>(title), static_cast<float>(height - bHeight / 2 + cornerSize * 2 + 7), fontSize, fontSize, 0, wColor, 6); // Title
|
Game::R_AddCmdDrawTextASM(toast->title.data(), std::numeric_limits<int>::max(), Game::sharedUiInfo->assets.objectiveFont, static_cast<float>(title), static_cast<float>(height - bHeight / 2 + cornerSize * 2 + 7), fontSize, fontSize, 0, wColor, 6); // Title
|
||||||
Game::R_AddCmdDrawTextASM(toast->desc.data(), std::numeric_limits<int>::max(), Game::sharedUiInfo->assets.bigFont, static_cast<float>(desc), static_cast<float>(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<int>::max(), fontHandle, static_cast<float>(desc), static_cast<float>(height - bHeight / 2 + cornerSize * 2 + 33), descSize, descSize, 0, wColor, 6); // Description
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user