Пример #1
0
        //public bool slideRelay = false;
        public Form1()
        {
            InitializeComponent();
            sRoot = new ScoreRoot(this, maxScore, 0, false);
            ScoreRoot.StartBPM  = BPM;
            BPMupdown.Maximum   = 99999;
            BPMupdown.Minimum   = 1;
            BPMButton.spVal_MAX = BPMupdown.Maximum;
            BPMButton.spVal_MIN = BPMupdown.Minimum;
            Speed.spVal_MAX     = 10000;
            Speed.spVal_MIN     = -10000;
            this.Controls.Add(sRoot);
            sRoot.update();
            checkSlideRelay.Checked    = true;
            comboBoxBeat.SelectedIndex = 1;
            MusicScore.SelectedBeat    = int.Parse(this.comboBoxBeat.Text);
            appName         = " - NotesEditorforD " + Version;
            Text            = "NewMusicScore" + appName;
            prevNotesButton = Tap;
            Tap.notesButtonActive();
            //prevSpecialButton = BPMButton;
            openMenuItem.Click   += openMenuItem_Click;
            saveAsMenuItem.Click += saveAsMenuItem_Click;
            saveMenuItem.Click   += saveMenuItem_Click;
            newMenuItem.Click    += newMenuItem_Click;
            exportMenuItem.Click += exportMenuItem_Click;
            quitMenuItem.Click   += quitMenuItem_Click;

            songID     = "defaultID";
            title      = "defaultTitle";
            artist     = "defaultArtist";
            designer   = "defaultDesigner";
            wave       = "";
            jacket     = "";
            weStr      = "";
            exDir      = Environment.CurrentDirectory;
            difficulty = 0;
            playLevel  = 1.0m;
            offset     = 0.0m;
            BPM        = 120;

            fileName = "NewMusicScore.dyms";
            pathName = null;
            setEdited(false);

            longNoteNumber = 0;

            //KeyDownEventはすべてにおいて発火する
            foreach (Control c in Controls)
            {
                c.KeyDown += Form1_KeyDown;
            }

            Tap._Form1        = this;
            ExTap._Form1      = this;
            Flick._Form1      = this;
            HellTap._Form1    = this;
            Hold._Form1       = this;
            Slide._Form1      = this;
            SlideCurve._Form1 = this;
            AirUp._Form1      = this;
            AirDown._Form1    = this;
            AirLine._Form1    = this;
            Speed._Form1      = this;
            BPMButton._Form1  = this;
        }