]> granicus.if.org Git - nethack/commit
core support for status field highlighting (trunk only)
authornethack.allison <nethack.allison>
Sun, 30 Nov 2003 05:51:53 +0000 (05:51 +0000)
committernethack.allison <nethack.allison>
Sun, 30 Nov 2003 05:51:53 +0000 (05:51 +0000)
commit10480f4397c84000ed7acdd6ca3619a6e307e93b
tree30ade421433a5f79219762a923f12490b4e2fd8f
parentc1c4ba99d909ac97695728d97c5596e35e3be9da
core support for status field highlighting (trunk only)

This provides the core support needed for status field highlighting.
This patch doesn't actually perform status field highlighting for any port,
but provides the core hooks for doing so.

The syntax is:
OPTIONS=hilite_status:{fieldname}/{threshold}/{below}/{above}
where {fieldname} is the name of a status field.
           {threshold} is the value used as the threshold to trigger a display
                             change.  It can also be set to "updown" to trigger
                             a display change whenever it rises or whenever it falls.
                             If you end the threshold value with %, then it signifies
                             that you want to trigger the display change based on the
                             percentage of maximum.
         {below}, {above}
                        are the color or display attribute that you want to use when
                        the field value is underneath the threshold. Supported display
                        fields are:  normal, inverse, bold, black, red, green,
                                         brown, blue, magenta, cyan, gray, orange,
                                         bright-green, yellow, bright-blue, bright-magenta,
                                         bright-cyan, or white.
Valid field names are:
        alignment, armor-class, carrying-capacity,
        charisma, condition, constitution, dexterity,
        dungeon-level, experience-level, experience,
        gold, HD, hitpoints-max, hitpoints, hunger,
        intelligence, power-max, power, score,
        strength, time, title, wisdom

Refer to window.doc for details. Guidebook updates to come later.
21 files changed:
doc/window.doc
include/botl.h
include/config.h
include/decl.h
include/extern.h
include/flag.h
include/winprocs.h
include/wintype.h
src/botl.c
src/files.c
src/options.c
src/pline.c
sys/amiga/winami.c
sys/mac/macwin.c
sys/wince/mswproc.c
win/Qt/qt_win.cpp
win/X11/winX.c
win/gem/wingem.c
win/gnome/gnbind.c
win/tty/wintty.c
win/win32/mswproc.c