Set size of text when changing slider of cl_text_entities_size.

This commit is contained in:
furo 2023-11-15 20:54:27 +01:00
parent 32f3f9e03a
commit 740049a454

View file

@ -3085,8 +3085,14 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
g_Config.m_ClTextEntities ^= 1;
if(g_Config.m_ClTextEntities)
{
int PreviousSize = g_Config.m_ClTextEntitiesSize;
UI()->DoScrollbarOption(&g_Config.m_ClTextEntitiesSize, &g_Config.m_ClTextEntitiesSize, &Button, Localize("Size"), 0, 100);
if(PreviousSize != g_Config.m_ClTextEntitiesSize)
m_pClient->m_MapImages.SetTextureScale(g_Config.m_ClTextEntitiesSize);
}
Left.HSplitTop(20.0f, &Button, &Left);
Button.VSplitMid(&LeftLeft, &Button);