git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3826 c06c8d41-db1a-0410-9941-cceddc491573
HL47H6Q4SA2KSPHWZSOCGHHCDB6JGC4LLHPA4JUHNCCPF2ZGQNTAC
23476JBTNJRBK3NJD552PEZVDWO4LE5X4U7K4FWJFPZDOGN3JMLQC
TUKBRR44ONNRAUYHTQTQIYIQPFK752EGWEZ5A5PULTTQDEDD7DRAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
7NDXS36TE7QVXTXJWMYSVG5UHCCLPIO4VL6NXFGTDK3ZNKE3A2IAC
JR2RAQ523LOWNDYJNK6AZVKI6WVMI622PIV72XWOVZYPXPUKSQWAC
EMJSHEKS7UTRRLF7GW5WYVI7RAAUJJQX2D3PAIO7UZFGNREIZOAAC
6HQB2N6N75R2RGKJFWRUN7WAC2PNGWQFXTII5DTRLTHZ2BOTMTVAC
LIBWXPN6HLJAIGEFJYLOL4HLIUD236U3WM5QPHIZ3DSB4CCUJERAC
2PAHDAPDO6PN4FNGB5N7CQNEGHSE3NOGPXYZMIAOJC4VW34FRVOAC
HYS3HXTXATFPN7GLN3WBGDCP22UT2D3JBVUS7SP5FE7L54TDCJRQC
bool calc_unid = false;
formatted_scroller cmd_help;
// Set flags, and don't use easy exit.
cmd_help.set_flags(MF_SINGLESELECT | MF_ALWAYS_SHOW_MORE | MF_NOWRAP, false);
cmd_help.set_more( formatted_string::parse_string(
"<cyan>[ + : Page down. - : Page up. Esc exits.]"));
cmd_help.set_tag("resists");
std::string text;
cmd_help.add_text(text);
return text;
}
// new scrollable status overview screen,
// including stats, mutations etc.
void print_overview_screen()
{
bool calc_unid = false;
formatted_scroller overview;
// Set flags, and don't use easy exit.
overview.set_flags(MF_SINGLESELECT | MF_ALWAYS_SHOW_MORE | MF_NOWRAP, false);
overview.set_more( formatted_string::parse_string(
"<cyan>[ + : Page down. - : Page up. Esc exits.]"));
overview.set_tag("resists");
overview.add_text(_overview_screen_title());
std::vector<formatted_string> blines = cols1.formatted_lines();
unsigned i;
for (i = 0; i < blines.size(); ++i )
cmd_help.add_item_formatted_string(blines[i]);
cmd_help.add_text(" ");
{
std::vector<formatted_string> blines = cols1.formatted_lines();
for (unsigned int i = 0; i < blines.size(); ++i )
overview.add_item_formatted_string(blines[i]);
overview.add_text(" ");
}
// Kind of a hack -- we don't care really what items these
// hotkeys go to. So just pick the first few.
const char hotkey = (i < equip_chars.size()) ? equip_chars[i] : 0;
cmd_help.add_item_formatted_string(blines[i], hotkey);
std::vector<formatted_string> blines = cols.formatted_lines();
for (unsigned int i = 0; i < blines.size(); ++i )
{
// Kind of a hack -- we don't care really what items these
// hotkeys go to. So just pick the first few.
const char hotkey = (i < equip_chars.size()) ? equip_chars[i] : 0;
overview.add_item_formatted_string(blines[i], hotkey);
}