Modding:Colors & Object Rendering: Difference between revisions
(→Beta Modding: rename) |
|||
Line 44: | Line 44: | ||
For help formatting a string with colors, check out the super-useful [https://qud-colorgen.herokuapp.com/ qud-colorgen] utility (created by crayon). | For help formatting a string with colors, check out the super-useful [https://qud-colorgen.herokuapp.com/ qud-colorgen] utility (created by crayon). | ||
== | == 2.0.200.0+ Modding == | ||
{{betamoddingcontent}} | {{betamoddingcontent}} | ||
Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml. | Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml. |
Revision as of 20:26, 13 July 2020
This page is about modding. See the modding overview for an abstract on modding. |
Overview
Colors are defined in display.text.
Each color is defined by a single letter. &<code> means to set the foreground color, ^<code> means to set the background color.
Only the preset letter codes are allowed, adding new colors isn't totally trivial at the moment.
Code | Name | Hex | |
---|---|---|---|
r | dark red / crimson | #a64a2e | █ |
R | red / scarlet | #d74200 | █ |
o | dark orange | #f15f22 | █ |
O | orange | #e99f10 | █ |
w | brown | #98875f | █ |
W | gold / yellow | #cfc041 | █ |
g | dark green | #009403 | █ |
G | green | #00c420 | █ |
b | dark blue | #0048bd | █ |
B | blue / azure | #0096ff | █ |
c | dark cyan / teal | #40a4b9 | █ |
C | cyan | #77bfcf | █ |
m | dark magenta / purple | #b154cf | █ |
M | magenta | #da5bd6 | █ |
k | #0f3b3a | █ | |
K | dark grey / black | #155352 | █ |
y | grey | #b1c9c3 | █ |
Y | white | #ffffff | █ |
In XML files, such as ObjectBlueprints.xml, the ampersand (&) must be replaced by the encoded ampersand (&)
Prefix | Text | Xml |
---|---|---|
Foreground | &<code> | &<code> |
Background | ^<code> | ^<code> |
Render Part
ColorString contains the foreground and (optionally) the background string for the ascii and tiles. Examples: &B
or &B^r
DetailColor changes the "third" color used only for tiles, not the ascii. DetailColor is always just a single character. Example: g
So ColorString="&M^g"
would be foreground bright magenta with a background color of green,
Like this!
TileColor overrides ColorString when tiles are being used.
If you want to color an item's display name, you enter color codes directly in the display name itself, for example the beaded bracelet:
<part Name="Render" DisplayName="&Cb&Be&ba&cd&Ce&Bd&y bracelet" ColorString="&C"></part>
Note that if a detail color is not specified, it will default to the background viridian color.
Additional Notes
Most default text in the game is colored with the bright grey (&y) color, so you'll often see an &y
at the end of strings to reset the color back to normal.
For help formatting a string with colors, check out the super-useful qud-colorgen utility (created by crayon).
2.0.200.0+ Modding
This section contains modding information that is only applicable to the in-development beta branch of Caves of Qud on Steam. |
Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml.
{{color template|your text to color here}}
List of possible templates
Shader | Colors | Type |
---|---|---|
hologram | b-B-C-c | sequence |
ydfreehold | r-R-k-c-C-W-W-C-c-r-R | sequence |
purple | m | sequence |
paisley | m-M-Y-M-m | sequence |
biomech | w-w-r-r-r-w-r-r | sequence |
azure | B | sequence |
camouflage | g-g-G-g-K-g-g-G-G-K | sequence |
rainbow | r-R-W-G-B-b-m | alternation |
metamorphic | y-y-y-Y-Y-Y-M-M-M-m-m-m-m | sequence |
transkinetic | Y-C-C-c-y-K-K-y-R-W-W-Y | sequence |
dark red | r | sequence |
ubernostrum | c-g-G-W-w-c-C-G-g-w-W | sequence |
desert camouflage | w-w-W-w-K-w-w-W-W-K | sequence |
rocket | Y-W-R-R-r-y | alternation |
rubbergum | W-W-w-w-y-y-Y-W-W | sequence |
visage | R-r-b-B-Y-y | sequence |
snail-encrusted | w-W-Y-y | sequence |
dreamsmoke | b-b-b-b-y-Y-Y-W-w-b-b-b | sequence |
polarized | K-y-Y-y-K-y-Y-y-K | alternation |
ironshank | K-y-Y-y | sequence |
gold | W | sequence |
dark fiery | r-R-W-R-r | alternation |
bethsaida | w-W-C-c-m-c-C-W-w | sequence |
filthy | w-w-K-w-K-w-W | sequence |
sun | W-R-W | alternation |
pearly | Y-Y-y | sequence |
cider | r | solid |
engraved | Y-y-c-C | sequence |
coated in plasma | K-K-y-g-G-Y-k-Y-Y-k-Y-G-g-y-K-K | sequence |
gaslight | g-g-w-W-w-g-g | alternation |
entropic | K-K-m-K-K-K-m-m-K-K-y | sequence |
neutronic | B-b-K-y-Y | sequence |
lanterned | y-y-y-y-Y-W-Y-y-y | alternation |
dark magenta | m | sequence |
scarlet | R | sequence |
overloaded | y-y-w-W-R-W-w-y-y | alternation |
dark blue | b | sequence |
red | R | sequence |
patchwork | W-w-r-R-W-w-b-B-W | sequence |
nanotech | K-K-y-K | sequence |
brainbrine | g-g-g-w-W-W-W-w-g-g-g | sequence |
teal | c | sequence |
bee | K-w-W-Y-W-w-K | alternation |
cryogenic | Y-C-C-Y-c-c-K-y-Y | sequence |
eater | Y-Y-M-Y-Y-Y | sequence |
C | C | sequence |
B | B | sequence |
G | G | sequence |
dark orange | o | sequence |
feathered | C-B-b-g-G-g-b-B-C | alternation |
K | K | sequence |
M | M | sequence |
O | O | sequence |
internals | W | solid |
R | R | sequence |
prismatic | r-R-W-G-B-b-m | sequence |
W | W | sequence |
lovesickness | r-R-M-m-r-R-M | sequence |
Y | Y | sequence |
fiery | R | sequence |
urban camouflage | y-y-K-y-K-y-y-K-y-K | sequence |
crimson | r | sequence |
leopard | W-W-w-w-W-K-K-w-w-W-W | sequence |
glittering | K-K-y-M-y-K-K | sequence |
ghostly | Y-Y-y-y-K-K | alternation |
palladium mesh | c-c-c-c-C-W-Y-W-C | sequence |
tarnished | G-G-g | sequence |
c | c | sequence |
b | b | sequence |
shimmering | Y-Y-y-y-K-K-y-y | sequence |
g | g | sequence |
earth | b-B-W-g-G | sequence |
k | k | sequence |
qon | m-b-B | sequence |
m | m | sequence |
leafy | g-g-G | sequence |
o | o | sequence |
nectar | W-w-g-G | sequence |
shugruith | K-y-W-w-m-w-W-y-K | sequence |
putrid | K | solid |
agolgot | K-g-w-m-w-g-K | sequence |
r | r | sequence |
plasma | g-G-Y-Y-G-g | sequence |
love | Y-R-Y-Y | sequence |
w | w | sequence |
zetachrome | m-M-Y-C-c-c-C-Y-M-m | alternation |
y | y | sequence |
watery | B-C-Y-C-B | alternation |
black | K | sequence |
turbow | K-y-Y-Y-R-r | sequence |
psychalflesh | w-w-w-r-R-M-M-m-M-M-R-r-w-w-w-w | sequence |
yellow | W | sequence |
thermo | R-R-r-c-b-B-B | sequence |
white | Y | sequence |
telemetric | K-y-c-C-Y-W-C-c-y-K | alternation |
metachrome | w-W-Y-C-c-c-C-Y-W-w | alternation |
tartan | y-K-g-G-K-R-r-K-y | sequence |
plastifer | K-y-Y-y | sequence |
psymeridian | K-K-y-y-y-m-M-M-M-M-m-y-y-y-K-K | sequence |
sunslag | r-W-Y-Y-Y-W-r | sequence |
extradimensional | M-M-m-m-y-y-Y-Y-O-Y-Y-y-m-m-M-M | alternation |
sunset | b-B-B-M-m-r-R-W-C-C-W-R-r-m-M-B-B-b | alternation |
blaze | r-r-R-W-Y | sequence |
structural | Y-y-K-y-Y | alternation |
amorous | r-R-M-m | alternation |
starry | K-Y-K-K-Y-K | sequence |
refractive | y-Y | sequence |
spiked | R-Y | bordered |
sphynx | C-c-m-M | sequence |
spaser | K-g-G-G-g-K | sequence |
olive | g-g-G-W-w | sequence |
magenta | M | sequence |
soul | W-w-c-C-Y-C-c-w-W | alternation |
graffitied | R-r-w-W-Y-y-r-R-W-w | sequence |
snakeskin | g-c-C-G | sequence |
slimy | g | solid |
skulk | b-b-B-b-b | sequence |
dark gray | K | sequence |
silvery | Y | sequence |
rusty | r | sequence |
playernotes | Y | solid |
green | G | sequence |
fungicide | M-M-R-r-K-r-R | sequence |
nervous | g-g-w-W-w-g-g | sequence |
hotkey | W | solid |
gray | y | sequence |
jungle | g-g-w-G-g-m-g-w-w-K-g-m-G-G-w | sequence |
shemesh | r-r-R-R-W-W-Y | sequence |
cloning | Y-Y-Y-Y-Y-Y-M-Y-M-Y-Y-Y-Y-Y-Y | sequence |
lacquered | Y-y-K-y-Y-y-K-y-Y-y | sequence |
shade | y-K-c-b-B-y-C-y-K | sequence |
scaled | g-G-W-w-g-G | sequence |
bio | g-G-W-M-W-G-g-g-g-g-g | sequence |
rules | C | solid |
psionic | b-B-C-c-b-B-C | alternation |
spring-turret | c-c-C-C-y-y-y-y-y-C-C-c-c | sequence |
glotrot | K-K-r-R-r | sequence |
mercurial | c-c-C-W-Y-W-C-c-c | alternation |
peridot | G-g-w-W-Y-W-G | sequence |
crystalline | m-m-m-b-B-Y-B-b-m-m-m | sequence |
rermadon | Y-G-g-m-m-g-G-Y | sequence |
resonance | c-c-C-C-W-C-C-c-c | alternation |
crochide | g-g-g-g-g-G | sequence |
plaid | g-K-G-W-G | sequence |
syphon | c-c-c-C-W-Y | sequence |
cloudy | y-y-Y-y-Y-Y | sequence |
quantum | m-m-m-m-m-m-m-Y-Y-Y-Y-Y | sequence |
nanoneuro | r-R-G-g-K-K-g-G-R-r-g | sequence |
brown | w | sequence |
arctic camouflage | y-y-Y-y-K-y-y-Y-Y-K | sequence |
astral | Y-y-K-y-Y | alternation |
sparkling | y-y-Y | sequence |
kesil | m-m-M-Y-y | sequence |
hypertractor | r-R-W-w-c-C-B-b | sequence |
horned | y-W | bordered |
defoliant | W-W-G-g-K-g-G | sequence |
ninefold | b-B | bordered |
sickly | g-r-m-w-K-G-g-c-K | sequence |
painted | r-R-W-w-g-G-B | sequence |
moon | b-B-C-c | sequence |
mirrorshades | K-y-Y-Y-y-K | sequence |
dark cyan | c | sequence |
dark green | g | sequence |
radiant | r-W-Y-Y-Y-W-r | sequence |
issachari | Y-Y-Y-Y-Y-Y-r | sequence |
qas | C-c-m | sequence |
lava | R | solid |
lah | w-W-R-r | sequence |
normalish | y-y-K-y-Y-y-y-y-K-y-Y | sequence |
kaleidoslug | K-C-y-m-M-r-c-C-Y-y-K | sequence |
levant | r-r-y-y-Y-Y | sequence |
beylah | B-b-g-k-W-R-r | sequence |
illuminated | c-c-c-C-Y-W-Y-C | sequence |
icy | Y-C-B-C-Y | alternation |
normal | K-K-y-y-Y-y-y-K-K-y-K-y-Y | sequence |
freezing | C | sequence |
blue | B | sequence |
forest | g-g-w-G-g-g-w-w-g-G-G-w | sequence |
emote | w | solid |
electrical | W | sequence |
dreamy | b-b-b-B-M-k-W-M-B-b-b-b-b | alternation |
crysteel | y-y-K-g-g-K-y-y | alternation |
phase-harmonic | Y-y-m-y-K | sequence |
chiral | B-b-c-C-M-m-k-m-M-C-c-b | sequence |
implanted | r-r-r-r-r-r-r-C | sequence |
auroral | K-g-G-Y-G-g-K | sequence |
opalescent | Y-y-K-K-y-Y | sequence |
cyan | C | sequence |
otherpearl | M-m-y-Y-O-O-Y-y-m-M | sequence |
orange | O | sequence |
Anonymous Templates
To create a temporary template, the format is:
{{[color pattern delimited by -] [type]|[text]}}
The list of possible types are:
Type | Pattern | Example |
---|---|---|
sequence | repeats the pattern. | texttexttexttext |
alternation | stretches the pattern so it fits the entire word. | texttexttexttext |
chaotic | chooses colors randomly out of the colors specified. | |
bordered | texttexttexttext |
See Also
|