interface groundwork for core-side color decisions
(user-side decisions really, but as it stands right now user-side decisions/options are made and processed by the core) add a parameter to add_menu so color can be passed
This commit is contained in:
+1
-1
@@ -458,7 +458,7 @@ void NetHackQtBind::qt_start_menu(winid wid, unsigned long mbehavior UNUSED)
|
||||
}
|
||||
|
||||
void NetHackQtBind::qt_add_menu(winid wid, const glyph_info *glyphinfo,
|
||||
const ANY_P * identifier, char ch, char gch, int attr,
|
||||
const ANY_P * identifier, char ch, char gch, int attr, int clr UNUSED,
|
||||
const char *str, unsigned itemflags)
|
||||
{
|
||||
NetHackQtWindow* window=id_to_window[(int)wid];
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public:
|
||||
static void qt_display_file(const char *filename, boolean must_exist);
|
||||
static void qt_start_menu(winid wid, unsigned long mbehavior);
|
||||
static void qt_add_menu(winid wid, const glyph_info *glyphinfo,
|
||||
const ANY_P * identifier, char ch, char gch, int attr,
|
||||
const ANY_P * identifier, char ch, char gch, int attr, int clr,
|
||||
const char *str, unsigned int itemflags);
|
||||
static void qt_end_menu(winid wid, const char *prompt);
|
||||
static int qt_select_menu(winid wid, int how, MENU_ITEM_P **menu_list);
|
||||
|
||||
Reference in New Issue
Block a user