mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use getters of OriginalX
and XOffset
This commit is contained in:
@ -33,11 +33,11 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
if (hitObject is BananaShower) return;
|
if (hitObject is BananaShower) return;
|
||||||
|
|
||||||
// TODO: confine in bounds
|
// TODO: confine in bounds
|
||||||
hitObject.OriginalXBindable.Value += deltaX;
|
hitObject.OriginalX += deltaX;
|
||||||
|
|
||||||
// Move the nested hit objects to give an instant result before nested objects are recreated.
|
// Move the nested hit objects to give an instant result before nested objects are recreated.
|
||||||
foreach (var nested in hitObject.NestedHitObjects.OfType<CatchHitObject>())
|
foreach (var nested in hitObject.NestedHitObjects.OfType<CatchHitObject>())
|
||||||
nested.OriginalXBindable.Value += deltaX;
|
nested.OriginalX += deltaX;
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -64,7 +64,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
/// This value is the original <see cref="X"/> value plus the offset applied by the beatmap processing.
|
/// This value is the original <see cref="X"/> value plus the offset applied by the beatmap processing.
|
||||||
/// Use <see cref="OriginalX"/> if a value not affected by the offset is desired.
|
/// Use <see cref="OriginalX"/> if a value not affected by the offset is desired.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public float EffectiveX => OriginalXBindable.Value + XOffsetBindable.Value;
|
public float EffectiveX => OriginalX + XOffset;
|
||||||
|
|
||||||
public double TimePreempt { get; set; } = 1000;
|
public double TimePreempt { get; set; } = 1000;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user