Add context menu for current location

Add a new boolean option herecmd_menu. If this is on, and using
a windowport that supports mouse, clicking on your character pops
up a menu of actions doable in that location. Basically this is
nothing new, as almost all of the same actions were done before
on the mouse click.

You can also pop up the context menu with the #herecmdmenu
extended command
This commit is contained in:
Pasi Kallinen
2017-10-10 15:29:46 +03:00
parent 19663e157f
commit 99c6b7f4da
6 changed files with 140 additions and 0 deletions

View File

@@ -3124,6 +3124,10 @@ Turning help off makes just looking at things faster, since you aren't
interrupted with the ``{\tt More info?}'' prompt, but it also means that you
might miss some interesting and/or important information. Persistent.
%.lp
\item[\ib{herecmd\verb+_+menu}]
When using a windowport that supports mouse and clicking on yourself, show
a menu of possible actions for this location. Same as herecmdmenu command.
%.lp
\item[\ib{hilite\verb+_+pet}]
Visually distinguish pets from similar animals (default off).
The behavior of this option depends on the type of windowing you use.