예제 #1
0
        internal void LoadMenu()
        {
            Beatmap b = editor.hitObjectManager.Beatmap;

            thisBeatmapsInformationPageToolStripMenuItem.Enabled = b.BeatmapId != 0;
            thisBeatmapsThreadToolStripMenuItem.Enabled          = b.BeatmapId != 0;
            quickReplyToolStripMenuItem.Enabled = b.BeatmapId != 0;

            packageForDistributionToolStripMenuItem.Enabled = !b.InOszContainer;

            openSongFolder.Enabled = !b.InOszContainer || b.ExtractionFolder != null;

            submitToolStripMenuItem.Enabled            = !b.InOszContainer;
            extractMapPackageToolStripMenuItem.Enabled = b.InOszContainer;
            openosbInNotepadToolStripMenuItem.Enabled  = b.CheckFileExists(b.StoryboardFilename);

            showVideoToolStripMenuItem.Checked      = ConfigManager.sEditorVideo;
            snakingSlidersToolStripMenuItem.Checked = ConfigManager.sEditorSnakingSliders;
            hitAnimationsToolStripMenuItem.Checked  = ConfigManager.sEditorHitAnimations;
            followPointsToolStripMenuItem.Checked   = ConfigManager.sEditorFollowPoints;
            stackingToolStripMenuItem.Checked       = ConfigManager.sEditorStacking;

            if (b.PlayMode == osu_common.PlayModes.OsuMania)
            {
                autoToolStripMenuItem.Visible = true;
            }
            SpecialChanged();

            if (EditorModeCompose.SoundAdditionStatus != null)
            {
                beatSnappingToolStripMenuItem.Checked = EditorModeCompose.SoundAdditionStatus[SoundAdditions.GridSnap];
            }
        }
예제 #2
0
        private void openosbInNotepadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Beatmap b = editor.hitObjectManager.Beatmap;

            if (!b.CheckFileExists(b.StoryboardFilename))
            {
                return;
            }

            if (!b.InOszContainer)
            {
                GameBase.ProcessStart(@"notepad.exe", Path.Combine(b.ContainingFolderAbsolute, b.StoryboardFilename));
                return;
            }

            string path = b.Osz2ExtractSingleFile(b.StoryboardFilename, false);

            if (path != null)
            {
                GameBase.ProcessStart(@"notepad.exe", path);
            }
        }