Skip to content

Commit

Permalink
Simplify TaikoLegacyHitTarget container hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 25, 2024
1 parent 0c03326 commit 5aa4235
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions osu.Game.Rulesets.Taiko/Skinning/Legacy/TaikoLegacyHitTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,24 @@ private void load(ISkinSource skin)
{
RelativeSizeAxes = Axes.Both;

InternalChild = new Container
InternalChildren = new Drawable[]
{
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Children = new Drawable[]
new Sprite
{
new Sprite
{
Texture = skin.GetTexture("approachcircle"),
Scale = new Vector2(0.83f),
Alpha = 0.47f, // eyeballed to match stable
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
new Sprite
{
Texture = skin.GetTexture("taikobigcircle"),
Scale = new Vector2(0.8f),
Alpha = 0.22f, // eyeballed to match stable
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
}
Texture = skin.GetTexture("approachcircle"),
Scale = new Vector2(0.83f),
Alpha = 0.47f, // eyeballed to match stable
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
new Sprite
{
Texture = skin.GetTexture("taikobigcircle"),
Scale = new Vector2(0.8f),
Alpha = 0.22f, // eyeballed to match stable
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
};
}
}
Expand Down

0 comments on commit 5aa4235

Please sign in to comment.