Fix overlap between quit button at key input overlay

This commit is contained in:
Dean Herbert 2018-05-22 16:45:42 +09:00
parent 436067c01f
commit d43e4af8ea
1 changed files with 14 additions and 5 deletions

View File

@ -52,15 +52,26 @@ public HUDOverlay(ScoreProcessor scoreProcessor, RulesetContainer rulesetContain
Children = new Drawable[]
{
KeyCounter = CreateKeyCounter(),
ComboCounter = CreateComboCounter(),
ScoreCounter = CreateScoreCounter(),
AccuracyCounter = CreateAccuracyCounter(),
HealthDisplay = CreateHealthDisplay(),
Progress = CreateProgress(),
HoldToQuit = CreateQuitButton(),
ModDisplay = CreateModsContainer(),
PlayerSettingsOverlay = CreatePlayerSettingsOverlay()
PlayerSettingsOverlay = CreatePlayerSettingsOverlay(),
new FillFlowContainer
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Position = -new Vector2(5, TwoLayerButton.SIZE_RETRACTED.Y),
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Children = new Drawable[]
{
KeyCounter = CreateKeyCounter(),
HoldToQuit = CreateQuitButton(),
}
}
}
});
@ -189,7 +200,6 @@ protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding(10),
Y = -TwoLayerButton.SIZE_RETRACTED.Y,
};
protected virtual ScoreCounter CreateScoreCounter() => new ScoreCounter(6)
@ -211,7 +221,6 @@ protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Position = new Vector2(-5, -70)
};
protected virtual ModDisplay CreateModsContainer() => new ModDisplay