2019-01-24 08:43:03 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2024-01-23 01:54:27 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-02-15 11:39:10 +00:00
|
|
|
|
using osu.Game.Graphics.Backgrounds;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2020-12-04 11:21:53 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.Skinning.Default
|
2017-02-15 11:39:10 +00:00
|
|
|
|
{
|
|
|
|
|
public partial class TrianglesPiece : Triangles
|
|
|
|
|
{
|
2020-11-17 04:06:52 +00:00
|
|
|
|
protected override bool CreateNewTriangles => false;
|
2017-02-15 11:39:10 +00:00
|
|
|
|
protected override float SpawnRatio => 0.5f;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2020-10-01 16:48:41 +00:00
|
|
|
|
public TrianglesPiece(int? seed = null)
|
|
|
|
|
: base(seed)
|
2017-02-15 11:39:10 +00:00
|
|
|
|
{
|
|
|
|
|
TriangleScale = 1.2f;
|
2017-03-01 02:56:14 +00:00
|
|
|
|
HideAlphaDiscrepancies = false;
|
2024-01-23 01:54:27 +00:00
|
|
|
|
ClampAxes = Axes.None;
|
2017-02-15 11:39:10 +00:00
|
|
|
|
}
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-02-15 11:39:10 +00:00
|
|
|
|
protected override void Update()
|
|
|
|
|
{
|
|
|
|
|
if (IsPresent)
|
|
|
|
|
base.Update();
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-01-05 11:21:19 +00:00
|
|
|
|
}
|