zdaemon:acs:colors
Table of Contents
Font Colors in ZDaemon (ACS)
Not all colors mentioned in the ZDoom Wiki are supported in ZDaemon. The following tables show which are and which aren't as of ZDaemon 1.10b07.
Print and Log Functions
See: http://zdoom.org/wiki/Print
Code | Color | Supported | Prints as |
---|---|---|---|
a | reddish brick | yes | |
b | tan | yes | |
c | gray | ? | white |
d | green | yes | |
e | brown | yes | |
f | gold | yes | |
g | red | yes | |
h | blue | yes | |
i | orange | yes | |
j | white | yes | |
k | yellow | yes | |
l | original color | ? | reddish brick |
m | black | no | tan |
n | light blue | no | tan |
o | cream | no | tan |
p | olive | no | tan |
q | dark green | no | tan |
r | dark red | no | tan |
s | dark brown | no | tan |
t | purple | no | tan |
u | dark gray | no | tan |
- | print default | ? | tan |
+ | printbold default | ? | white |
* | chat default | ? | tan |
! | teamchat default | ? | tan |
Hud Messages
See: http://zdoom.org/wiki/HudMessage
See: https://github.com/rheit/acc/blob/master/zdefs.acs (for IDs)
Symbolic constant | ID | Supported |
---|---|---|
CR_UNTRANSLATED | -1 | yes |
CR_BRICK | 0 | yes |
CR_TAN | 1 | yes |
CR_GRAY/CR_GREY | 2 | ? (looks white) |
CR_GREEN | 3 | yes |
CR_BROWN | 4 | yes |
CR_GOLD | 5 | yes |
CR_RED | 6 | yes |
CR_BLUE | 7 | yes |
CR_ORANGE | 8 | yes |
CR_WHITE | 9 | yes |
CR_YELLOW | 10 | yes |
CR_BLACK | 12 | no |
CR_LIGHTBLUE | 13 | no |
CR_CREAM | 14 | no |
CR_OLIVE | 15 | no |
CR_DARKGREEN | 16 | no |
CR_DARKRED | 17 | no |
CR_DARKBROWN | 18 | no |
CR_PURPLE | 19 | no |
CR_DARKGRAY/CR_DARKGREY | 20 | no |
CR_CYAN | 21 | no |
Unsupported colors seem to print as if CR_UNTRANSLATED was used.
Code for Testing
- colors.acs
#library "colors" #include "zcommon.acs" script 1 (void) { Log(s:"\careddish brick"); Log(s:"\cbtan"); Log(s:"\ccgray"); Log(s:"\cdgreen"); Log(s:"\cebrown"); Log(s:"\cfgold"); Log(s:"\cgred"); Log(s:"\chblue"); Log(s:"\ciorange"); Log(s:"\cjwhite"); Log(s:"\ckyellow"); Log(s:"\cloriginal colour"); Log(s:"\cmblack"); Log(s:"\cnlight blue"); Log(s:"\cocream"); Log(s:"\cpolive"); Log(s:"\cqdark green"); Log(s:"\crdark red"); Log(s:"\csdark brown"); Log(s:"\ctpurple"); Log(s:"\cudark gray"); Log(s:"\c-print default"); Log(s:"\c+printbold default"); Log(s:"\c*chat default"); Log(s:"\c!teamchat default"); } script 2 (void) { HudMessageBold(s:"CR_UNTRANSLATED"; 0, HUDMSG_PLAIN, CR_UNTRANSLATED, 0.5, 0.00, 0); HudMessageBold(s:"CR_BRICK"; 0, HUDMSG_PLAIN, CR_BRICK, 0.5, 0.04, 0); HudMessageBold(s:"CR_TAN"; 0, HUDMSG_PLAIN, CR_TAN, 0.5, 0.08, 0); HudMessageBold(s:"CR_GRAY"; 0, HUDMSG_PLAIN, CR_GRAY, 0.5, 0.12, 0); HudMessageBold(s:"CR_GREY"; 0, HUDMSG_PLAIN, CR_GREY, 0.5, 0.16, 0); HudMessageBold(s:"CR_GREEN"; 0, HUDMSG_PLAIN, CR_GREEN, 0.5, 0.20, 0); HudMessageBold(s:"CR_BROWN"; 0, HUDMSG_PLAIN, CR_BROWN, 0.5, 0.24, 0); HudMessageBold(s:"CR_GOLD"; 0, HUDMSG_PLAIN, CR_GOLD, 0.5, 0.28, 0); HudMessageBold(s:"CR_RED"; 0, HUDMSG_PLAIN, CR_RED, 0.5, 0.32, 0); HudMessageBold(s:"CR_BLUE"; 0, HUDMSG_PLAIN, CR_BLUE, 0.5, 0.36, 0); HudMessageBold(s:"CR_ORANGE"; 0, HUDMSG_PLAIN, CR_ORANGE, 0.5, 0.40, 0); HudMessageBold(s:"CR_WHITE"; 0, HUDMSG_PLAIN, CR_WHITE, 0.5, 0.44, 0); HudMessageBold(s:"CR_YELLOW"; 0, HUDMSG_PLAIN, CR_YELLOW, 0.5, 0.48, 0); HudMessageBold(s:"CR_BLACK"; 0, HUDMSG_PLAIN, CR_BLACK, 0.5, 0.52, 0); HudMessageBold(s:"CR_LIGHTBLUE"; 0, HUDMSG_PLAIN, CR_LIGHTBLUE, 0.5, 0.56, 0); HudMessageBold(s:"CR_CREAM"; 0, HUDMSG_PLAIN, CR_CREAM, 0.5, 0.60, 0); HudMessageBold(s:"CR_OLIVE"; 0, HUDMSG_PLAIN, CR_OLIVE, 0.5, 0.64, 0); HudMessageBold(s:"CR_DARKGREEN"; 0, HUDMSG_PLAIN, CR_DARKGREEN, 0.5, 0.68, 0); HudMessageBold(s:"CR_DARKRED"; 0, HUDMSG_PLAIN, CR_DARKRED, 0.5, 0.72, 0); HudMessageBold(s:"CR_DARKBROWN"; 0, HUDMSG_PLAIN, CR_DARKBROWN, 0.5, 0.76, 0); HudMessageBold(s:"CR_PURPLE"; 0, HUDMSG_PLAIN, CR_PURPLE, 0.5, 0.80, 0); HudMessageBold(s:"CR_DARKGRAY"; 0, HUDMSG_PLAIN, CR_DARKGRAY, 0.5, 0.84, 0); HudMessageBold(s:"CR_DARKGREY"; 0, HUDMSG_PLAIN, CR_DARKGREY, 0.5, 0.88, 0); HudMessageBold(s:"CR_CYAN"; 0, HUDMSG_PLAIN, CR_CYAN, 0.5, 0.92, 0); }
zdaemon/acs/colors.txt · Last modified: 2016-11-23 23:28:40 (6 years ago) by rhinoduck