1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 12:23:21 +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, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Margin = new MarginPadding { Right = 3 }, Margin = new MarginPadding { Right = 3 },
Action = () => OnRequestLeave?.Invoke(channel),
} }
} }
}, },
}, },
}, },
}; };
Action = () => OnRequestSelect?.Invoke(channel);
} }
protected override void LoadComplete() protected override void LoadComplete()
@ -117,9 +120,6 @@ namespace osu.Game.Overlays.Chat.ChannelControl
else else
selectBox?.Hide(); selectBox?.Hide();
}, true); }, true);
Action = () => OnRequestSelect?.Invoke(channel);
close!.Action = () => OnRequestLeave?.Invoke(channel);
} }
protected override bool OnHover(HoverEvent e) protected override bool OnHover(HoverEvent e)