Difference between revisions of "Manual:Config:Advanced"

From VsWiki
Jump to: navigation, search
(Advanced configuration: added colors section to match config file)
(Add config file structure example; remove fixme)
Line 6: Line 6:
 
}}
 
}}
 
----
 
----
{{Fixme}} ''Add general description of the config file syntax+structure''
+
The basic structure of the config file:
 +
<pre>
 +
<vegaconfig>
 +
 
 +
<!-- comment
 +
# line used by vssetup (inside a comment block)
 +
-->
 +
 
 +
<bindings>
 +
<bind key="i" modifier="none" command="Screenshot" />
 +
<!-- this line is a comment, the next is a disabled/commented bind config -->
 +
<!-- <bind key="M" modifier="none" command="Cockpit::MapKey"/> -->
 +
</bindings>
 +
 
 +
<colors>
 +
<section name="unit">
 +
  <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
 +
  <color name="engine" r="1" g="1" b="1" a="1"/>
 +
</section>
 +
</colors>
 +
 
 +
<variables>
 +
<section name="data">
 +
  <var name="usingtemplates" value="false"/>
 +
</section>
 +
</variables>
 +
 
 +
</vegaconfig>
 +
</pre>
 +
 
  
 
=Advanced configuration=
 
=Advanced configuration=

Revision as of 03:39, 29 September 2010

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


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

The basic structure of the config file:

<vegaconfig>

<!-- comment
# line used by vssetup (inside a comment block)
-->

<bindings>
 <bind key="i" modifier="none" command="Screenshot" />
 <!-- this line is a comment, the next is a disabled/commented bind config -->
 <!-- <bind key="M" modifier="none" command="Cockpit::MapKey"/> -->
</bindings>

<colors>
 <section name="unit">
  <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
  <color name="engine" r="1" g="1" b="1" a="1"/>
 </section>
</colors>

<variables>
 <section name="data">
  <var name="usingtemplates" value="false"/>
 </section>
</variables>

</vegaconfig>


Advanced configuration

See the specific sections inside the config file:

Example

FIXME Insert a very short example code showing the layout of a complete config file.

See also


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