Exemplo n.º 1
0
            private void load(OsuColour colours, INotificationOverlay notificationOverlay)
            {
                Icon = FontAwesome.Solid.BatteryQuarter;
                IconBackground.Colour = colours.RedDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();
                    return(true);
                };
            }
Exemplo n.º 2
0
            private void load(OsuColour colours, ChatOverlay chatOverlay, INotificationOverlay notificationOverlay)
            {
                IconBackground.Colour = colours.PurpleDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();
                    chatOverlay.HighlightMessage(message, channel);
                    return(true);
                };
            }
Exemplo n.º 3
0
            private void load(OsuColour colours, ChangelogOverlay changelog, INotificationOverlay notificationOverlay)
            {
                Icon = FontAwesome.Solid.CheckSquare;
                IconBackground.Colour = colours.BlueDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();
                    changelog.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, version);
                    return(true);
                };
            }
Exemplo n.º 4
0
            private void load(OsuColour colours, AudioManager audioManager, INotificationOverlay notificationOverlay, VolumeOverlay volumeOverlay)
            {
                Icon = FontAwesome.Solid.VolumeMute;
                IconBackground.Colour = colours.RedDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();

                    volumeOverlay.IsMuted.Value = false;

                    // Check values before resetting, as the user may have only had mute enabled, in which case we might not need to adjust volumes.
                    if (audioManager.Volume.Value <= volume_requirement)
                    {
                        audioManager.Volume.SetDefault();
                    }
                    if (audioManager.VolumeTrack.Value <= volume_requirement)
                    {
                        audioManager.VolumeTrack.SetDefault();
                    }

                    return(true);
                };
            }