Code cleanup

This commit is contained in:
Aaron Hong 2022-03-12 05:32:02 -08:00
parent 690b27e441
commit 9db80c3335
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ public class DrumTouchInputArea : Container
// 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 @@ public DrumTouchInputArea()
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
};