private void tilesToolStripMenuItem_Click(object sender, EventArgs e) { if (Main.raise_child(tilepal)) { return; } tilepal = new MapEditTile(this, mp); tilepal.Show(); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (value.GetType() != typeof(int)) { return(value); } MapProperties mep = (MapProperties)context.Instance; MapEditTile et = new MapEditTile(mep.me, mep.mp, true); et.StartPosition = FormStartPosition.CenterParent; et.show_palselect = !grey; et.set_modal_tile(-1, -1, (int)value); if (et.ShowDialog() == DialogResult.OK) { value = (int)et.result; if (grey) { value = (int)(et.result & 0x3F); } } return(value); }