shift-L-click on player: follow stairs (up or down as necessary) shift-R-click on player: show religion screen (if religious) click on stat area: call '5' (100 turn resting)
and add mouse-over information for these commands. Do we need a seperate documentary or is this enough?
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3294 c06c8d41-db1a-0410-9941-cceddc491573
ZVJPCEGKZ3MMRTTN563KQOSA7LFVFMMUDVARW2W5YQG6XZB6U7UAC
bool valid_tip_region = (mode == REGION_MAP || mode == REGION_DNGN ||
mode == REGION_INV1 || mode == REGION_INV2 || mode == REGION_MSG);
bool valid_tip_region = (mode == REGION_MAP || mode == REGION_DNGN
|| mode == REGION_INV1 || mode == REGION_INV2
|| mode == REGION_MSG || mode == REGION_STAT);
// mouse-over info on player
if (cx == DCX && cy == DCY)
{
std::string desc = you.your_name;
desc += " (";
desc += get_species_abbrev(you.species);
desc += get_class_abbrev(you.char_class);
desc += ")" EOL;
desc += EOL "[L-Click] *Search 1 turn(s)";
if (grid_stair_direction( grd[gx][gy] ) != CMD_NO_CMD)
desc += EOL "[Shift-L-Click] use stairs (</>)";
// character overview
desc += EOL "[R-Click] Overview(%)";
// Religion
if (you.religion != GOD_NO_GOD)
desc += EOL "[Shift-R-Click] Religion (^)";
update_tip_text(desc.c_str());
}
if (button == 1 && cx == DCX && cy == DCY)
{
// spend one turn resting/searching
if (!shift)
return 's';
// else attempt to use stairs on square
const int gx = view2gridX(cx) + 1;
const int gy = view2gridY(cy) + 1;
switch (grid_stair_direction( grd[gx][gy] ))
{
case CMD_GO_DOWNSTAIRS:
return ('>');
case CMD_GO_UPSTAIRS:
return ('<');
default:
break;
}
}