Refactor mode integer for select_pc (see calref#699)

This commit is contained in:
2025-03-19 10:57:04 -05:00
parent 7980af7c31
commit 07bbf1b8ef
7 changed files with 35 additions and 30 deletions

View File

@@ -41,5 +41,11 @@ std::string get_text_response(std::string prompt = "", pic_num_t pic = 16);
// Specify cancel_value to show a cancel button, which will return the given value (for example, -1)
short get_num_response(short min, short max, std::string prompt, std::vector<std::string> choice_names = {}, boost::optional<short> cancel_value = boost::none);
enum class eSelectPC {
ONLY_LIVING,
ANY,
ONLY_DEAD,
ONLY_LIVING_WITH_ITEM_SLOT
};
// Prompt the player to choose a party member. Returns 0-5 for a pc, 6 for cancel, or 7 for all.
short select_pc(short mode, std::string title="", bool allow_choose_all = false);
short select_pc(eSelectPC mode, std::string title="", bool allow_choose_all = false);