mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 18:07:19 +08:00
Hook up naively.
This commit is contained in:
parent
7eab50b989
commit
1392cdfb9a
@ -21,9 +21,11 @@ namespace osu.Game.Modes.Osu
|
||||
{
|
||||
case HitResult.Hit:
|
||||
Combo.Value++;
|
||||
Health.Value += 0.1f;
|
||||
break;
|
||||
case HitResult.Miss:
|
||||
Combo.Value = 0;
|
||||
Health.Value -= 0.2f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ namespace osu.Game.Modes.UI
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Color4.White,
|
||||
Scale = new Vector2(0, 1),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ namespace osu.Game.Modes.UI
|
||||
processor.TotalScore.ValueChanged += delegate { ScoreCounter?.Set((ulong)processor.TotalScore.Value); };
|
||||
processor.Accuracy.ValueChanged += delegate { AccuracyCounter?.Set((float)processor.Accuracy.Value); };
|
||||
processor.Combo.ValueChanged += delegate { ComboCounter?.Set((ulong)processor.Combo.Value); };
|
||||
processor.Health.ValueChanged += delegate { HPDisplay?.Set((ulong)processor.Combo.Value); };
|
||||
processor.Health.ValueChanged += delegate { HPDisplay?.Set(processor.Health.Value); };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user