Merge pull request #7364 from furo321/hookcollsize

Use correct max value for "Hook collision width" setting
This commit is contained in:
Robert Müller 2023-10-23 21:36:52 +00:00 committed by GitHub
commit 61ff171fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2868,7 +2868,7 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView)
}
Section.HSplitTop(2 * LineSize, &Button, &Section);
UI()->DoScrollbarOption(&g_Config.m_ClHookCollSize, &g_Config.m_ClHookCollSize, &Button, Localize("Hook collision line width"), 0, 100, &CUI::ms_LinearScrollbarScale, CUI::SCROLLBAR_OPTION_MULTILINE);
UI()->DoScrollbarOption(&g_Config.m_ClHookCollSize, &g_Config.m_ClHookCollSize, &Button, Localize("Hook collision line width"), 0, 20, &CUI::ms_LinearScrollbarScale, CUI::SCROLLBAR_OPTION_MULTILINE);
Section.HSplitTop(2 * LineSize, &Button, &Section);
UI()->DoScrollbarOption(&g_Config.m_ClHookCollAlpha, &g_Config.m_ClHookCollAlpha, &Button, Localize("Hook collision line opacity"), 0, 100, &CUI::ms_LinearScrollbarScale, CUI::SCROLLBAR_OPTION_MULTILINE, "%");