window port interface change - add mbehavior flags to start_menu()
Provide a way to communicate additional behaviors and/or appearances desired from NetHack window port menus. This is foundation work for changes to follow at a future date.
This commit is contained in:
+1
-1
@@ -4811,7 +4811,7 @@ void NetHackQtBind::qt_display_file(const char *filename, BOOLEAN_P must_exist)
|
||||
}
|
||||
}
|
||||
|
||||
void NetHackQtBind::qt_start_menu(winid wid)
|
||||
void NetHackQtBind::qt_start_menu(winid wid, unsigned long mbehavior)
|
||||
{
|
||||
NetHackQtWindow* window=id_to_window[wid];
|
||||
window->StartMenu();
|
||||
|
||||
+1
-1
@@ -851,7 +851,7 @@ class NetHackQtBind : NetHackQtBindBase
|
||||
static void qt_curs(winid wid, int x, int y);
|
||||
static void qt_putstr(winid wid, int attr, const char *text);
|
||||
static void qt_display_file(const char *filename, BOOLEAN_P must_exist);
|
||||
static void qt_start_menu(winid wid);
|
||||
static void qt_start_menu(winid wid, unsigned long mbehavior);
|
||||
static void qt_add_menu(winid wid, int glyph, const ANY_P *identifier,
|
||||
CHAR_P ch, CHAR_P gch, int attr, const char *str,
|
||||
unsigned itemflags);
|
||||
|
||||
Reference in New Issue
Block a user