private void N_P8_ValueChanged(object sender, EventArgs e) { if (this.InputFormRef != null && this.InputFormRef.IsUpdateLock) { return; } U.AddrResult ar = InputFormRef.SelectToAddrResult(this.AddressList); uint mapid = ar.tag; int width = (int)N_B3.Value; int height = (int)N_B4.Value; uint change_address = (uint)N_P8.Value; MapPictureBox.SetDefualtIcon( MapSettingForm.DrawMapChange(mapid, width, height, change_address) ); if (!U.isSafetyPointer(change_address)) { if (change_address == 0) { N_J_8.ErrorMessage = R._("データが設定されていません。マップエディタから、データを作成してください。"); } else { N_J_8.ErrorMessage = R._("ポインタが正しくありません"); } } else { N_J_8.ErrorMessage = ""; } }
private void P8_ValueChanged(object sender, EventArgs e) { uint mapid = (uint)MAP_LISTBOX.SelectedIndex; int width = (int)B3.Value; int height = (int)B4.Value; uint change_address = (uint)P8.Value; MapPictureBox.SetDefualtIcon( MapSettingForm.DrawMapChange(mapid, width, height, change_address) ); }
private void N_P8_ValueChanged(object sender, EventArgs e) { if (this.InputFormRef != null && this.InputFormRef.IsUpdateLock) { return; } U.AddrResult ar = InputFormRef.SelectToAddrResult(this.AddressList); uint mapid = ar.tag; int width = (int)N_B3.Value; int height = (int)N_B4.Value; uint change_address = (uint)N_P8.Value; MapPictureBox.SetDefualtIcon( MapSettingForm.DrawMapChange(mapid, width, height, change_address) ); }
private void ChangeComboBox_SelectedIndexChanged(object sender, EventArgs e) { uint mapid = (uint)MapSelector.SelectedIndex; if (IsWorldmap(mapid)) {//ワールドマップ this.MapBitMap = WorldMapImageForm.DrawWorldMap(); this.Map.Image = MapBitMap; } else { this.MapBitMap = MapSettingForm.DrawMap(mapid, this.MapAnime); int change = ChangeComboBox.SelectedIndex; if (change >= 1) { change = change - 1; List <MapChangeForm.ChangeSt> mapchange = MapChangeForm.MakeChangeList(mapid); if (change < mapchange.Count) { Bitmap c = MapSettingForm.DrawMapChange((uint)mapid , (int)mapchange[change].width , (int)mapchange[change].height , mapchange[change].addr , this.MapAnime); ImageUtil.BitBlt(this.MapBitMap , (int)(mapchange[change].x * 16) , (int)(mapchange[change].y * 16) , c.Width , c.Height , c, 0, 0); c.Dispose(); } } this.Map.Image = MapBitMap; } ZoomComboBox_SelectedIndexChanged(null, null); }