Changeset 71
- Timestamp:
- 04/24/07 00:58:43 (1 year ago)
- Files:
-
- trunk/changes.txt (modified) (2 diffs)
- trunk/src/cmd4.c (modified) (4 diffs)
- trunk/src/store.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/changes.txt
r18 r71 1 Angband 3.0.8 2 - "knowledge menu" browser imported from Un/NPP. 3 "~" command now shows "lore" about monsters, objects, etc. 4 - True menu support added; (almost) all menus now use a generic API rather 5 than ad hoc event loops (aka spaghetti). Commonly used menu layouts are scrolling 6 or multi-column, (other layouts aka "skins" are easy to add). All menu actions 7 (print, handle event, etc) are defined as "virtual functions" (callbacks) so you can 8 write your own row-function provider, rather than depend on fitting data into a 9 common data structure. (About 1/2 the menus fit this one-off model best; the other 10 half are built using a handful of common data structures, like arrays of strings.) 11 - Event handler added. (Menus can listen to each other, etc.) 12 - pref files and macro files are generated with an "API" (a simple callback wrapper.) 13 - Mouse support added. Menu browsing & selection can be done with either keystrokes 14 or the mouse. 15 - [TBD] Pathfind. 16 - Makefiles are cleaned up. Where appropriate, they include the list of object files 17 as a common include. Makefile.std now uses primitive "modules" to add/remove support 18 of various terminal interfaces. (No more uncommenting compile lines.) 19 - IBM/emx & Amiga/ami support removed. (If somebody would verify them, they will be 20 added back, with pleasure.) 21 - Timed player modifiers (blind, confused, etc) now are kept in an array, not separate 22 elements. This makes it possible to iterate over them, or find them "unconditionally" 23 by table access. 24 - "HP changes color" option for ASCII graphics imported from NPP. 25 - Some options set to new defaults 26 (HP Changes color, flow-by-smell, flow-by-sound -- true by default) 27 (run-ignore-doors, run-ignore-stairs, disturb-motion -- false by default) 28 - Some options eliminated 29 - Menu API added. 30 - Event API added. 31 - Added echo to macro trigger entry. 32 33 34 Bug fixes. 35 - OSX font selection problem fixed. 36 37 1 38 Angband 3.0.7s3 2 39 Suggestions and (more) patches welcomed. … … 22 59 those who like uncluttered gameplay. 23 60 - Get "./configure" working properly again (Marco K). 24 - RenewMac support; now works on OS X 10.3 onwards, but the old61 - Modernize Mac support; now works on OS X 10.3 onwards, but the old 25 62 main-mac has been removed, as has the MPW makefile. (Pete Mack) 26 63 - Added support for improved pluralization of object names. Allow trunk/src/cmd4.c
r55 r71 2704 2704 flush(); 2705 2705 2706 2706 2707 /* Do not process macros */ 2707 2708 inkey_base = TRUE; … … 2710 2711 ch = inkey(); 2711 2712 2713 text_out_hook = text_out_to_screen; 2714 2712 2715 /* Read the pattern */ 2713 while (ch != '\0')2716 while (ch != ESCAPE && ch != '\xff') 2714 2717 { 2715 2718 /* Save the key */ 2716 2719 buf[n++] = ch; 2720 buf[n] = 0; 2721 2722 /* echo */ 2723 ascii_to_text(tmp, sizeof(tmp), buf+n-1); 2724 text_out(tmp); 2725 flush(); 2726 2717 2727 2718 2728 /* Do not process macros */ … … 2726 2736 } 2727 2737 2728 /* Terminate */2729 buf[n] = '\0';2730 2731 /* Flush */2732 flush();2733 2734 2735 2738 /* Convert the trigger */ 2736 2739 ascii_to_text(tmp, sizeof(tmp), buf); 2737 2738 /* Hack -- display the trigger */2739 Term_addstr(-1, TERM_WHITE, tmp);2740 2740 } 2741 2741 … … 4094 4094 menu_init(menu, MN_SCROLL, MN_ACT, &SCREEN_REGION); 4095 4095 4096 /* macro menu */ 4097 menu = ¯o_menu; 4098 WIPE(menu, menu_type); 4099 menu_set_id(menu, 'macr'); 4100 menu->count = N_ELEMENTS(macro_actions); 4101 menu->menu_data = macro_actions; 4102 menu->selections = lower_case; 4103 menu_init(menu, MN_SCROLL, MN_EVT, &SCREEN_REGION); 4104 4096 4105 /* knowledge menu */ 4097 4106 menu = &knowledge_menu; trunk/src/store.c
r68 r71 2877 2877 /* These two can't intersect! */ 2878 2878 menu.cmd_keys = "\n\x010\r\t?=CdeEiIls"; /* \x10 = ^p */ 2879 menu.selections = "abcfghjkmnopqrtuvxyz ";2879 menu.selections = "abcfghjkmnopqrtuvxyz1234567890"; 2880 2880 } 2881 2881 else
