private void ANIME2numericUpDown_ValueChanged(object sender, EventArgs e) { uint plist = (uint)ANIME2numericUpDown.Value; LINK_PLIST_ANIME2.Text = PlistToName(plist, MapPointerForm.PLIST_TYPE.ANIMATION2); MapPictureBox.LoadMap(ImageUtilMap.DrawMap(GetOBJPLIST(), GetPALPLIST(), GetCONFIGPLIST(), this.MapPointerPListReadOnly)); }
private void MAP_LISTBOX_SelectedIndexChanged(object sender, EventArgs e) { uint mapid = (uint)MAP_LISTBOX.SelectedIndex; if (mapid == U.NOT_FOUND) { return; } uint addr = MapSettingForm.GetEventAddrWhereMapID(mapid); if (!U.isSafetyOffset(addr)) { return; } List <U.AddrResult> list = EventCondForm.MakeUnitPointer(mapid); //未記帳の拡張した領域があれば追加する. EventUnitForm.AppendNoWriteNewData(list, mapid); U.ConvertListBox(list, ref this.EVENT_LISTBOX); if (this.EVENT_LISTBOX.Items.Count > 0) { this.EVENT_LISTBOX.SelectedIndex = 0; } else { MapPictureBox.LoadMap(mapid); } }
private void AddressList_SelectedIndexChanged(object sender, EventArgs e) { uint obj_plist = (uint)W4.Value; uint palette_plist = (uint)B6.Value; uint config_plist = (uint)B7.Value; uint mappointer_plist = (uint)B8.Value; MapPictureBox.LoadMap(ImageUtilMap.DrawMap(obj_plist, palette_plist, config_plist, mappointer_plist)); }
public void Init(uint objPList, uint palPList, uint configPList , uint mapPointerPListReadOnly , uint anime1PList, uint anime2PList) { InitUI(); MapPointerPListReadOnly = mapPointerPListReadOnly; U.SelectedIndexSafety(OBJ1numericUpDown, objPList & 0xff); U.SelectedIndexSafety(OBJ2numericUpDown, (objPList >> 8) & 0xff); U.SelectedIndexSafety(PALnumericUpDown, palPList); U.SelectedIndexSafety(CONFIGnumericUpDown, configPList); U.SelectedIndexSafety(ANIME1numericUpDown, anime1PList); U.SelectedIndexSafety(ANIME2numericUpDown, anime2PList); MapPictureBox.LoadMap(ImageUtilMap.DrawMap(objPList, palPList, configPList, mapPointerPListReadOnly)); }
private void EVENT_LISTBOX_SelectedIndexChanged(object sender, EventArgs e) { U.AddrResult ar = InputFormRef.SelectToAddrResult(this.EVENT_LISTBOX); if (!U.isSafetyOffset(ar.addr)) { this.MapPictureBox.ClearAllPoint(); return; } //タグにマップ番号が入っている. MapPictureBox.LoadMap(ar.tag); this.MapPictureBox.ClearAllPoint(); this.InputFormRef.ReInit(ar.addr); }
private void AddressList_SelectedIndexChanged(object sender, EventArgs e) { U.AddrResult ar = InputFormRef.SelectToAddrResult(this.AddressList); uint mapid = ar.tag; MapPictureBox.LoadMap(mapid); this.MapPictureBox.ClearAllPoint(); uint change_addr = MapSettingForm.GetMapChangeAddrWhereMapID(mapid); if (!U.isSafetyOffset(change_addr)) { this.N_InputFormRef.ClearSelect(true); this.N_AddressListExpandsButton_80.Enabled = false; return; } this.N_InputFormRef.ReInit(change_addr); }
private void AddressList_SelectedIndexChanged(object sender, EventArgs e) { uint exit_point_addrp = InputFormRef.SelectToAddr(this.AddressList); if (!U.isSafetyOffset(exit_point_addrp)) { this.N_InputFormRef.ReInit(0); return; } MapPictureBox.LoadMap((uint)this.AddressList.SelectedIndex); this.MapPictureBox.ClearAllPoint(); uint exit_point_addr = Program.ROM.u32(exit_point_addrp); if (!U.isPointer(exit_point_addr)) { this.N_InputFormRef.ReInit(0); return; } exit_point_addr = U.toOffset(exit_point_addr); if (!U.isSafetyOffset(exit_point_addrp)) { this.N_InputFormRef.ReInit(0); return; } if (exit_point_addr == Program.ROM.RomInfo.map_exit_point_blank) {//一つも離脱ポインタがない 共通NULLマーク N_AddressListExpandsButton.Hide(); NewListAlloc.Show(); } else { NewListAlloc.Hide(); N_AddressListExpandsButton.Show(); } this.N_InputFormRef.ReInit(exit_point_addr); }
private void MAP_LISTBOX_SelectedIndexChanged(object sender, EventArgs e) { uint mapid = (uint)AddressList.SelectedIndex; if (mapid == U.NOT_FOUND) { return; } uint addr = MapSettingForm.GetMapChangeAddrWhereMapID(mapid); if (!U.isSafetyOffset(addr)) { return; } U.ForceUpdate(this.ReadStartAddress, addr); MapPictureBox.LoadMap(mapid); this.MapPictureBox.ClearAllPoint(); this.InputFormRef.ReInit(addr); }
private void MAP_LISTBOX_SelectedIndexChanged(object sender, EventArgs e) { uint mapid = (uint)MAP_LISTBOX.SelectedIndex; if (mapid == U.NOT_FOUND) { this.InputFormRef.ClearSelect(); return; } uint addr = MapSettingForm.GetMapChangeAddrWhereMapID(mapid); if (!Program.ROM.isSafetyOffset(addr)) { this.InputFormRef.ClearSelect(); return; } this.ReadStartAddress.Value = addr; MapPictureBox.LoadMap(mapid); this.MapPictureBox.ClearAllPoint(); this.InputFormRef.ReInit(addr); }