mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Code cleanup
This commit is contained in:
parent
690b27e441
commit
9db80c3335
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user