mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +08:00
Rename constants
This commit is contained in:
parent
ca68d94cf7
commit
748f7fcd8b
@ -210,8 +210,8 @@ namespace osu.Game.Tournament.Screens
|
|||||||
|
|
||||||
private class ResolutionSelector : ActionableInfo
|
private class ResolutionSelector : ActionableInfo
|
||||||
{
|
{
|
||||||
private const int height_min_allowed_value = 480;
|
private const int minimum_window_height = 480;
|
||||||
private const int height_max_allowed_value = 2160; // 4k
|
private const int maximum_window_height = 2160; // 4k
|
||||||
public new Action<int> Action;
|
public new Action<int> Action;
|
||||||
|
|
||||||
private OsuNumberBox numberBox;
|
private OsuNumberBox numberBox;
|
||||||
@ -234,11 +234,11 @@ namespace osu.Game.Tournament.Screens
|
|||||||
{
|
{
|
||||||
// at this point, the only reason we can arrive here is if the input number was too big to parse into an int
|
// at this point, the only reason we can arrive here is if the input number was too big to parse into an int
|
||||||
// so clamp to max allowed value
|
// so clamp to max allowed value
|
||||||
number = height_max_allowed_value;
|
number = maximum_window_height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
number = Math.Clamp(number, height_min_allowed_value, height_max_allowed_value);
|
number = Math.Clamp(number, minimum_window_height, maximum_window_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// in case number got clamped, reset number in numberBox
|
// in case number got clamped, reset number in numberBox
|
||||||
|
Loading…
Reference in New Issue
Block a user