mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Make colouring for bubble more intuitive and remove unnecessary alpha assignment
This commit is contained in:
@ -177,8 +177,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
protected override void PrepareForUse()
|
protected override void PrepareForUse()
|
||||||
{
|
{
|
||||||
Alpha = 1;
|
Colour = Info.IsHit ? Colour4.White : Colour4.Black;
|
||||||
Colour = Colour4.White;
|
|
||||||
Scale = new Vector2(1);
|
Scale = new Vector2(1);
|
||||||
Position = Info.Position;
|
Position = Info.Position;
|
||||||
Size = Info.InitialSize;
|
Size = Info.InitialSize;
|
||||||
@ -204,12 +203,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
content.TransformTo(nameof(BorderThickness), 2f, getAnimationDuration() * 0.3f, Easing.OutQuint)
|
content.TransformTo(nameof(BorderThickness), 2f, getAnimationDuration() * 0.3f, Easing.OutQuint)
|
||||||
// Avoids transparency overlap issues during the bubble "pop"
|
// Avoids transparency overlap issues during the bubble "pop"
|
||||||
.Then().Schedule(() => content.BorderThickness = 0);
|
.Then().Schedule(() => content.BorderThickness = 0);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Colour = Colour4.Black;
|
|
||||||
|
|
||||||
// The absolute length of the bubble's animation, can be used in fractions for animations of partial length
|
// The absolute length of the bubble's animation, can be used in fractions for animations of partial length
|
||||||
double getAnimationDuration() => 1700 + Math.Pow(Info.FadeTime, 1.07f);
|
double getAnimationDuration() => 1700 + Math.Pow(Info.FadeTime, 1.07f);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user