mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:12:53 +08:00
Remove FillFlow
overhead of argon counters
This commit is contained in:
parent
b588715d21
commit
02369139b3
@ -42,11 +42,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Origin = anchor;
|
Origin = anchor;
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
|
||||||
InternalChild = new FillFlowContainer
|
InternalChildren = new Drawable[]
|
||||||
{
|
|
||||||
AutoSizeAxes = Axes.Both,
|
|
||||||
Direction = FillDirection.Vertical,
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
{
|
||||||
labelText = new OsuSpriteText
|
labelText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
@ -72,7 +68,6 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
RequiredDisplayDigits.BindValueChanged(digits => wireframesPart.Text = new string('#', digits.NewValue));
|
RequiredDisplayDigits.BindValueChanged(digits => wireframesPart.Text = new string('#', digits.NewValue));
|
||||||
@ -110,7 +105,11 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
WireframeOpacity.BindValueChanged(v => wireframesPart.Alpha = v.NewValue, true);
|
WireframeOpacity.BindValueChanged(v => wireframesPart.Alpha = v.NewValue, true);
|
||||||
ShowLabel.BindValueChanged(s => labelText.Alpha = s.NewValue ? 1 : 0, true);
|
ShowLabel.BindValueChanged(s =>
|
||||||
|
{
|
||||||
|
labelText.Alpha = s.NewValue ? 1 : 0;
|
||||||
|
NumberContainer.Y = s.NewValue ? 12 : 0;
|
||||||
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private partial class ArgonCounterSpriteText : OsuSpriteText
|
private partial class ArgonCounterSpriteText : OsuSpriteText
|
||||||
|
Loading…
Reference in New Issue
Block a user