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:
@@ -982,6 +982,8 @@ Force a lock. Autocompletes. Default key is 'M-f'.
|
||||
Show what type of thing a map symbol corresponds to. Default key is ';'.
|
||||
.lp #help
|
||||
Show the help menu. Default key is '?', and 'h' if number_pad is on.
|
||||
.lp #herecmdmenu
|
||||
Show a menu of possible actions in your current location.
|
||||
.lp #history
|
||||
Show long version and game history. Default key is 'V'.
|
||||
.lp #inventory
|
||||
@@ -2556,6 +2558,9 @@ with the `/' command, ask if you want to see it (default on). Turning help
|
||||
off makes just looking at things faster, since you aren't interrupted with the
|
||||
``More info?'' prompt, but it also means that you might miss some
|
||||
interesting and/or important information. Persistent.
|
||||
.lp herecmd_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 hilite_pet
|
||||
Visually distinguish pets from similar animals (default off).
|
||||
The behavior of this option depends on the type of windowing you use.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -687,6 +687,8 @@ Master Key of Thievery always finds door and chest traps if used to lock or
|
||||
blessed (for non-rogues); player is offered the opportunity to disarm
|
||||
"Elbereth" must now be the only engraved text on a square to function
|
||||
"Elbereth" now erodes based on attacks by the player, not monsters scared
|
||||
option herecmd_menu to make a mouse click on your character pop up
|
||||
a context menu, and extended command #herecmdmenu to do the same
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific New Features
|
||||
|
||||
Reference in New Issue
Block a user