Repository navigation
colors.tbl
Revision information OFP Revision: #111 Set the revision to your PR when your PR changes what this page documents. Leave it alone for edits that only fix or improve the documentation.
The colors.tbl changes the built-in named colors, defines team colors, redefines interface colors, and changes or adds color tags for text.
This table is one of the Modular Tables and can be extended with xxx-clr.tbm.
Code: /globalincs/alphacolors.cpp. See Tables for every table.
Badges show the version a field or behavior was added in.
Field index (every field, one per line in table order; click one to jump to it)
- $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:
- $Orange:
- $UI Light Green:
- $UI Green:
- $UI Light Pink:
- $UI Pink:
Every section is optional, and each ends with #End. The sections that are used must be in this order:
#Start Colors#Team Colors#Interface Colors#Color Tags#Default Text Colors
Overrides the built-in named colors. Every section is optional.
- Colors must be in the order listed here; one out of order is not read.
- Values below 0 or above 255 log a warning and are capped.
- These are read from every table before any other section, so names used in the sections below always get the final values.
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 93 93 128 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 185 185 255 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 0 120 0 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 50 190 50 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 0 0 0 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 65 65 65 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 160 160 160 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 105 105 105 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 255 255 255 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 160 144 160 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 192 104 192 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 80 6 6 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 126 6 6 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 200 0 0 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 185 150 150 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 230 190 190 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 255 255 122 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 255 255 0 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 255 127 0 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 161 184 161 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 190 228 190 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 184 161 161 255 )
-
Syntax: ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: 0 - 255
-
Default Value: ( 228 190 190 255 )
Ends with #End.
Defines team colors, which ship models with team color support use.
- Defining a team name again, in this or a later table, replaces its colors.
- A team named "None" logs a warning and can't be used, since the engine uses "None" for no team color.
Defines a team name to use for a new color scheme.
- Syntax: String
Required. Defines the RGB color for the team "stripe." This is applied to sections that go over the base color.
Also accepted as
$Team Stripe Colour:.
- Syntax: ( Integer Red Integer Green Integer Blue )
- Valid Values: ( 0 - 255, 0 - 255, 0 - 255 ); values outside are clamped
Required. Defines the RGB color for the base color of the crafts for a given team.
Also accepted as
$Team Base Colour:.
- Syntax: ( Integer Red Integer Green Integer Blue )
- Valid Values: ( 0 - 255, 0 - 255, 0 - 255 ); values outside are clamped
Ends with #End.
Redefines colors used throughout FSO's interface. Each can be the name of a color from #Start Colors, or an RGBA list.
- Colors must be in the order listed here; one out of order is not read.
- Color names must match exactly, capitalization included. An unknown name logs a warning, and the default is kept.
- RGBA values below 0 or above 255 log a warning and are capped.
Used all over the interface.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: White
Used for text that is going to be selected, but isn't yet (mouse is held down, but not released).
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Blue
Used for text that is currently selected (active control in controls menu, pilot in barracks, et al).
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright Blue
Used for control conflicts in the controls menu.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Red
The above, but for text that's selected.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright Red
Used for text the mouse is currently over, sometimes; sometimes used to indicate the currently active item; sometimes used to indicate the currently selected item instead of Text Selected.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright White
Used in multiplayer in a few places.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright White
Used for headings in a few places.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Violet Gray
Used for the "More" indicator when there's extra text to scroll down for.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Red
Used for the "More" indicator with popup messages and in multiplayer.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright Red
Used in a few places, including (but not limited to) the debug console and the help screen.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Bright Blue
Used in a few more places; quite a few buttons seem to use it for their labels, and it's used for some debugging text. Basically, any generic piece of text that doesn't use color tags or Text Normal probably uses this color.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: White
The color the lines of the briefing grid are drawn with. Anything excessively bright may make it difficult to see/read the briefing's icons/labels.
-
Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
-
Valid Values: Name of a color, or 0 - 255
-
Default Value: Grey
Ends with #End.
Allows for redefining, or defining new, color tags. Any number of $Tag: entries can be contained in this section, in any order, and repeated values overwrite each other.
- A color name must match exactly, capitalization included. An unknown name is an error.
The character to identify this color tag, with optional "$" prefix.
- Syntax: Character Tag
- Valid Values: Any character FSO recognizes should work, in theory.
- Only one character: anything after it logs a warning. An empty tag, or a lone
$, is an error. Must be followed by one (and only one) of the following definitions:
The name of a color, or an RGBA integer list, defining what color this tag means.
- Syntax: String Color or ( Integer Red Integer Green Integer Blue Integer Alpha )
- Valid Values: Name of a color, or 0 - 255
The default friendly color, as defined by the briefing code.
The default hostile color, as defined by the briefing code.
The default neutral color, as defined by the briefing code.
Ends with #End.
Define the base color tag for various kinds of text.
- These must be in the order listed here; one out of order is not read.
- A tag that isn't defined only gets a note in the log, since a later modular table may still define it.
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $r
-
Syntax: Character Tag
-
Valid Values: Any defined color tag ("$" prefix optional).
-
Default: $w
Ends with #End.
The values in this table are the code's default values.
#Start Colors
$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)
$Orange: (255 127 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
#Interface Colors
$Text Normal: White
$Text Subselected: Blue
$Text Selected: Bright Blue
$Text Error: Red
$Text Error Highlighted: Bright Red
$Text Active: Bright White
$Text Active Highlighted: Bright White
$Text Heading: Violet Gray
$More Indicator: Red
$Bright More Indicator: Bright Red
$Bright: Bright Blue
$Normal: White
$Briefing Grid: Grey
#End
#Color Tags
$Tag: $w
+Color: White
$Tag: $W
+Color: Bright White
$Tag: $r
+Color: Red
$Tag: $o
+Color: Orange
$Tag: $g
+Color: Green
$Tag: $y
+Color: Yellow
$Tag: $b
+Color: Blue
$Tag: $f
+Friendly
$Tag: $h
+Hostile
$Tag: $n
+Neutral
$Tag: $B
+Color: Bright Blue
$Tag: $G
+Color: Bright Green
$Tag: $R
+Color: Bright Red
$Tag: $Y
+Color: Bright Yellow
$Tag: $k
+Color: Black
$Tag: $e
+Color: Grey
$Tag: $E
+Color: Silver
$Tag: $v
+Color: Violet Gray
$Tag: $V
+Color: Violet
$Tag: $p
+Color: Pink
$Tag: $P
+Color: Light Pink
#End
#Default Text Colors
$Fiction Viewer: $w
$Command Briefing: $w
$Briefing: $w
$Redalert Briefing: $w
$Debriefing: $w
$Recommendation: $r
$Loop Briefing: $w
#End
This example table was provided by TAP.
#Team Colors
$Team Name: Vaygr
$Team Stripe Color: ( 26 26 26 )
$Team Base Color: ( 230 230 230 )
$Team Name: Hiigaran
$Team Stripe Color: ( 204 204 204 )
$Team Base Color: ( 93 141 170 )
$Team Name: Elite Vaygr
$Team Stripe Color: ( 143 1 11 )
$Team Base Color: ( 12 12 12 )
#End
Getting Started
Features
SEXPs
Lua Scripting
Tables
-
Tables
- ai.tbl
- Animation (-anim.tbm)
- armor.tbl
- asteroid.tbl
- autopilot.tbl
- cheats.tbl
- colors.tbl
- controlconfigdefaults.tbl
- coordinate_points.tbl
- credits.tbl
- curves.tbl
- cutscenes.tbl
- Decals (-dcl.tbm)
- default_settings.tbl
- Dynamic SEXPs (-sexp.tbm)
- editor.tbl
- fireball.tbl
- fonts.tbl
- game_settings.tbl
- generated_nebula.tbl
- glowpoints.tbl
- help.tbl
- hud_gauges.tbl
- icons.tbl
- iff_defs.tbl
- intel.tbl
- lighting_profiles.tbl
- lightning.tbl
- mainhall.tbl
- medals.tbl
- messages.tbl
- mflash.tbl
- mission_profiles.tbl
- music.tbl
- nebula.tbl
- objecttypes.tbl
- Particle Effects (-part.tbm)
- post_processing.tbl
- props.tbl
- rank.tbl
- scripting.tbl
- ships.tbl
- sounds.tbl
- species_defs.tbl
- ssm.tbl
- stars.tbl
- strings.tbl
- tips.tbl
- traitor.tbl
- tstrings.tbl
- virtual_pofs.tbl
- weapons.tbl