1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Move ControlItem Action assignments into BDL

This commit is contained in:
Jai Sharma 2022-03-15 22:19:58 +00:00
parent 6628b7c654
commit 7621e779fa

View File

@ -98,12 +98,15 @@ namespace osu.Game.Overlays.Chat.ChannelControl
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Margin = new MarginPadding { Right = 3 },
Action = () => OnRequestLeave?.Invoke(channel),
}
}
},
},
},
};
Action = () => OnRequestSelect?.Invoke(channel);
}
protected override void LoadComplete()
@ -117,9 +120,6 @@ namespace osu.Game.Overlays.Chat.ChannelControl
else
selectBox?.Hide();
}, true);
Action = () => OnRequestSelect?.Invoke(channel);
close!.Action = () => OnRequestLeave?.Invoke(channel);
}
protected override bool OnHover(HoverEvent e)