Qt extended commands enhancement
For Qt's pick-an-exetended-command dialog, allow a player to toggle the grid layout from column-oriented to row-oriented and vice versa and when in wizard mode to cycle the set of shown (and typable) commands from 'all' to 'normal mode-only' to 'wizard mode-only' back to 'all'. The most recent values are saved by Qt along with tile size, font size, and some other stuff. The extended command dialog has a Reset button to force them (the two extended command values) back to their defaults. The dialog layout has a slight change to conserve screen space as well as three additional control buttons: Was Now | [ Cancel ] | [Cancel] [Filter][Layout][Reset ] |# |# Grid Title | Grid title | [cmd 1] [cmd R+1] [cmd 2*R+1] ... | [cmd 1] [cmd R+1] [cmd 2*R+1] ... | [cmd 2] [cmd R+2] | [cmd 2] [cmd R+2] |... |... | [cmd R] [cmd 2*R] | [cmd R] [cmd 2*R] '#' is the prompt where typed text gets echoed and 'R' is the number of rows in the grid and varies by the set of commands from the current filter. Grid dimensions have been adjusted: 'all' is 13x9, 'normal' is 13x7, and 'wizard' is 7x4 or 4x7 depending on layout orientation. The wizard mode-only filter setting probably isn't very useful because you can only type--or click on--commands which are visible. So when set to wizard mode-only, you can't #quit for instance. (Via extended command; there are still menu choices for that particular action. And it's trivial to change filter.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.375 $ $NHDT-Date: 1607200174 2020/12/05 20:29:34 $
|
||||
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.376 $ $NHDT-Date: 1607252278 2020/12/06 10:57:58 $
|
||||
|
||||
General Fixes and Modified Features
|
||||
-----------------------------------
|
||||
@@ -662,6 +662,12 @@ Qt: clicking on the paper doll runs the #seeall command (inventory of wielded
|
||||
Qt: clicking on the status window runs the #attributes command (^X)
|
||||
Qt: add a Search button to the toolbar
|
||||
Qt: support the 'hitpointbar' option
|
||||
Qt: add Filter, Layout, and Reset buttons to the extended command selector;
|
||||
Filter is only useful in wizard mode, allowing changing the set of
|
||||
extended commands between "all", "normal mode only", "extra wizard
|
||||
mode only"; Layout redisplays the grid of command buttons, toggling
|
||||
from down columns to across rows or vice versa; Reset puts both back
|
||||
to their default settings and clears any pending typed input
|
||||
|
||||
|
||||
NetHack Community Patches (or Variation) Included
|
||||
|
||||
Reference in New Issue
Block a user