mirror of https://github.com/ppy/osu
Use explicit casts
This commit is contained in:
parent
e76c56b03b
commit
05b5949810
|
@ -4,7 +4,6 @@
|
|||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
|
@ -104,9 +103,9 @@ protected override FillFlowContainer CreateHeader()
|
|||
{
|
||||
var fill = base.CreateHeader();
|
||||
|
||||
var nestedFill = fill.Children.OfType<FillFlowContainer>().First();
|
||||
var nestedFill = (FillFlowContainer)fill.Child;
|
||||
|
||||
var buildDisplay = nestedFill.Children.OfType<OsuHoverContainer>().First();
|
||||
var buildDisplay = (OsuHoverContainer)nestedFill.Child;
|
||||
|
||||
buildDisplay.Scale = new Vector2(1.25f);
|
||||
buildDisplay.Action = null;
|
||||
|
|
Loading…
Reference in New Issue