mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Add comment about last button invocation
This commit is contained in:
parent
e99c05c85e
commit
6c848f135c
@ -241,7 +241,10 @@ namespace osu.Game.Overlays.Dialog
|
|||||||
|
|
||||||
protected override void PopOut()
|
protected override void PopOut()
|
||||||
{
|
{
|
||||||
if (!actionInvoked) buttonsContainer.Last().TriggerOnClick();
|
if (!actionInvoked)
|
||||||
|
// In the case a user did not choose an action before a hide was triggered, press the last button.
|
||||||
|
// This is presumed to always be a sane default "cancel" action.
|
||||||
|
buttonsContainer.Last().TriggerOnClick();
|
||||||
|
|
||||||
base.PopOut();
|
base.PopOut();
|
||||||
content.FadeOut(EXIT_DURATION, Easing.InSine);
|
content.FadeOut(EXIT_DURATION, Easing.InSine);
|
||||||
|
Loading…
Reference in New Issue
Block a user