curses updates

This commit is contained in:
nhmall
2019-12-23 08:53:58 -05:00
parent 7012e7046f
commit 83fdda56fe
3 changed files with 4 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ extern void curses_create_nhmenu(winid wid);
extern void curses_add_nhmenu_item(winid wid, int glyph,
const ANY_P *identifier, CHAR_P accelerator,
CHAR_P group_accel, int attr,
const char *str, BOOLEAN_P presel);
const char *str, unsigned itemflags);
extern void curs_menu_set_bottom_heavy(winid);
extern void curses_finalize_nhmenu(winid wid, const char *prompt);
extern int curses_display_nhmenu(winid wid, int how, MENU_ITEM_P **_selected);

2
src/.gitignore vendored
View File

@@ -11,3 +11,5 @@ tiles.bmp
graphicschk
nhdat
o
nhdat370

View File

@@ -66,6 +66,7 @@ typedef struct nhmi {
const char *str; /* Text of menu item */
BOOLEAN_P presel; /* Whether menu item should be preselected */
boolean selected; /* Whether item is currently selected */
unsigned itemflags;
int page_num; /* Display page number for entry */
int line_num; /* Line number on page where entry begins */
int num_lines; /* Number of lines entry uses on page */