mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Refactor getSizeFor
to read a touch better
This commit is contained in:
parent
7ea55b2cee
commit
be7346d0b7
@ -43,17 +43,15 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
||||
|
||||
private Vector2 getSizeFor(int combo)
|
||||
{
|
||||
Vector2 size;
|
||||
float size = default_flashlight_size;
|
||||
|
||||
if (combo > 200)
|
||||
size = new Vector2(0, default_flashlight_size * 0.8f);
|
||||
size *= 0.8f;
|
||||
else if (combo > 100)
|
||||
size = new Vector2(0, default_flashlight_size * 0.9f);
|
||||
else
|
||||
size = new Vector2(0, default_flashlight_size);
|
||||
size *= 0.9f;
|
||||
|
||||
// Preserve flashlight size through the playfield's aspect adjustment.
|
||||
return size * taikoPlayfield.DrawHeight / TaikoPlayfield.DEFAULT_HEIGHT;
|
||||
return new Vector2(0, size * taikoPlayfield.DrawHeight / TaikoPlayfield.DEFAULT_HEIGHT);
|
||||
}
|
||||
|
||||
protected override void OnComboChange(ValueChangedEvent<int> e)
|
||||
|
Loading…
Reference in New Issue
Block a user