Example #1
0
        public SongTrackForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.TrackListBoxs = new ListBox[] { Track1, Track2, Track3, Track4, Track5, Track6, Track7, Track8, Track9, Track10, Track11, Track12, Track13, Track14, Track15, Track16 };
            this.TrackLabels   = new Label[] { TrackLabel1, TrackLabel2, TrackLabel3, TrackLabel4, TrackLabel5, TrackLabel6, TrackLabel7, TrackLabel8, TrackLabel9, TrackLabel10, TrackLabel11, TrackLabel12, TrackLabel13, TrackLabel14, TrackLabel15, TrackLabel16 };

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.IsMemoryNotContinuous  = true; //メモリは連続していないので警告不可能
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止

            for (int i = 0; i < this.TrackLabels.Length; i++)
            {
                this.TrackLabels[i].Click += TrackLabel_Click;
            }
            InputFormRef.markupJumpLabel(this.AllTracksLabel);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(SONGPLAY, Properties.Resources.icon_music);

            InputFormRef.markupJumpLabel(LinkInternt);

            U.AllowDropFilename(this, new string[] { ".S", ".MID", ".MIDI", ".WAV", ".INSTRUMENT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
Example #2
0
        public SongTableForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止
//            this.Icon = Properties.Resources.icon_music;
        }
Example #3
0
        public StatusOptionForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.AddressList.OwnerDraw(ListBoxEx.DrawGameOptionAndText, DrawMode.OwnerDrawFixed);
            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.PreAddressListExpandsEvent += OnPreGameOptionExtendsWarningHandler;
        }
Example #4
0
        public SongTableForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止
            this.X_REF.ItemHeight = (int)(this.X_REF.Font.Height * 2.4);
            this.X_REF.OwnerDraw(InputFormRef.DrawRefTextList, DrawMode.OwnerDrawFixed, false);
            //            this.Icon = Properties.Resources.icon_music;
        }
Example #5
0
        public SongTableForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止
            this.X_REF.ItemHeight = (int)(this.X_REF.Font.Height * 2.4);
            this.X_REF.OwnerDraw(InputFormRef.DrawRefTextList, DrawMode.OwnerDrawFixed, false);
            //            this.Icon = Properties.Resources.icon_music;

            if (Program.ROM.RomInfo.version() == 0)
            {//未知のバージョンだとサウンドルームを出せない
                SoundRommPanel.Hide();
                this.X_REF.Hide();
            }
        }
        SolidBrush ListBoxForeKeywordBrush; //キーワードのブラシ

        public SongTrackForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.TrackListBoxs = new ListBoxEx[] { Track1, Track2, Track3, Track4, Track5, Track6, Track7, Track8, Track9, Track10, Track11, Track12, Track13, Track14, Track15, Track16 };
            this.TrackLabels   = new Label[] { TrackLabel1, TrackLabel2, TrackLabel3, TrackLabel4, TrackLabel5, TrackLabel6, TrackLabel7, TrackLabel8, TrackLabel9, TrackLabel10, TrackLabel11, TrackLabel12, TrackLabel13, TrackLabel14, TrackLabel15, TrackLabel16 };

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.IsMemoryNotContinuous        = true;  //メモリは連続していないので警告不可能
            this.InputFormRef.UseWriteProtectionID00       = true;  //ID:0x00を書き込み禁止
            this.InputFormRef.CheckProtectionPaddingALIGN4 = false; //ALIGN 4である必要はない.

            this.ListBoxForeKeywordBrush = new SolidBrush(OptionForm.Color_Keyword_ForeColor());
            this.ListBoxForeBrush        = new SolidBrush(OptionForm.Color_Control_ForeColor());
            for (int i = 0; i < this.TrackLabels.Length; i++)
            {
                this.TrackLabels[i].Click += TrackLabel_Click;
                this.TrackListBoxs[i].OwnerDraw(DrawTrack, DrawMode.OwnerDrawFixed, false);
                this.TrackListBoxs[i].ItemHeight = 12;
            }
            InputFormRef.markupJumpLabel(this.AllTracksLabel);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(SONGPLAY, Properties.Resources.icon_music);

            InputFormRef.markupJumpLabel(LinkInternt);

            U.AllowDropFilename(this, new string[] { ".S", ".MID", ".MIDI", ".WAV", ".INSTRUMENT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }