Debian Codegraph @

lib/gamedata/ui_entry_renderer.txt

raw
1 # File: ui_entry_renderer.txt
2
3 # Configure how a quantity is rendered in the user interface. Currently only
4 # used for the parts of the second character screen and the equippable
5 # comparison.
6
7 # The name is used to link the renderer with a user interface element in
8 # ui_entry.txt so changes here would have to be mirrored there to keep the
9 # link.
10 # code binds the renderer to a specific backend in the executable. It must
11 # be one of the values listed in list-ui-entry-renderers.h.
12 # combiner controls how multiple values are combined when displaying the
13 # combined value or choosing how to color the label. Possible values are
14 # limited by the code and must be one of ADD, BITWISE_OR, FIRST, LOGICAL_OR,
15 # LOGICAL_OR_WITH_CANCEL, LARGEST, LAST, RESIST_0, or SMALLEST. Those are the
16 # same (and have have the same meanings) as those described in ui_entry.txt.
17 # If not set, the default combiner for the backend is used.
18 # colors and labelcolors configure the palette of colors used for either the
19 # value or the label. How indices into the palette are used depends on the
20 # backend the renderer is bound to. Changes to colors and labelcolors can
21 # affect usability. Both are optional; if not set, default values from the
22 # backend are used.
23 # symbols defines the palette of symbols the renderer uses if it converts
24 # values to symbols (some of the rendering functions won't use the symbols
25 # field). How indices into the palette are used depends on the backend the
26 # renderer is bound to. Changes to symbols can affect usability. It is
27 # optional. If not set, default values from the backend are used.
28 # ndigit is the number of digits to display for a numeric value. That is
29 # only used by some renders and does not need to be set. If set it must be a
30 # positive integer. If not set, the default value from the backend will be
31 # used.
32 # sign configures whether a sign indicator is shown with numeric values. That
33 # is only used by some renderers and does not need to be set. If set, it
34 # must be one of the following: NO_SIGN, ALWAYS_SIGN, or NEGATIVE_SIGN.
35 # NO_SIGN specifies that no sign indicator will be shown. ALWAYS_SIGN
36 # specifies that a sign indicator will always be shown (+ will be used for
37 # zeros). NEGATIVE_SIGN specifies that a sign indicator will only be shown
38 # for negative values. If not set, the default value from the backend will be
39 # used.
40 # units configures whether a label is shown immediately after numeric values.
41 # This is only used by some renderers and does not need to be set. By default,
42 # numeric values will not be labeled with units.
43 # combined-renderer sets name of the renderer to use if the renderer is asked
44 # to display the combined value. That name must be one of the renderers
45 # configured in this file for the combined value to be shown. If
46 # combined-renderer is omitted, the renderer will not show a combined value.
47
48 # COMPACT_RESIST_RENDERER_WITH_COMBINED_AUX renders one or more resistance
49 # values with the label colored by the combined resistance. The auxiliary
50 # values are treated as timed resistances. The default combiner is RESIST_0.
51 # One of twenty-two symbols (unknown, not present, none, resist, vulnerable,
52 # immune, timed resist + none, timed resist + resist, timed resist +
53 # vulnerable, timed vulnerability + none, timed vulnerability + resist,
54 # timed immunity + none, timed immunity + resist, timed immunity +
55 # vulnerable, resist + vulnerable, timed resist + resist + vulnerable,
56 # timed vulnerability + resist + vulnerable, timed immunity + resist +
57 # vulnerable, timed resist + timed vulnerability + none, timed resist +
58 # timed vulnerability + resist, timed resist + timed vulnerability + vulnerable,
59 # timed resist + timed vulnerability + resist + vulnerability) are used for
60 # each resistance value. Each of those symbols has a corresponding color
61 # (from the first 22 colors) and alternate color (from the second 22 colors).
62 # The alternate color is used for every other resist. A palette of 13 colors
63 # is used for the label. They are:
64 # unknown rune
65 # no net permanent resistance or immunity and no net timed effects
66 # net permanent resistance and no net timed effects
67 # net permanent vulnerability and either timed vulnerability or no net timed
68 # effects
69 # permanent immunity with or without any timed effects
70 # a net timed resistance with no net permanent effects
71 # a net timed resistance with net permanent resistance
72 # a net timed resistance with net permanent vulnerability
73 # timed vulnerability with no net permanent effects
74 # timed vulnerability with net permanent resistance
75 # timed immunity with no net permanent effects
76 # timed immunity with net permanent resistance
77 # timed immunity with net permanent vulnerability
78
79 # COMPACT_FLAG_RENDERER_WITH_COMBINED_AUX renders one or more boolean flags
80 # with the label colored by the combined (logical or) value. The auxiliary
81 # values are treated as timed effects. The default combiner is LOGICAL_OR.
82 # One of five symbols (unknown, not present, off, on, timed on) is used for
83 # each flag. The symbol for the timed effect is only used if the permanant
84 # effect is known and is off. Each of five symbols has a corresponding color
85 # (from the first five colors) and alternate color (from the second five
86 # colors). The alternate color is used for every other flag. A palette of
87 # four colors is used for the label. They are unknown rune, no flags are
88 # known to be on and there is no timed effect, at least one flag is on, and no
89 # flags are known to be on but there is at least one timed effect.
90
91 # COMPACT_FLAG_WITH_CANCEL_RENDERER_WITH_COMBINED_AUX renders one or more
92 # flags (off (0), on (positive), or cancel (negative)) with the label colored
93 # by the combined value. The auxiliary values are treated as timed effects.
94 # The default combiner is LOGICAL_OR_WITH_CANCEL. One of eleven symbols
95 # (unknown, not present, off, on, cancel, timed on + off, timed on + on, timed
96 # on + cancel, timed cancel + off, timed cancel + on, timed cancel + cancel) is
97 # used for each flag. Each of the symbols has a corresponding color (from the
98 # first eleven colors) and alternate color (from the second eleven colors).
99 # The alternate color is used for every other flag. A palette of seven colors
100 # is used for the label. They are unknown rune, the combined effect is off with
101 # at least one permanent cancel, the combined effect is off with at least one
102 # timed cancel and no permanent on flags, the combined effect is off with at
103 # least one permanent on flag and one timed cancel, the combined effect is off
104 # and doesn't fall in one of the earlier categories, the combined effect is on
105 # with at least one permanent on flag, and the combined effect is on with no
106 # permanent on flags.
107
108 # NUMERIC_AS_SIGN_RENDERER_WITH_COMBINED_AUX renders one or more integer
109 # modifiers with the label colored by the combined (by addition) value. The
110 # auxiliary values are treated as timed effects. The default combiner is ADD.
111 # One of seven symbols (unknown, not present, zero, positive, negative, timed
112 # positive, timed negative) is used for each modifier. The symbols for the
113 # timed effects are only used if the permanent effect is known and is zero.
114 # Each of the symbols has a corresponding color (from the first seven colors)
115 # and alternate color (from the second seven colors). The alternate color is
116 # used for every other modifier. A palette of six colors is used for the
117 # label. They are:
118 # unknown rune
119 # the sum of the known effects is zero and the sum of the timed effects is zero
120 # the sum of the known effects is positive
121 # the sum of the known effects is negative
122 # the sum of the known effects is zero; the sum of the timed effects is
123 # positive
124 # the sum of the known effects is zero; the sum of the timed effects is
125 # negative
126
127 # NUMERIC_RENDERER_WITH_COMBINED_AUX renders one or more integer values
128 # as decimal integers with the label colored by the combined value. The
129 # auxiliary values are treated as timed effects. The default combiner is ADD.
130 # One of seven colors (unknown, not present, zero, positive, negative, timed
131 # positive, timed negative) or an alternate set of seven colors for those same
132 # conditions is used for each modifer. The alternate colors are used for every
133 # other value. The colors for the timed effects are only used if the permanent
134 # effect is known and is zero. There are seven symbols that may be used. The
135 # first symbol is used when the value is unknown. The second symbol is used
136 # when the value is not present. The third symbol is used when both the value
137 # and the auxiliary value are zero. For the first three symbols, if the
138 # symbol is '0', it may be shown with a sign depending on the setting for the
139 # sign indicator described below. The fourth symbol is used in place of
140 # digits when the known permanent effect is positive and the value is too
141 # large to display with the given number of digits. The fifth symbol is used
142 # in place of digits when the known permanent effect is negative and the value
143 # is too large to display with the given number of digits. The sixth symbol
144 # is used in place of digits when the known permanent effect is zero and the
145 # timed effect is positive but too large to display with the given number of
146 # digits. The seventh symbol is used in place of digits when the known
147 # permanent effect is zero and the timed effect is negative but too large to
148 # display with the given number of digits. A palette of six colors is used
149 # for the label. They are:
150 # unknown rune
151 # the sum of the known effects is zero and the sum of the timed effects is zero
152 # the sum of the known effects is positive
153 # the sum of the known effects is negative
154 # the sum of the known effects is zero; the sum of the timed effects is
155 # positive
156 # the sum of the known effects is zero; the sum of the timed effects is
157 # negative
158 #
159 # The number of digits is used to configure the number of digits shown for
160 # each value. The default value for the number of digits is one. The sign
161 # display is used to configure whether the digits are shown with a sign
162 # indicator. By default, a sign indicator will not be shown. The units label
163 # configures whether that label is shown after each numeric value. By
164 # default, no such label is shown.
165
166 # NUMERIC_RENDERER_WITH_BOOL_AUX renders one or more integer values
167 # as decimal integers with the label colored by the combined value. The
168 # auxiliary values are treated as booleans (one use would be for sustains).
169 # The default combiner is ADD. One of eight colors (unknown, not present,
170 # zero with the auxilary flag off, zero with the auxiliary flag on, positive
171 # with the auxiliary flag off, positive with the auxiliary flag on, negative
172 # with the auxiliary flag off, negative with the auxiliary flag on) or an
173 # alternate set of eight colors for those same conditions is used for each
174 # modifier. The alternate colors are used for every other value. There are
175 # six symbols that may be used. The first symbol is used when the value is
176 # unknown. The second symbol is used when the value is not present. The
177 # third symbol is used when the value is zero and the auxiliary flag is off.
178 # The fourth symbol is used when the value is zero and auxiliary flag is on.
179 # For the first four symbols, if the symbol is '0', then it may be shown with
180 # a sign, depending on the the setting for the sign indicator described below.
181 # The fifth symbol is used in place of digits when the value is positive and
182 # too large to display with the given number of digits. The sixth symbol is
183 # used in place of digits when the value is negative and too large to display
184 # with the given number of digits. A palette of seven colors is used for the
185 # label. They are:
186 # unknown rune
187 # the sum of the known values is zero and none of the auxiliary flags are on
188 # the sum of the known values is zero and at least one auxiliary flag is on
189 # the sum of the known values is positive and none of the auxiliary flags is on
190 # the sum of the known values is positive and at least one auxiliary flag is on
191 # the sum of the known values is negative and none of the auxiliary flags is on
192 # the sum of the known values is positive and at least one auxiliary flag is on
193 #
194 # The number of digits is used to configure the number of digits shown for
195 # each value. The default value for the number of digits is one. The sign
196 # display is used to configure whether the digits are shown with a sign
197 # indicator. By default, a sign indicator will not be shown. The units label
198 # configures whether that label is shown after each numeric value. By default,
199 # no such label is shown.
200
201 name:char_screen1_resist_renderer
202 code:COMPACT_RESIST_RENDERER_WITH_COMBINED_AUX
203 colors:wwwwwwGGGrrGGGwGrGwwrwWWWWWWGGGrrGGGWGrGWWrW
204 labelcolors:swBrgwBrwBwBr
205 symbols:?..+-*!^.=.%%%~!=%~+=~
206
207 name:char_screen1_flag_renderer
208 code:COMPACT_FLAG_RENDERER_WITH_COMBINED_AUX
209 colors:wwwwGWWWWG
210 labelcolors:swBw
211 symbols:?..+!
212
213 name:char_screen1_flag_with_cancel_renderer
214 code:COMPACT_FLAG_WITH_CANCEL_RENDERER_WITH_COMBINED_AUX
215 colors:wwwwwGwwGGwWWWWWGWWGGW
216 labelcolors:swwwwBw
217 symbols:?..+-!+-=.-
218
219 name:char_screen1_numeric_as_sign_renderer
220 code:NUMERIC_AS_SIGN_RENDERER_WITH_COMBINED_AUX
221 colors:wwwwwGwWWWWWGW
222 labelcolors:swBrww
223 symbols:?..+-!=
224
225 # Currently, labelcolors has no impact on what's shown in the character screen
226 # and what uses this internally expects ndigit to be one, sign to be NO_SIGN,
227 # and nothing to be set for units.
228 name:char_screen1_stat_mod_renderer
229 code:NUMERIC_RENDERER_WITH_BOOL_AUX
230 colors:sdsgGgrRsdsgGgrR
231 labelcolors:wwwwwww
232 symbols:? .s*=
233 ndigit:1
234 sign:NO_SIGN