mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Inline delegate event
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user