Add whatis_filter option to filter eligible map locations for travel

Compound option whatis_filter, filters the eligible map locations
when getting a cursor location for targeting. Accepts 'n' (none),
'v' (map locations in view), or 'a' (map locations in the same area,
eg. room or corridor).
This commit is contained in:
Pasi Kallinen
2017-07-31 16:58:23 +03:00
parent 6b851e0503
commit 439028dcae
13 changed files with 285 additions and 43 deletions

View File

@@ -3561,10 +3561,27 @@ the `{\tt /m}', `{\tt /M}', `{\tt /o}', and `{\tt /O}' sub-commands
of `{\tt /}',
where the `{\it none\/}' setting is overridden with `{\it map}'.
%.lp
\item[\ib{whatis\verb+_+inview}]
\item[\ib{whatis\verb+_+filter}]
When getting a location on the map, and using the keys to cycle through
next and previous targets, limit the possible targets to those in view.
(default off)
next and previous targets, allows filtering the possible targets.
(default none)
%.lp ""
The possible settings are:
%.sd
%.si
{\tt n} --- \verb#no filtering#;\\
{\tt v} --- \verb#in view only#;\\
{\tt a} --- \verb#in same area (room, corridor, etc)#.
%.ei
%.ed
%.lp ""
The area-filter tries to be slightly predictive - if you're standing on a doorway,
it will consider the area on the side of the door you were last moving towards.
%.lp ""
Filtering can also be changed when getting a location with the ``getpos.filter''
key.
%.lp
\item[\ib{whatis\verb+_+menu}]
When getting a location on the map, and using a key to cycle through
next and previous targets, use a menu instead to pick a target.
@@ -3974,8 +3991,8 @@ When asked for a location, the key to go to previous closest object. Default is
\item{\bb{getpos.menu}}
When asked for a location, and using one of the next or previous keys to cycle through targets, toggle showing a menu instead. Default is '{\tt !}'.
%.lp
\item{\bb{getpos.inview}}
When asked for a location, and using one of the next or previous keys to cycle through targets, toggle limiting possible targets to those in view only. Default is '{\tt "}'.
\item{\bb{getpos.filter}}
When asked for a location, change the filtering mode when using one of the next or previous keys to cycle through targets. Toggles between no filtering, in view only, and in the same area only. Default is '{\tt "}'.
%.lp
\item{\bb{getpos.pick}}
When asked for a location, the key to choose the location, and possibly ask for more info. Default is ``{\tt .}''.
@@ -4528,6 +4545,10 @@ was interrupted.
When targeting with cursor, describe the cursor position with coordinates
relative to your character.
%.lp
\item[\ib{whatis\verb+_+filter:area}]
When targeting with cursor, filter possible locations so only those in
the same area (eg. same room, or same corridor) are considered.
%.lp
\item[\ib{nostatus\verb+_+updates}]
Prevent updates to the status lines at the bottom of the screen, if
your screen-reader reads those lines. The same information can be