Difference between revisions of "Manual:Config:Advanced:Colors"

From VsWiki
Jump to: navigation, search
(fix heading, add a bit of an intro)
("default" section: clarify space_background description)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
----
 
----
 
= Color variables =
 
= Color variables =
The color variables are set between the <code><colors></code> and the <code></colors></code> tags in the <code>vegastrike.config</code> file.
+
The color variables are set in their respective sections between the <code><colors></code> and the <code></colors></code> tags.
  
{{Fixme}} ''Syntax of the color section variables and where to put them.''
+
The color variables look like this:
 +
<pre><color name="NAME" r="NUM" g="NUM" b="NUM" a="NUM" /></pre>
 +
or like this, if referring to a color in another section:
 +
<pre><color name="NAME" section="SECTION" ref="NAME" /></pre>
 +
 
 +
{{FIXME}} ''Are the 2 types interchangeable (for the same variable)?''
 +
 
 +
== "<code>nav</code>" section ==
 +
* <code>'''destination_system'''</code> [rgba] - {{FIXME}}
 +
 
 +
== "<code>absolute</code>" section ==
 +
Sets absolute colors used for reference? {{FIXME}} ''Add defaults.''
 +
 
 +
* <code>'''red'''</code> [rgba]
 +
* <code>'''green'''</code> [rgba]
 +
* <code>'''blue'''</code> [rgba]
 +
* <code>'''yellow'''</code> [rgba]
 +
* <code>'''black'''</code> [rgba]
 +
* <code>'''white'''</code> [rgba]
 +
* <code>'''grey'''</code> [rgba]
 +
* <code>'''light-grey'''</code> [rgba]
 +
* <code>'''pink'''</code> [rgba]
 +
* <code>'''dark-red'''</code> [rgba]
 +
* <code>'''dark-blue'''</code> [rgba]
 +
 
 +
== "<code>unit</code>" section ==
 +
Light to use for ships.
 +
 
 +
* <code>'''ship_ambient'''</code> [rgba] - Ambient light used for ship model rendering?
 +
* <code>'''engine'''</code> [rgba] - Engine color?
 +
 
 +
== "<code>terrain</code>" section ==
 +
* <code>'''terrain_ambient'''</code> [rgba] - Ambient light used for terrain rendering (what terrain)?
 +
 
 +
== "<code>default</code>" section ==
 +
Colors to use in radar/target rectangles.
 +
 
 +
* <code>'''enemy'''</code> [ref] - Enemy ship, based on player stats faction<0?
 +
* <code>'''friend'''</code> [ref] - Friend ship, based on player stats faction>0?
 +
* <code>'''neutral'''</code> [ref] - Neutral ship, based on player stats faction=0?
 +
* <code>'''attacking_ship'''</code> [ref] - Ship attacking you.
 +
* <code>'''locking_ship'''</code> [ref] - Ship with missiles locked on?
 +
* <code>'''targetting_ship'''</code> [ref] - Ship targetting you?
 +
* <code>'''target'''</code> [ref] - Target, whether ship or planet, etc.?
 +
* <code>'''planet'''</code> [ref] - Any planet?
 +
* <code>'''docking_box'''</code> [ref] - Docking boxes for showing available docking areas.
 +
* <code>'''black_and_white'''</code> [ref] - {{FIXME}}
 +
* <code>'''planet_ambient'''</code> [rgba] - Ambient light used when rendering planets?
 +
* <code>'''planet_mat_ambient'''</code> [rgba] - {{FIXME}}
 +
* <code>'''planet_mat_diffuse'''</code> [rgba] - {{FIXME}}
 +
* <code>'''planet_mat_specular'''</code> [rgba] - {{FIXME}}
 +
* <code>'''planet_mat_emmissive'''</code> [rgba] - {{FIXME}}
 +
* <code>'''space_background'''</code> [ref] - The color of the void of space.
 +
** set this to "dark-blue" to get the real spacey feeling

Latest revision as of 22:42, 29 September 2010

View this site in other languages:   DeutschEnglishFrançaisEspañolPolskiItalianoNederlandsРуccкий简体中文


arrow_left.png Config:Advanced:Bindings arrow_up.png Config:Advanced Config:Advanced:Variables arrow_right.png

Color variables

The color variables are set in their respective sections between the <colors> and the </colors> tags.

The color variables look like this:

<color name="NAME" r="NUM" g="NUM" b="NUM" a="NUM" />

or like this, if referring to a color in another section:

<color name="NAME" section="SECTION" ref="NAME" />

FIXME Are the 2 types interchangeable (for the same variable)?

"nav" section

  • destination_system [rgba] - FIXME

"absolute" section

Sets absolute colors used for reference? FIXME Add defaults.

  • red [rgba]
  • green [rgba]
  • blue [rgba]
  • yellow [rgba]
  • black [rgba]
  • white [rgba]
  • grey [rgba]
  • light-grey [rgba]
  • pink [rgba]
  • dark-red [rgba]
  • dark-blue [rgba]

"unit" section

Light to use for ships.

  • ship_ambient [rgba] - Ambient light used for ship model rendering?
  • engine [rgba] - Engine color?

"terrain" section

  • terrain_ambient [rgba] - Ambient light used for terrain rendering (what terrain)?

"default" section

Colors to use in radar/target rectangles.

  • enemy [ref] - Enemy ship, based on player stats faction<0?
  • friend [ref] - Friend ship, based on player stats faction>0?
  • neutral [ref] - Neutral ship, based on player stats faction=0?
  • attacking_ship [ref] - Ship attacking you.
  • locking_ship [ref] - Ship with missiles locked on?
  • targetting_ship [ref] - Ship targetting you?
  • target [ref] - Target, whether ship or planet, etc.?
  • planet [ref] - Any planet?
  • docking_box [ref] - Docking boxes for showing available docking areas.
  • black_and_white [ref] - FIXME
  • planet_ambient [rgba] - Ambient light used when rendering planets?
  • planet_mat_ambient [rgba] - FIXME
  • planet_mat_diffuse [rgba] - FIXME
  • planet_mat_specular [rgba] - FIXME
  • planet_mat_emmissive [rgba] - FIXME
  • space_background [ref] - The color of the void of space.
    • set this to "dark-blue" to get the real spacey feeling