コード例 #1
0
            private void load(OsuColour colours, INotificationOverlay notificationOverlay)
            {
                Icon = FontAwesome.Solid.BatteryQuarter;
                IconBackground.Colour = colours.RedDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();
                    return(true);
                };
            }
コード例 #2
0
ファイル: MessageNotifier.cs プロジェクト: omkelderman/osu
            private void load(OsuColour colours, ChatOverlay chatOverlay, INotificationOverlay notificationOverlay)
            {
                IconBackground.Colour = colours.PurpleDark;

                Activated = delegate
                {
                    notificationOverlay.Hide();
                    chatOverlay.HighlightMessage(message, channel);
                    return(true);
                };
            }
コード例 #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);
                };
            }
コード例 #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);
                };
            }