mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
CI fixes and small tweaks
This commit is contained in:
parent
90ec6895d1
commit
ceeaf5b67c
@ -108,8 +108,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
BeginPlacement();
|
||||
|
||||
double? nearestSliderVelocity = (editorBeatmap
|
||||
.HitObjects
|
||||
.LastOrDefault(h => h is Slider && h.GetEndTime() < HitObject.StartTime) as Slider)?.SliderVelocityMultiplier;
|
||||
.HitObjects
|
||||
.LastOrDefault(h => h is Slider && h.GetEndTime() < HitObject.StartTime) as Slider)?.SliderVelocityMultiplier;
|
||||
|
||||
HitObject.SliderVelocityMultiplier = nearestSliderVelocity ?? 1;
|
||||
HitObject.Position = ToLocalSpace(result.ScreenSpacePosition);
|
||||
|
@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
sliderTolerance.BindValueChanged(v =>
|
||||
{
|
||||
float newValue = v.NewValue / 33f;
|
||||
if (!Precision.AlmostEquals(newValue, Tolerance.Value, 1e-7f))
|
||||
if (!Precision.AlmostEquals(newValue, Tolerance.Value))
|
||||
Tolerance.Value = newValue;
|
||||
});
|
||||
Tolerance.BindValueChanged(v =>
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
sliderCornerThreshold.BindValueChanged(v =>
|
||||
{
|
||||
float newValue = v.NewValue / 100f;
|
||||
if (!Precision.AlmostEquals(newValue, CornerThreshold.Value, 1e-7f))
|
||||
if (!Precision.AlmostEquals(newValue, CornerThreshold.Value))
|
||||
CornerThreshold.Value = newValue;
|
||||
});
|
||||
CornerThreshold.BindValueChanged(v =>
|
||||
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
public void AttachToToolbox(ExpandingToolboxContainer toolboxContainer)
|
||||
{
|
||||
toolboxContainer.Add(new EditorToolboxGroup("drawing")
|
||||
toolboxContainer.Add(new EditorToolboxGroup("slider")
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user