mirror of
https://github.com/ppy/osu
synced 2025-01-14 18:10:53 +00:00
Inline delegate event
This commit is contained in:
parent
b7ddf160b4
commit
f0e9700349
@ -114,15 +114,10 @@ namespace osu.Game.Overlays.Comments
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
Checked.BindValueChanged(onCheckedChanged, true);
|
||||
Checked.BindValueChanged(isChecked => checkboxIcon.Icon = isChecked.NewValue ? FontAwesome.Solid.CheckSquare : FontAwesome.Regular.Square, true);
|
||||
base.LoadComplete();
|
||||
}
|
||||
|
||||
private void onCheckedChanged(ValueChangedEvent<bool> isChecked)
|
||||
{
|
||||
checkboxIcon.Icon = isChecked.NewValue ? FontAwesome.Solid.CheckSquare : FontAwesome.Regular.Square;
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
Checked.Value = !Checked.Value;
|
||||
|
Loading…
Reference in New Issue
Block a user