public void LoadScreen() { if (Tab.SelectedIndex != 0) {//地図ではない場合、非表示にはなるため、 MapPicture.OnLoadが呼ばれないらしい... Tab.SelectedIndex = 0; } Bitmap map = ImageUtil.Blank(320, 240); map = ImageUtil.DrawGrid(map, OptionForm.Color_Keyword_ForeColor(), 16); MAP.ClearAllPoint(); MAP.LoadMap(map); MAP.SetChipSize(1); Bitmap icon = ImageSystemIconForm.YubiTate(); U.MakeTransparent(icon); MAP.SetDefaultIcon(icon, -8, -14); if (!MAP.IsMapLoad()) { return; } int width = MAP.GetMapBitmapWidth(); int height = MAP.GetMapBitmapHeight() + this.MAP.CommandBar.Height * 2; this.Tab.Width = width; this.Tab.Height = height; this.MAP.Width = width; this.MAP.Height = height; Tab.SelectedIndex = 0; this.Width = width; this.Height = height; }
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; }
public void LoadImage(Bitmap bitmap) { MAP.ClearAllPoint(); PIC.Image = bitmap; int width = bitmap.Width; int height = bitmap.Height; this.Tab.Width = width; this.Tab.Height = height; this.MAP.Width = width; this.MAP.Height = height; Tab.SelectedIndex = 1; this.Width = width; this.Height = height; }
public void LoadMusic(uint sound_id) { MAP.ClearAllPoint(); PlaySappyButton.Tag = sound_id; this.MusicName.Text = SongTableForm.GetSongName(sound_id); 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; }
public void LoadMap(uint mapid) { if (Tab.SelectedIndex != 0) {//地図ではない場合、非表示にはなるため、 MapPicture.OnLoadが呼ばれないらしい... Tab.SelectedIndex = 0; } MAP.ClearAllPoint(); MAP.LoadMap(mapid); if (MAP.IsWorldmap(mapid)) { MAP.SetChipSize(1); Bitmap icon = ImageSystemIconForm.YubiTate(); U.MakeTransparent(icon); MAP.SetDefaultIcon(icon, -8, -14); } else { MAP.SetChipSize(16); Bitmap icon = ImageSystemIconForm.YubiTate(); U.MakeTransparent(icon); MAP.SetDefaultIcon(icon, 0, 0); } if (!MAP.IsMapLoad()) { return; } int width = MAP.GetMapBitmapWidth(); int height = MAP.GetMapBitmapHeight() + this.MAP.CommandBar.Height * 2; this.Tab.Width = width; this.Tab.Height = height; this.MAP.Width = width; this.MAP.Height = height; Tab.SelectedIndex = 0; this.Width = width; this.Height = height; }