mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Update bindables.
# Conflicts: # osu.Desktop.VisualTests/Tests/TestCaseResults.cs # osu.Game/Screens/Ranking/ResultModeButton.cs # osu.Game/Screens/Ranking/Results.cs
This commit is contained in:
@ -66,12 +66,7 @@ namespace osu.Game.Modes.UI
|
||||
|
||||
TextSize = 80;
|
||||
|
||||
Current.ValueChanged += comboChanged;
|
||||
}
|
||||
|
||||
private void comboChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
updateCount(Current.Value == 0);
|
||||
Current.ValueChanged += newValue => updateCount(newValue == 0);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Modes.UI
|
||||
|
||||
protected HealthDisplay()
|
||||
{
|
||||
Current.ValueChanged += (s, e) => SetHealth((float)Current);
|
||||
Current.ValueChanged += newValue => SetHealth((float)newValue);
|
||||
}
|
||||
|
||||
protected abstract void SetHealth(float value);
|
||||
|
@ -8,7 +8,6 @@ using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Screens.Play;
|
||||
using System;
|
||||
using osu.Game.Modes.Scoring;
|
||||
|
||||
namespace osu.Game.Modes.UI
|
||||
@ -47,18 +46,16 @@ namespace osu.Game.Modes.UI
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
showKeyCounter = config.GetBindable<bool>(OsuConfig.KeyOverlay);
|
||||
showKeyCounter.ValueChanged += visibilityChanged;
|
||||
showKeyCounter.ValueChanged += visibility =>
|
||||
{
|
||||
if (visibility)
|
||||
KeyCounter.Show();
|
||||
else
|
||||
KeyCounter.Hide();
|
||||
};
|
||||
showKeyCounter.TriggerChange();
|
||||
}
|
||||
|
||||
private void visibilityChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (showKeyCounter)
|
||||
KeyCounter.Show();
|
||||
else
|
||||
KeyCounter.Hide();
|
||||
}
|
||||
|
||||
public void BindProcessor(ScoreProcessor processor)
|
||||
{
|
||||
//bind processor bindables to combocounter, score display etc.
|
||||
|
Reference in New Issue
Block a user