1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Code cleanup

This commit is contained in:
Aaron Hong 2022-03-12 05:32:02 -08:00
parent 690b27e441
commit 9db80c3335

View File

@ -25,7 +25,7 @@ namespace osu.Game.Rulesets.Taiko.UI
// The percent of the drum that extends past the bottom of the screen (set to 0.0f to show the full drum)
private const float offscreenPercent = 0.35f;
private InputDrum touchInputDrum;
private Circle drumBackground;
private Circle drumBackground;
private KeyBindingContainer<TaikoAction> keyBindingContainer;
@ -70,7 +70,8 @@ namespace osu.Game.Rulesets.Taiko.UI
protected override void LoadComplete()
{
Padding = new MarginPadding {
Padding = new MarginPadding
{
Top = TaikoPlayfield.DEFAULT_HEIGHT * 2f, // Visual elements should start right below the playfield
Bottom = -touchInputDrum.DrawHeight * offscreenPercent, // The drum should go past the bottom of the screen so that it can be wider
};