mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Combine DisplayRadius and Scale to DisplaySize
This commit is contained in:
@ -21,7 +21,9 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
||||
public Bindable<Color4> AccentColour { get; } = new Bindable<Color4>();
|
||||
public Bindable<bool> HyperDash { get; } = new Bindable<bool>();
|
||||
|
||||
float IHasCatchObjectState.Scale => Scale.X;
|
||||
public Vector2 DisplaySize => Size * Scale;
|
||||
|
||||
public float DisplayRotation => Rotation;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this hit object should stay on the catcher plate when the object is caught by the catcher.
|
||||
@ -45,8 +47,8 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
||||
public virtual void CopyStateFrom(IHasCatchObjectState objectState)
|
||||
{
|
||||
HitObject = objectState.HitObject;
|
||||
Scale = new Vector2(objectState.Scale);
|
||||
Rotation = objectState.Rotation;
|
||||
Scale = Vector2.Divide(objectState.DisplaySize, Size);
|
||||
Rotation = objectState.DisplayRotation;
|
||||
AccentColour.Value = objectState.AccentColour.Value;
|
||||
HyperDash.Value = objectState.HyperDash.Value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user