Changeset 71

Show
Ignore:
Timestamp:
04/24/07 00:58:43 (1 year ago)
Author:
pmac
Message:

Fix #96

  • macro menus broken
  • added echo when entering macro menu trigger.
  • updated changes.txt for many (but by no means all) modifications
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/changes.txt

    r18 r71  
     1Angband 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 
     34Bug fixes. 
     35- OSX font selection problem fixed. 
     36 
     37 
    138Angband 3.0.7s3 
    239Suggestions and (more) patches welcomed. 
     
    2259  those who like uncluttered gameplay. 
    2360- Get "./configure" working properly again (Marco K). 
    24 - Renew Mac support; now works on OS X 10.3 onwards, but the old  
     61- Modernize Mac support; now works on OS X 10.3 onwards, but the old  
    2562  main-mac has been removed, as has the MPW makefile.  (Pete Mack) 
    2663- Added support for improved pluralization of object names.  Allow 
  • trunk/src/cmd4.c

    r55 r71  
    27042704        flush(); 
    27052705 
     2706 
    27062707        /* Do not process macros */ 
    27072708        inkey_base = TRUE; 
     
    27102711        ch = inkey(); 
    27112712 
     2713        text_out_hook = text_out_to_screen; 
     2714 
    27122715        /* Read the pattern */ 
    2713         while (ch != '\0') 
     2716        while (ch != ESCAPE && ch != '\xff') 
    27142717        { 
    27152718                /* Save the key */ 
    27162719                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 
    27172727 
    27182728                /* Do not process macros */ 
     
    27262736        } 
    27272737 
    2728         /* Terminate */ 
    2729         buf[n] = '\0'; 
    2730  
    2731         /* Flush */ 
    2732         flush(); 
    2733  
    2734  
    27352738        /* Convert the trigger */ 
    27362739        ascii_to_text(tmp, sizeof(tmp), buf); 
    2737  
    2738         /* Hack -- display the trigger */ 
    2739         Term_addstr(-1, TERM_WHITE, tmp); 
    27402740} 
    27412741 
     
    40944094        menu_init(menu, MN_SCROLL, MN_ACT, &SCREEN_REGION); 
    40954095 
     4096        /* macro menu */ 
     4097        menu = &macro_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 
    40964105        /* knowledge menu */ 
    40974106        menu = &knowledge_menu; 
  • trunk/src/store.c

    r68 r71  
    28772877                        /* These two can't intersect! */ 
    28782878                        menu.cmd_keys = "\n\x010\r\t?=CdeEiIls"; /* \x10 = ^p */ 
    2879                         menu.selections = "abcfghjkmnopqrtuvxyz"; 
     2879                        menu.selections = "abcfghjkmnopqrtuvxyz1234567890"; 
    28802880                } 
    28812881                else