mirror of
https://github.com/ppy/osu
synced 2025-02-02 11:21:59 +00:00
xmldoc and formatting
This commit is contained in:
parent
0ecbc5945f
commit
48d90a67ae
@ -21,11 +21,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
protected DrawableOsuHitObject(OsuHitObject hitObject)
|
||||
: base(hitObject)
|
||||
{
|
||||
shakeContainer = new ShakeContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
base.AddInternal(shakeContainer);
|
||||
base.AddInternal(shakeContainer = new ShakeContainer { RelativeSizeAxes = Axes.Both });
|
||||
Alpha = 0;
|
||||
}
|
||||
|
||||
@ -72,10 +68,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
private OsuInputManager osuActionInputManager;
|
||||
internal OsuInputManager OsuActionInputManager => osuActionInputManager ?? (osuActionInputManager = GetContainingInputManager() as OsuInputManager);
|
||||
|
||||
protected virtual void Shake()
|
||||
{
|
||||
shakeContainer.Shake();
|
||||
}
|
||||
protected virtual void Shake() => shakeContainer.Shake();
|
||||
}
|
||||
|
||||
public enum ComboResult
|
||||
|
@ -6,8 +6,14 @@ using osu.Framework.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
/// <summary>
|
||||
/// A container that adds the ability to shake its contents.
|
||||
/// </summary>
|
||||
public class ShakeContainer : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// Shake the contents of this container.
|
||||
/// </summary>
|
||||
public void Shake()
|
||||
{
|
||||
const float shake_amount = 8;
|
||||
|
Loading…
Reference in New Issue
Block a user