Skip to content

Commit

Permalink
Only transfer difficulty slider values on commit
Browse files Browse the repository at this point in the history
Closes ppy#30112.
  • Loading branch information
bdach committed Oct 4, 2024
1 parent 86c3e3e commit 7816c41
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osu.Game.Rulesets.Mania/Edit/Setup/ManiaDifficultySection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ private void load()
MaxValue = 10,
Precision = 1,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
specialStyle = new FormCheckBox
Expand All @@ -67,6 +68,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
overallDifficultySlider = new FormSliderBar<float>
Expand All @@ -80,6 +82,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
baseVelocitySlider = new FormSliderBar<double>
Expand All @@ -93,6 +96,7 @@ private void load()
MaxValue = 3.6,
Precision = 0.01f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
tickRateSlider = new FormSliderBar<double>
Expand All @@ -106,6 +110,7 @@ private void load()
MaxValue = 4,
Precision = 1,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
};
Expand Down
7 changes: 7 additions & 0 deletions osu.Game.Rulesets.Osu/Edit/Setup/OsuDifficultySection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
healthDrainSlider = new FormSliderBar<float>
Expand All @@ -55,6 +56,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
approachRateSlider = new FormSliderBar<float>
Expand All @@ -68,6 +70,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
overallDifficultySlider = new FormSliderBar<float>
Expand All @@ -81,6 +84,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
baseVelocitySlider = new FormSliderBar<double>
Expand All @@ -94,6 +98,7 @@ private void load()
MaxValue = 3.6,
Precision = 0.01f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
tickRateSlider = new FormSliderBar<double>
Expand All @@ -107,6 +112,7 @@ private void load()
MaxValue = 4,
Precision = 1,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
stackLeniency = new FormSliderBar<float>
Expand All @@ -120,6 +126,7 @@ private void load()
MaxValue = 1,
Precision = 0.1f
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
};
Expand Down
4 changes: 4 additions & 0 deletions osu.Game.Rulesets.Taiko/Edit/Setup/TaikoDifficultySection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
overallDifficultySlider = new FormSliderBar<float>
Expand All @@ -52,6 +53,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
baseVelocitySlider = new FormSliderBar<double>
Expand All @@ -65,6 +67,7 @@ private void load()
MaxValue = 3.6,
Precision = 0.01f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
tickRateSlider = new FormSliderBar<double>
Expand All @@ -78,6 +81,7 @@ private void load()
MaxValue = 4,
Precision = 1,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
};
Expand Down
6 changes: 6 additions & 0 deletions osu.Game/Screens/Edit/Setup/DifficultySection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
healthDrainSlider = new FormSliderBar<float>
Expand All @@ -53,6 +54,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
approachRateSlider = new FormSliderBar<float>
Expand All @@ -66,6 +68,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
overallDifficultySlider = new FormSliderBar<float>
Expand All @@ -79,6 +82,7 @@ private void load()
MaxValue = 10,
Precision = 0.1f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
baseVelocitySlider = new FormSliderBar<double>
Expand All @@ -92,6 +96,7 @@ private void load()
MaxValue = 3.6,
Precision = 0.01f,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
tickRateSlider = new FormSliderBar<double>
Expand All @@ -105,6 +110,7 @@ private void load()
MaxValue = 4,
Precision = 1,
},
TransferValueOnCommit = true,
TabbableContentContainer = this,
},
};
Expand Down

0 comments on commit 7816c41

Please sign in to comment.