| 1 |
# File: ui_entry.txt |
| 2 |
|
| 3 |
# Configure user interface elements to combine one or more object or player |
| 4 |
# properties and display them. Currently only used for parts of the second |
| 5 |
# character screen and the equippable comparison. |
| 6 |
|
| 7 |
# Descriptions can be edited without bad effects. |
| 8 |
# The name is used to link the element from bindui fields in |
| 9 |
# player_property.txt and object_property.txt and the template fields in this |
| 10 |
# file. Changing it will mean having to adjust those files to keep things |
| 11 |
# linked. |
| 12 |
# The parameter field, if set, means that this is a generic entry that will |
| 13 |
# be repeated for each known value of the parameter. The only currently |
| 14 |
# understood parameters are "element" (which will generate one entry for each |
| 15 |
# element in list-elements.h) and "stat" (which will generate one entry for |
| 16 |
# each stat in list-stats.h). The name of each entry will be the name |
| 17 |
# set followed by the name of the element or stat (for instance <ACID> or |
| 18 |
# <STR>). The label, if not set, of each entry will be the name of the |
| 19 |
# element or stat (for instance ACID or STR). The entries created from a |
| 20 |
# generic one can be specialized later to override fields. Note that when a |
| 21 |
# parameter is set, the undecorated name is not entered into the list of user |
| 22 |
# interface elements and can not be successfully referenced from bindui in |
| 23 |
# other files or template fields in this one. |
| 24 |
# The template field specifies that the entry with that name be used as the |
| 25 |
# default values for the fields in this entry. The template field is optional. |
| 26 |
# The renderer must be one of those set in ui_entry_renderer.txt. |
| 27 |
# The label defines a label to be shown for the element. Changing its value |
| 28 |
# can impact usability. Optionally, shortened versions with |
| 29 |
# label followed by the number of characters as the field name can be |
| 30 |
# provided to override the default of using the next longest abbreviated label |
| 31 |
# that's available or the first n characters of label when an abbreviated |
| 32 |
# version is needed. The second character screen currently uses 5 character |
| 33 |
# labels and the equipment comparison uses 2 (or 3 though only for filter |
| 34 |
# selection) character labels, so only label, label5, label3, and label2 are |
| 35 |
# relevant. |
| 36 |
# combine controls how the values of the properties linked to the element are |
| 37 |
# combined before display. Possible values are limited by the code and must |
| 38 |
# be one of ADD, BITWISE_OR, FIRST, LOGICAL_OR, LOGICAL_OR_WITH_CANCEL, |
| 39 |
# LARGEST, LAST, RESIST_0, or SMALLEST. LOGICAL_OR_WITH_CANCEL works with |
| 40 |
# values in three states (zero, positive, or negative) and the result is |
| 41 |
# zero if all the inputs were zero, one if none of the inputs was negative and |
| 42 |
# at least one was positive, or negative one if at least one of the inputs was |
| 43 |
# negative. RESIST_0 uses Vanilla's resist logic: an immunity trumps |
| 44 |
# all other settings, a positive number of resistances with a positive number |
| 45 |
# of vulnerabilities will be no resistance, a positive number of resistances |
| 46 |
# with no vulnerablities equals resistance, a positive number of vulnerabilities |
| 47 |
# with no resistances equal vulnerable. All the combiners treat the auxiliary |
| 48 |
# values (usually for timed effects) separately. |
| 49 |
# The category and priority fields can be set multiple times. The |
| 50 |
# categories are used to select if an entry appears in a screen. If you want |
| 51 |
# an entry to be included in the second character screen, one of the categories |
| 52 |
# given must be CHAR_SCREEN1. If you want an entry to be included in the |
| 53 |
# equipment comparison screen, one of the categories must be EQUIPCMP_SCREEN. |
| 54 |
# The value given for a priority must be a decimal integer or, for a generic |
| 55 |
# entry, of the special values "index" or "negative_index". Otherwise, the |
| 56 |
# priority will be ignored. The priority hints at what element to display |
| 57 |
# first (higher priority means shown first) and which elements to omit or |
| 58 |
# move to a different page if space is tight (lower priority means |
| 59 |
# omitted/moved first). If a priority is set before any category, that is |
| 60 |
# used as the default priority for all categories. Otherwise, the priority |
| 61 |
# is applied to the last category set. |
| 62 |
# The flags field is optional and sets one or more flags, separated by spaces |
| 63 |
# or |, to modify the interface element's behavior. Only one flag is |
| 64 |
# currently used, TIMED_AS_AUX, which will map timed effects for the properties |
| 65 |
# bound to the element to the auxiliary values passed to the renderer. When |
| 66 |
# that flag is used, any properties bound to the element as auxiliary values |
| 67 |
# will be ignored. |
| 68 |
|
| 69 |
name:stat_mod_ui_compact_0 |
| 70 |
parameter:stat |
| 71 |
renderer:char_screen1_stat_mod_renderer |
| 72 |
combine:ADD |
| 73 |
priority:negative_index |
| 74 |
category:stat_modifiers |
| 75 |
category:CHAR_SCREEN1 |
| 76 |
category:EQUIPCMP_SCREEN |
| 77 |
desc:Generic UI entry for compact display of modifier and sustain information |
| 78 |
desc: for one of the core statistics. Given that this is linked to other |
| 79 |
desc: entries that are hardcoded, the priority should be negative_index and |
| 80 |
desc: this should be the only thing with stat_modifiers and CHAR_SCREEN1 as |
| 81 |
desc: categories. |
| 82 |
|
| 83 |
name:resist_ui_compact_0 |
| 84 |
parameter:element |
| 85 |
renderer:char_screen1_resist_renderer |
| 86 |
combine:RESIST_0 |
| 87 |
priority:negative_index |
| 88 |
category:resistances |
| 89 |
flags:TIMED_AS_AUX |
| 90 |
desc:Generic UI entry for compact display of a resistance flag with the |
| 91 |
desc: label colored by the combined resistance across several sources. |
| 92 |
desc: It is used for rows in the second character screen's display of |
| 93 |
desc: resistances. Specializations below set the label and categories for |
| 94 |
desc: particular screens. |
| 95 |
|
| 96 |
# Specializations for resist_ui_compact_0 to give labels and link to second |
| 97 |
# character screen. There's no specializations for WATER, ICE, GRAVITY, |
| 98 |
# INERTIA, FORCE, or TIME since they are not shown on that panel. |
| 99 |
name:resist_ui_compact_0<ACID> |
| 100 |
label:Acid |
| 101 |
category:CHAR_SCREEN1 |
| 102 |
category:EQUIPCMP_SCREEN |
| 103 |
|
| 104 |
name:resist_ui_compact_0<ELEC> |
| 105 |
label:Elec |
| 106 |
category:CHAR_SCREEN1 |
| 107 |
category:EQUIPCMP_SCREEN |
| 108 |
|
| 109 |
name:resist_ui_compact_0<FIRE> |
| 110 |
label:Fire |
| 111 |
category:CHAR_SCREEN1 |
| 112 |
category:EQUIPCMP_SCREEN |
| 113 |
|
| 114 |
name:resist_ui_compact_0<COLD> |
| 115 |
label:Cold |
| 116 |
category:CHAR_SCREEN1 |
| 117 |
category:EQUIPCMP_SCREEN |
| 118 |
|
| 119 |
name:resist_ui_compact_0<POIS> |
| 120 |
label:Poison |
| 121 |
label5:Pois |
| 122 |
category:CHAR_SCREEN1 |
| 123 |
category:EQUIPCMP_SCREEN |
| 124 |
|
| 125 |
name:resist_ui_compact_0<LIGHT> |
| 126 |
label:Light |
| 127 |
category:CHAR_SCREEN1 |
| 128 |
category:EQUIPCMP_SCREEN |
| 129 |
|
| 130 |
name:resist_ui_compact_0<DARK> |
| 131 |
label:Dark |
| 132 |
category:CHAR_SCREEN1 |
| 133 |
category:EQUIPCMP_SCREEN |
| 134 |
|
| 135 |
name:resist_ui_compact_0<SOUND> |
| 136 |
label:Sound |
| 137 |
category:CHAR_SCREEN1 |
| 138 |
category:EQUIPCMP_SCREEN |
| 139 |
|
| 140 |
name:resist_ui_compact_0<SHARD> |
| 141 |
label:Shard |
| 142 |
category:CHAR_SCREEN1 |
| 143 |
category:EQUIPCMP_SCREEN |
| 144 |
|
| 145 |
name:resist_ui_compact_0<NEXUS> |
| 146 |
label:Nexus |
| 147 |
label2:Nx |
| 148 |
category:CHAR_SCREEN1 |
| 149 |
category:EQUIPCMP_SCREEN |
| 150 |
|
| 151 |
name:resist_ui_compact_0<NETHER> |
| 152 |
label:Nether |
| 153 |
label5:Nethr |
| 154 |
category:CHAR_SCREEN1 |
| 155 |
category:EQUIPCMP_SCREEN |
| 156 |
|
| 157 |
name:resist_ui_compact_0<CHAOS> |
| 158 |
label:Chaos |
| 159 |
category:CHAR_SCREEN1 |
| 160 |
category:EQUIPCMP_SCREEN |
| 161 |
|
| 162 |
name:resist_ui_compact_0<DISEN> |
| 163 |
label:Disenchant |
| 164 |
category:CHAR_SCREEN1 |
| 165 |
category:EQUIPCMP_SCREEN |
| 166 |
|
| 167 |
# The following use good_flag_ui_compact_0 from ui_entry_base.txt. |
| 168 |
|
| 169 |
name:pfear_ui_compact_0 |
| 170 |
template:good_flag_ui_compact_0 |
| 171 |
label:Fear resistance |
| 172 |
label5:pFear |
| 173 |
priority:0 |
| 174 |
|
| 175 |
name:pblind_ui_compact_0 |
| 176 |
template:good_flag_ui_compact_0 |
| 177 |
label:Blindess resistance |
| 178 |
label5:pBlnd |
| 179 |
priority:-1 |
| 180 |
|
| 181 |
name:pconf_ui_compact_0 |
| 182 |
template:good_flag_ui_compact_0 |
| 183 |
label:Confusion resistance |
| 184 |
label5:pConf |
| 185 |
priority:-2 |
| 186 |
|
| 187 |
name:pstun_ui_compact_0 |
| 188 |
template:good_flag_ui_compact_0 |
| 189 |
label:Stun resistance |
| 190 |
label5:pStun |
| 191 |
priority:-3 |
| 192 |
|
| 193 |
name:holdlife_ui_compact_0 |
| 194 |
template:good_flag_ui_compact_0 |
| 195 |
label:Hold life |
| 196 |
label5:HLife |
| 197 |
priority:-4 |
| 198 |
|
| 199 |
name:regen_ui_compact_0 |
| 200 |
template:good_flag_ui_compact_0 |
| 201 |
label:Regeneration |
| 202 |
priority:-5 |
| 203 |
|
| 204 |
name:esp_ui_compact_0 |
| 205 |
template:good_flag_ui_compact_0 |
| 206 |
label:ESP |
| 207 |
priority:-6 |
| 208 |
|
| 209 |
name:see_invis_ui_compact_0 |
| 210 |
template:good_flag_ui_compact_0 |
| 211 |
label:See invisible |
| 212 |
label5:S.Inv |
| 213 |
label2:SI |
| 214 |
priority:-7 |
| 215 |
|
| 216 |
name:free_action_ui_compact_0 |
| 217 |
template:good_flag_ui_compact_0 |
| 218 |
label:Free action |
| 219 |
label5:FrAct |
| 220 |
label2:FA |
| 221 |
priority:-8 |
| 222 |
|
| 223 |
name:feather_falling_ui_compact_0 |
| 224 |
template:good_flag_ui_compact_0 |
| 225 |
label:Feather falling |
| 226 |
label5:Feath |
| 227 |
label2:Ft |
| 228 |
priority:-9 |
| 229 |
|
| 230 |
name:slow_digestion_ui_compact_0 |
| 231 |
template:good_flag_ui_compact_0 |
| 232 |
label:Slow digestion |
| 233 |
label5:S.Dig |
| 234 |
label2:SD |
| 235 |
priority:-10 |
| 236 |
|
| 237 |
name:trap_immunity_ui_compact_0 |
| 238 |
template:good_flag_ui_compact_0 |
| 239 |
label:Trap immunity |
| 240 |
label5:TrpIm |
| 241 |
label2:TI |
| 242 |
priority:-11 |
| 243 |
|
| 244 |
name:bless_ui_compact_0 |
| 245 |
template:good_flag_ui_compact_0 |
| 246 |
label:Bless |
| 247 |
priority:-12 |
| 248 |
|
| 249 |
# The following use other_flag_ui_compact_0 from ui_entry_base.txt. |
| 250 |
|
| 251 |
name:imphp_ui_compact_0 |
| 252 |
template:other_flag_ui_compact_0 |
| 253 |
label:Impaired HP recovery |
| 254 |
label5:ImpHP |
| 255 |
label2:IH |
| 256 |
priority:0 |
| 257 |
|
| 258 |
name:impsp_ui_compact_0 |
| 259 |
template:other_flag_ui_compact_0 |
| 260 |
label:Impaired mana recovery |
| 261 |
label5:ImpSP |
| 262 |
label2:IS |
| 263 |
priority:-1 |
| 264 |
|
| 265 |
name:fear_ui_compact_0 |
| 266 |
template:other_flag_ui_compact_0 |
| 267 |
label:Fear |
| 268 |
priority:-2 |
| 269 |
|
| 270 |
name:aggravate_ui_compact_0 |
| 271 |
template:other_flag_ui_compact_0 |
| 272 |
label:Aggravate |
| 273 |
label5:Aggrv |
| 274 |
priority:-3 |
| 275 |
|
| 276 |
name:noteleport_ui_compact_0 |
| 277 |
template:other_flag_ui_compact_0 |
| 278 |
label:No teleportation |
| 279 |
label5:NoTel |
| 280 |
label2:NT |
| 281 |
priority:-4 |
| 282 |
|
| 283 |
name:drainxp_ui_compact_0 |
| 284 |
template:other_flag_ui_compact_0 |
| 285 |
label:Drain experience |
| 286 |
label5:DrExp |
| 287 |
label2:DE |
| 288 |
priority:-5 |
| 289 |
|
| 290 |
name:sticky_ui_compact_0 |
| 291 |
template:other_flag_ui_compact_0 |
| 292 |
label:Sticky curse |
| 293 |
label5:Stick |
| 294 |
label2:Sy |
| 295 |
priority:-6 |
| 296 |
|
| 297 |
name:fragile_ui_compact_0 |
| 298 |
template:other_flag_ui_compact_0 |
| 299 |
label:Fragile |
| 300 |
label5:Fragl |
| 301 |
priority:-7 |
| 302 |
|
| 303 |
# The following use numeric_as_sign_ui_0 from ui_entry_base.txt. |
| 304 |
|
| 305 |
name:stealth_ui_compact_0 |
| 306 |
template:numeric_as_sign_ui_0 |
| 307 |
label:Stealth |
| 308 |
label5:Stea. |
| 309 |
priority:0 |
| 310 |
|
| 311 |
name:search_ui_compact_0 |
| 312 |
template:numeric_as_sign_ui_0 |
| 313 |
label:Search |
| 314 |
label5:Sear. |
| 315 |
priority:-1 |
| 316 |
|
| 317 |
name:infravision_ui_compact_0 |
| 318 |
template:numeric_as_sign_ui_0 |
| 319 |
label:Infravision |
| 320 |
priority:-2 |
| 321 |
|
| 322 |
name:tunneling_ui_compact_0 |
| 323 |
template:numeric_as_sign_ui_0 |
| 324 |
label:Tunneling |
| 325 |
label5:Tunn. |
| 326 |
priority:-3 |
| 327 |
|
| 328 |
name:speed_ui_compact_0 |
| 329 |
template:numeric_as_sign_ui_0 |
| 330 |
label:Speed |
| 331 |
priority:-4 |
| 332 |
|
| 333 |
name:blows_ui_compact_0 |
| 334 |
template:numeric_as_sign_ui_0 |
| 335 |
label:Attack speed |
| 336 |
label5:Blows |
| 337 |
priority:-5 |
| 338 |
|
| 339 |
name:shots_ui_compact_0 |
| 340 |
template:numeric_as_sign_ui_0 |
| 341 |
label:Shooting speed |
| 342 |
label5:Shots |
| 343 |
priority:-6 |
| 344 |
|
| 345 |
name:shooting_power_ui_compact_0 |
| 346 |
template:numeric_as_sign_ui_0 |
| 347 |
label:Shooting power |
| 348 |
label5:Might |
| 349 |
priority:-7 |
| 350 |
|
| 351 |
name:light_ui_compact_0 |
| 352 |
template:numeric_as_sign_ui_0 |
| 353 |
label:Light |
| 354 |
label2:Lt |
| 355 |
priority:-8 |
| 356 |
|
| 357 |
name:damage_reduction_ui_compact_0 |
| 358 |
template:numeric_as_sign_ui_0 |
| 359 |
label:Damage reduction |
| 360 |
label5:D.Red |
| 361 |
label2:DR |
| 362 |
priority:-9 |
| 363 |
|
| 364 |
name:movement_speed_ui_compact_0 |
| 365 |
template:numeric_as_sign_ui_0 |
| 366 |
label:Movement speed |
| 367 |
label5:Moves |
| 368 |
label2:MS |
| 369 |
priority:-10 |