Skip to content

Commit

Permalink
Update tater settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SollyBunny committed Nov 20, 2024
1 parent 61d3b2f commit 976edb5
Show file tree
Hide file tree
Showing 3 changed files with 428 additions and 598 deletions.
12 changes: 6 additions & 6 deletions src/game/client/components/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,11 @@ void CHud::RenderTextInfo()
{
if(NumInTeam > 1 && NumInTeam - NumFrozen == 1)
{
char aBuf[64];
str_format(aBuf, sizeof(aBuf), "%s", g_Config.m_ClNotifyWhenLastText);
TextRender()->TextColor(color_cast<ColorRGBA>(ColorHSLA(g_Config.m_ClNotifyWhenLastColor)));
TextRender()->Text(170, 4, 14, aBuf, -1.0f);
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);
const float Size = 11.0f;
CUIRect BoundingBox{m_Width / 4.0f - m_Width / 8.0f, 2.0f, m_Width / 4.0f, Size};
TextRender()->TextColor(color_cast<ColorRGBA>(ColorHSLA(g_Config.m_ClNotifyWhenLastColor)));
Ui()->DoLabel(&BoundingBox, g_Config.m_ClNotifyWhenLastText, Size, TEXTALIGN_CENTER);
TextRender()->TextColor(TextRender()->DefaultTextColor());
}
}
//Show freeze text
Expand All @@ -659,7 +659,7 @@ void CHud::RenderTextInfo()
else if(g_Config.m_ClShowFrozenText == 2)
str_format(aBuf, sizeof(aBuf), "%d / %d", NumFrozen, NumInTeam);
if(g_Config.m_ClShowFrozenText > 0)
TextRender()->Text(m_Width / 2 - TextRender()->TextWidth(10, aBuf, -1, -1.0f) / 2, 12, 10, aBuf, -1.0f);
TextRender()->Text(m_Width / 2.0f - TextRender()->TextWidth(10.f, aBuf) / 2.0f, 12.0f, 10.0f, aBuf);

//str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientId].m_PrevPredicted.m_FreezeEnd);
//str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClWhatsMyPing);
Expand Down
1 change: 1 addition & 0 deletions src/game/client/components/menus.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ class CMenus : public CComponent
void PopupConfirmSwitchServer();
void RenderServerbrowserFilters(CUIRect View);
void ResetServerbrowserFilters();
void OpenTClientDiscord();
void RenderServerbrowserDDNetFilter(CUIRect View,
IFilterList &Filter,
float ItemHeight, int MaxItems, int ItemsPerRow,
Expand Down
Loading

0 comments on commit 976edb5

Please sign in to comment.