mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Set size of text when changing slider of cl_text_entities_size
.
This commit is contained in:
parent
32f3f9e03a
commit
740049a454
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue