public void LoadMusic(uint sound_id, EventScript.ArgType argtype)
        {
            MAP.ClearAllPoint();
            PlaySappyButton.Tag = sound_id;
            this.MusicName.Text = SongTableForm.GetSongName(sound_id);

            string errormessage = "";

            if (argtype == EventScript.ArgType.SOUND)
            {
                errormessage = SongTableForm.GetErrorMessage(sound_id, "SFX");
            }
            else if (argtype == EventScript.ArgType.MAPMUSIC)
            {
                errormessage = SongTableForm.GetErrorMessage(sound_id, "MAP");
            }
            this.MusicName.ErrorMessage = errormessage;

            int width  = 300;
            int height = 100;

            this.Tab.Width    = width;
            this.Tab.Height   = height;
            this.MAP.Width    = width;
            this.MAP.Height   = height;
            Tab.SelectedIndex = 2;
            this.Width        = width;
            this.Height       = height;
        }
Exemplo n.º 2
0
        public static void Check85Command(List <FELint.ErrorSt> errors, byte[] frameData_UZ, uint offset, Type cond, uint addr, uint tag)
        {
            Debug.Assert(frameData_UZ[offset + 3] == 0x85); //0x85 コマンド
            if (frameData_UZ[offset] == 0x48)
            {                                               //音楽再生
                uint song_id = U.u16(frameData_UZ, offset + 1);
                if (song_id <= 0)
                {
                    return;
                }

                string errorMessage = SongTableForm.GetErrorMessage(song_id, "SFX");
                if (errorMessage == "")
                {
                    return;
                }
                errors.Add(new FELint.ErrorSt(cond, U.toOffset(addr)
                                              , errorMessage + " " + R._("SongID: {0}", U.ToHexString(song_id)), tag));
            }
        }