Index: bindings.doc ================================================================== --- bindings.doc +++ bindings.doc @@ -146,10 +146,13 @@ Add an object with the current MRU values to that location, even if there is already another object of the same class at that location. '^w' Swap the normal world with the bizarro world. + +'am' + Add a MRU and select the added MRU. 'em' Edit the Misc/Dir of an existing object. 'ex' Index: default.heromeshrc ================================================================== --- default.heromeshrc +++ default.heromeshrc @@ -158,10 +158,11 @@ ?.editKey.f2: select 'ex',:Export_Level; ?.editClick.left: ^a ?.editClick.ctrl.left: select 'em',id from objects where x=$X and y=$Y and up is null; ?.editClick.alt.left: ^u ?.editClick.right: delete from objects where x=$X and y=$Y and up is null; +?.editClick.ctrl.right: select 'am',class,image,misc1,misc2,misc3,dir from objects where x=$X and y=$Y and up is null; ! Global key bindings ?.?.kp_minus: select 'go',-(level()-1) where level()>1; ?.?.kp_plus: select 'go',-(level()+1) where level()0; Index: edit.c ================================================================== --- edit.c +++ edit.c @@ -1511,10 +1511,22 @@ save_level(); return 1; case '^T': // Level title edit_string(&level_title); return 0; + case 'am': // Add MRU + if(argc<7) return prev; + for(x=1;x<7;x++) if(sqlite3_column_type(args,x)==SQLITE_NULL) return prev; + x=sqlite3_column_int(args,1)&0x3FFF; + if(!x) return prev; + y=sqlite3_column_int(args,2)&0xFF; + add_mru(x,y); + mru->misc1=UVALUE(sqlite3_column_int64(args,3),sqlite3_column_int64(args,3)>>32); + mru->misc2=UVALUE(sqlite3_column_int64(args,4),sqlite3_column_int64(args,4)>>32); + mru->misc3=UVALUE(sqlite3_column_int64(args,5),sqlite3_column_int64(args,5)>>32); + mru->dir=sqlite3_column_int(args,6)&7; + return prev; case 'em': // Edit Misc/Dir of object if(argc>1 && sqlite3_column_type(args,1)!=SQLITE_NULL) mru_edit_obj(sqlite3_column_int64(args,1)); return 0; case 'ex': // Export level if(argc<2) return prev;