groundwork for window port interface change to add_menu
groundwork only - window port interface change This changes the last parameter for add_menu() from a boolean to an unsigned int, to allow additional itemflags in future beyond just the "preselected" that the original boolean offered. There shouldn't be any functionality changes with this groundwork-only change, and if there are it is unintentional and should be reported.
This commit is contained in:
10
src/weapon.c
10
src/weapon.c
@@ -1195,17 +1195,17 @@ enhance_weapon_skill()
|
||||
? "when you're more experienced"
|
||||
: "if skill slots become available");
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, buf,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
if (maxxed_cnt > 0) {
|
||||
Sprintf(buf,
|
||||
"(Skill%s flagged by \"#\" cannot be enhanced any further.)",
|
||||
plur(maxxed_cnt));
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, buf,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, "",
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
|
||||
/* List the skills, making ones that could be advanced
|
||||
@@ -1219,7 +1219,7 @@ enhance_weapon_skill()
|
||||
any = cg.zeroany;
|
||||
if (i == skill_ranges[pass].first)
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, iflags.menu_headings,
|
||||
skill_ranges[pass].name, MENU_UNSELECTED);
|
||||
skill_ranges[pass].name, MENU_ITEMFLAGS_NONE);
|
||||
|
||||
if (P_RESTRICTED(i))
|
||||
continue;
|
||||
@@ -1261,7 +1261,7 @@ enhance_weapon_skill()
|
||||
}
|
||||
any.a_int = can_advance(i, speedy) ? i + 1 : 0;
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, buf,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
|
||||
Strcpy(buf, (to_advance > 0) ? "Pick a skill to advance:"
|
||||
|
||||
Reference in New Issue
Block a user