1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 09:12:58 +08:00
osu-lazer/osu.Game/Overlays/Settings
Bartłomiej Dach 4a9f080f3c
Accept full range of int in SettingsNumberBox
This fixes stack overflow exceptions that would arise when a
`Current.Value` of 1 billion or more was set on a `SettingsNumberBox`.
The stack overflow was caused by the "maximum 9 digits" spec. If a value
technically within `int` bounds, but larger than 1 billion (in the range
[1,000,000,000; 2,147,483,647], to be more precise), a feedback loop
between the setting control's `Current` and its inner text box's
`Current` would occur, wherein the last digit would be trimmed and then
re-appended again forevermore.

To resolve, remove the offending spec and rely on `int.TryParse`
entirely to be able to discern overflow range. Additionally, UX of the
text box is slightly changed to notify when the `int` range is exceeded
with a red flash.

This behaviour would not have been possible to implement without recent
framework-side fixes to text box (removal of text set scheduling).
2021-11-22 20:49:14 +01:00
..
Sections Move HoverClickSounds to the clickable button 2021-11-08 14:32:00 +01:00
DangerousSettingsButton.cs Use rounded button in settings sidebar 2021-10-10 21:45:41 +02:00
ISettingsItem.cs Update song select statistics when mod changes settings 2019-12-20 18:01:35 +09:00
OutlinedTextBox.cs Refactor SeedSettingsControl and related controls 2021-06-26 11:19:14 +08:00
RulesetSettingsSubsection.cs Turn on warnings, resolve issues 2019-04-25 17:36:17 +09:00
SettingsButton.cs Use rounded button in settings sidebar 2021-10-10 21:45:41 +02:00
SettingsCheckbox.cs Remove simple localisable .ToString() calls 2021-11-02 21:42:02 +01:00
SettingsDropdown.cs Adjust SettingsItem to accommodate new default value indicator 2021-10-17 21:50:03 +02:00
SettingsEnumDropdown.cs Revert ThemedDropdown-related changes 2021-10-13 21:57:50 +02:00
SettingsFooter.cs Fix ruleset icons overflowing from settings footer 2021-07-23 19:07:54 -07:00
SettingsHeader.cs Use horizontally symmetrical padding rather than margin 2021-11-12 20:28:42 +01:00
SettingsItem.cs Remove simple localisable .ToString() calls 2021-11-02 21:42:02 +01:00
SettingsNoticeText.cs Fix settings notice text class tinting everything with yellow 2021-08-14 20:14:28 +03:00
SettingsNumberBox.cs Accept full range of int in SettingsNumberBox 2021-11-22 20:49:14 +01:00
SettingsSection.cs Adjust vertical spacings in individual subsections 2021-10-10 00:34:11 +02:00
SettingsSlider.cs Adjust SettingsItem to accommodate new default value indicator 2021-10-17 21:50:03 +02:00
SettingsSubsection.cs Adjust vertical spacings in individual subsections 2021-10-10 00:34:11 +02:00
SettingsTextBox.cs Remove grid usage in SettingsItem 2021-10-18 22:07:32 +02:00
Sidebar.cs Share sidebar colouring logic by splitting out SidebarIconButton 2021-10-10 00:34:12 +02:00
SidebarButton.cs Remove HoverTarget shared state update path 2021-10-10 11:55:47 +09:00
SidebarIconButton.cs Remove HoverTarget shared state update path 2021-10-10 11:55:47 +09:00