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.
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
/* SCCS Id: @(#)botl.h 3.4 $Date$ */
|
|
/* Copyright (c) Michael Allison, 2003 */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef BOTL_H
|
|
#define BOTL_H
|
|
|
|
#ifdef STATUS_VIA_WINDOWPORT
|
|
|
|
#define BL_FLUSH -1
|
|
#define BL_TITLE 0
|
|
#define BL_STR 1
|
|
#define BL_DX 2
|
|
#define BL_CO 3
|
|
#define BL_IN 4
|
|
#define BL_WI 5
|
|
#define BL_CH 6
|
|
#define BL_ALIGN 7
|
|
#define BL_SCORE 8
|
|
#define BL_CAP 9
|
|
#define BL_GOLD 10
|
|
#define BL_ENE 11
|
|
#define BL_ENEMAX 12
|
|
#define BL_XP 13
|
|
#define BL_AC 14
|
|
#define BL_HD 15
|
|
#define BL_TIME 16
|
|
#define BL_HUNGER 17
|
|
#define BL_HP 18
|
|
#define BL_HPMAX 19
|
|
#define BL_LEVELDESC 20
|
|
#define BL_EXP 21
|
|
#define BL_CONDITION 22
|
|
#define MAXBLSTATS 23
|
|
|
|
/* Boolean condition bits for the condition mask */
|
|
|
|
#define BL_MASK_BLIND 0x00000001L
|
|
#define BL_MASK_CONF 0x00000002L
|
|
#define BL_MASK_FOODPOIS 0x00000004L
|
|
#define BL_MASK_ILL 0x00000008L
|
|
#define BL_MASK_HALLU 0x00000010L
|
|
#define BL_MASK_STUNNED 0x00000020L
|
|
#define BL_MASK_SLIMED 0x00000040L
|
|
|
|
#define REASSESS_ONLY TRUE
|
|
|
|
#ifdef STATUS_HILITES
|
|
/* hilite status field behavior - coloridx values */
|
|
#define BL_HILITE_NONE -1 /* no hilite of this field */
|
|
#define BL_HILITE_INVERSE -2 /* inverse hilite */
|
|
#define BL_HILITE_BOLD -3 /* bold hilite */
|
|
/* or any CLR_ index (0 - 15) */
|
|
#define BL_TH_NONE 0
|
|
#define BL_TH_VAL_PERCENTAGE 100 /* threshold is percentage */
|
|
#define BL_TH_VAL_ABSOLUTE 101 /* threshold is particular value */
|
|
#define BL_TH_UPDOWN 102 /* threshold is up or down change */
|
|
#define BL_TH_CONDITION 103 /* threshold is bitmask of conditions */
|
|
#endif
|
|
|
|
extern const char *status_fieldnames[]; /* in botl.c */
|
|
#endif
|
|
|
|
#endif /* BOTL_H */
|