Colors.tbl
From FreeSpace Wiki
Revision information.....
- FSO Revision: 7809
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version
This table allows editing of the default color values used for text in various game locations.
General Format
- Colors.tbl simply starts with "#Start Color" (without the quotes)
- All following entries are of the form "$Color name: (R G B A)" (without the quotes, but with the brackets), where R, G, B, and A are red, green, blue and alpha values (between 0 and 255 inclusive).
- Colors.tbl must end with "#End" (without the quotes).
Possible Colors
- Blue
- Bright Blue
- Green
- Bright Green
- Black
- Grey
- Silver
- White
- Bright White
- Violet Gray
- Violet
- Dim Red
- Red
- Bright Red
- Pink
- Light Pink
- Yellow
- Bright Yellow
- UI Light Green
- UI Green
- UI Light Pink
- UI Pink
Syntax and Usage
- All colors are optional (defaults will be used if the color is not specified).
- However, any colors included must be included in the order specified above, otherwise they will be skipped.
- Note that at this point colors.tbl only allows redefinition of the 22 pre-existing UI colors. New colors cannot be added as of yet.
Example Table
The values in this table are the code's default values.
#Start Colors ;; This is colors.tbl. Here you can redefine the RGBA values for the 22 default colours for the UI. ;; Any redefining is optional, so you don't need to include all colors (the ones you skip will just use the default values). ;; However, any you DO redefine need to be placed in this order (and spelled this way): ;;$Blue ;;$Bright Blue ;;$Green ;;$Bright Green ;;$Black ;;$Grey ;;$Silver ;;$White ;;$Bright White ;;$Violet Gray ;;$Violet ;;$Dim Red ;;$Red ;;$Bright Red ;;$Pink ;;$Light Pink ;;$Yellow ;;$Bright Yellow ;;$UI Light Green ;;$UI Green ;;$UI Light Pink ;;$UI Pink ;;Redefine colors this way: ;;$Color Name: (RVALUE GVALUE BVALUE AVALUE) (the brackets are necessary!) ;;where RVALUE, GVALUE, BVALUE and AVALUE are integers between 0 and 255 inclusive ;;AVALUE is alpha value. Every default color just leaves this as 255, so if you're not sure, just use 255 $Blue: (93 93 128 255) $Bright Blue: (185 185 255 255) $Green: (0 120 0 255) $Bright Green: (50 190 50 255) $Black: (0 0 0 255) $Grey: (65 65 65 255) $Silver: (160 160 160 255) $White: (105 105 105 255) $Bright White: (255 255 255 255) $Violet Gray: (160 144 160 255) $Violet: (192 104 192 255) $Dim Red: (80 6 6 255) $Red: (126 6 6 255) $Bright Red: (200 0 0 255) $Pink: (185 150 150 255) $Light Pink: (230 190 190 255) $Yellow: (255 255 122 255) $Bright Yellow: (255 255 0 255) $UI Light Green: (161 184 161 255) $UI Green: (190 228 190 255) $UI Light Pink: (184 161 161 255) $UI Pink: (228 190 190 255) #End