mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Adjust bottom-right elements positions based on song progress display
This commit is contained in:
@ -63,6 +63,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private readonly Container topScoreContainer;
|
private readonly Container topScoreContainer;
|
||||||
|
|
||||||
|
private FillFlowContainer bottomRightElements;
|
||||||
|
|
||||||
private IEnumerable<Drawable> hideTargets => new Drawable[] { visibilityContainer, KeyCounter };
|
private IEnumerable<Drawable> hideTargets => new Drawable[] { visibilityContainer, KeyCounter };
|
||||||
|
|
||||||
public HUDOverlay(ScoreProcessor scoreProcessor, HealthProcessor healthProcessor, DrawableRuleset drawableRuleset, IReadOnlyList<Mod> mods)
|
public HUDOverlay(ScoreProcessor scoreProcessor, HealthProcessor healthProcessor, DrawableRuleset drawableRuleset, IReadOnlyList<Mod> mods)
|
||||||
@ -119,16 +121,16 @@ namespace osu.Game.Screens.Play
|
|||||||
},
|
},
|
||||||
RowDimensions = new[]
|
RowDimensions = new[]
|
||||||
{
|
{
|
||||||
new Dimension(GridSizeMode.Distributed),
|
new Dimension(),
|
||||||
new Dimension(GridSizeMode.AutoSize)
|
new Dimension(GridSizeMode.AutoSize)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
bottomRightElements = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Position = -new Vector2(5, TwoLayerButton.SIZE_RETRACTED.Y),
|
X = -5,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
LayoutDuration = fade_duration / 2,
|
LayoutDuration = fade_duration / 2,
|
||||||
LayoutEasing = fade_easing,
|
LayoutEasing = fade_easing,
|
||||||
@ -209,6 +211,12 @@ namespace osu.Game.Screens.Play
|
|||||||
replayLoaded.BindValueChanged(replayLoadedValueChanged, true);
|
replayLoaded.BindValueChanged(replayLoadedValueChanged, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
bottomRightElements.Y = -Progress.Height;
|
||||||
|
}
|
||||||
|
|
||||||
private void replayLoadedValueChanged(ValueChangedEvent<bool> e)
|
private void replayLoadedValueChanged(ValueChangedEvent<bool> e)
|
||||||
{
|
{
|
||||||
PlayerSettingsOverlay.ReplayLoaded = e.NewValue;
|
PlayerSettingsOverlay.ReplayLoaded = e.NewValue;
|
||||||
|
Reference in New Issue
Block a user