Difference between revisions of "Config/Config Station"
(Created page with "{{DISPLAYTITLE:Station Configuration}} = Stations = The configuration element '''<Stations>''' defines all the Stations in a session. The <Stations> element is located in t...") |
|||
Line 167: | Line 167: | ||
|} | |} | ||
− | + | ||
− | + | ||
+ | |||
+ | == Texts == | ||
+ | |||
+ | The texts possible to use for this object are defined in the <Texts> element.<br> | ||
+ | |||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Texts> | ||
+ | <Text/> | ||
+ | <Text/> | ||
+ | ... | ||
+ | <Text/> | ||
+ | </Texts> | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | A text is defined with the following properties: | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |+Text Parameters | ||
+ | |- | ||
+ | !style="text-align: left;" | | ||
+ | Parameters | ||
+ | !style="text-align: left;" | | ||
+ | Description | ||
+ | !style="vertical-align: text-top;"| | ||
+ | Only Used In | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Name | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The identification name. Should be unique for this object. <br> | ||
+ | Should be unique in this <Texts> ... <Texts> element.<br> | ||
+ | |||
+ | Example value: "ShortName", "Description-HTML" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Type | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The formatting type of the text.<br> | ||
+ | |||
+ | Possible values: "Normal","Formatted", "Html"<br> | ||
+ | Normal: The text is used as it is in the UI, Logfiles, etc.<br> | ||
+ | Formatted: The text is formatted using the font and color description in this text, when displayed in a html supported display area.<br> | ||
+ | Html: The text is formatted as html, when displayed in a html supported display area.<br> | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | BackgroundColor | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The background color used when displayed in a text format supported display area.<br> | ||
+ | Hexadecimal color code definition "#FFFFFF", #(Red)(Green)(Blue)<br> | ||
+ | |||
+ | Exampe values: "#FF0000", "#FF9A00" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontName | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The font name used when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "Arial" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontSize | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The font size used when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "12" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontStyleBold | ||
+ | |style="vertical-align: text-top;"| | ||
+ | If the font style should have bold activated when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Possible values: "True","False","Yes","No" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontStyleItalic | ||
+ | |style="vertical-align: text-top;"| | ||
+ | If the font style should have italic activated when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Possible values: "True","False","Yes","No" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Text | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The text that should be used.<br> | ||
+ | |||
+ | Example values: "Hello World" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | TextColor | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The text color used when displayed in a text format supported display area.<br> | ||
+ | Hexadecimal color code definition "#FFFFFF", #(Red)(Green)(Blue)<br> | ||
+ | |||
+ | Exampe values: "#FF0000", "#FF9A00" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | ZeroPos | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The position correction for the displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "-5,-4"<br> | ||
+ | If the value are (-5,-4) then the centre position for the text is moved 5 pixels towards west and 4 pixels towards north. | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |} | ||
+ | |||
+ | Xml configuration example: | ||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Text | ||
+ | Name = "MapReal" | ||
+ | Type = "Formatted" | ||
+ | BackgroundColor = "" | ||
+ | FontName = "Arial" | ||
+ | FontSize = "24" | ||
+ | FontStyleBold = "True" | ||
+ | FontStyleItalic = "False" | ||
+ | Text = "Village A" | ||
+ | TextColor = "#EEEEEE" | ||
+ | ZeroPos = "-50,-50" /> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
+ | == Images == | ||
+ | |||
+ | The images possible to use for this object are defined in the <Images> element.<br> | ||
+ | |||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Images> | ||
+ | <Image/> | ||
+ | <Image/> | ||
+ | ... | ||
+ | <Image/> | ||
+ | </Images> | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | A Image is defined with the following properties: | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |+Text Parameters | ||
+ | |- | ||
+ | !style="text-align: left;" | | ||
+ | Parameters | ||
+ | !style="text-align: left;" | | ||
+ | Description | ||
+ | !style="vertical-align: text-top;"| | ||
+ | Only Used In | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Name | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The identification name. Should be unique for this object. <br> | ||
+ | Should be unique in this <Texts> ... <Texts> element.<br> | ||
+ | |||
+ | Example value: "ShortName", "Description-HTML" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | CreateMethod | ||
+ | |style="vertical-align: text-top;"| | ||
+ | How the image is crated.<br> | ||
+ | |||
+ | Possible values: "Load","Create"<br> | ||
+ | Load: The image are loaded.<br> | ||
+ | Create: The image is an text that is created with the defined formatting.<br> | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | BackgroundColor | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The background color used when displayed in a text format supported display area.<br> | ||
+ | Hexadecimal color code definition "#FFFFFF", #(Red)(Green)(Blue)<br> | ||
+ | |||
+ | Exampe values: "#FF0000", "#FF9A00" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | BorderColor | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The background color of the border around the image<br> | ||
+ | Hexadecimal color code definition "#FFFFFF", #(Red)(Green)(Blue)<br> | ||
+ | |||
+ | Exampe values: "#FF0000", "#FF9A00" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | BorderSize | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The size of the border around the image<br> | ||
+ | Value is difined in pixels. <br> | ||
+ | |||
+ | Example values: "1" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FileName | ||
+ | |style="vertical-align: text-top;"| | ||
+ | A relative path and file name to the image file.<br> | ||
+ | The path is relative to:<br> | ||
+ | <C3FIRE-IMAGES> = ...\C3LearningLabs\C3Fire\Client\Files\ROOT\Image\<br> | ||
+ | Same structure for C3Rescue and C3Conflict.<br> | ||
+ | |||
+ | Example value: "Station/ArmyPost.png" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontName | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The font name used when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "Arial" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontSize | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The font size used when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "12" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontStyleBold | ||
+ | |style="vertical-align: text-top;"| | ||
+ | If the font style should have bold activated when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Possible values: "True","False","Yes","No" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | FontStyleItalic | ||
+ | |style="vertical-align: text-top;"| | ||
+ | If the font style should have italic activated when displayed in a text format supported display area.<br> | ||
+ | |||
+ | Possible values: "True","False","Yes","No" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Size | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The size of the created image.<br> | ||
+ | The value is in format "width,height"<br> | ||
+ | |||
+ | Example values: "80,20" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | Text | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The text that should be used.<br> | ||
+ | |||
+ | Example values: "Hello World" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | TextColor | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The text color used when displayed in a text format supported display area.<br> | ||
+ | Hexadecimal color code definition "#FFFFFF", #(Red)(Green)(Blue)<br> | ||
+ | |||
+ | Exampe values: "#FF0000", "#FF9A00" | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |- | ||
+ | |style="background-color:#bbeeff; vertical-align: text-top;"| | ||
+ | ZeroPos | ||
+ | |style="vertical-align: text-top;"| | ||
+ | The position correction for the displayed in a text format supported display area.<br> | ||
+ | |||
+ | Example values: "-5,-4"<br> | ||
+ | If the value are (-5,-4) then the centre position for the text is moved 5 pixels towards west and 4 pixels towards north. | ||
+ | |style="vertical-align: text-top;"| | ||
+ | |} | ||
+ | |||
+ | Xml configuration example: | ||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Image | ||
+ | Name = "MapReal" | ||
+ | BackgroundColor = "#AAAAFF" | ||
+ | BorderColor = "#000000" | ||
+ | BorderSize = "0" | ||
+ | CreateMethod = "Load" | ||
+ | FileName = "Station/VillageA.png" | ||
+ | FontName = "" | ||
+ | FontSize = "" | ||
+ | FontStyleBold = "" | ||
+ | FontStyleItalic = "" | ||
+ | Size = "" | ||
+ | Text = "" | ||
+ | TextColor = "" | ||
+ | ZeroPos = "" /> | ||
+ | </syntaxhighlight> | ||
Revision as of 21:09, 31 July 2021
Stations
The configuration element <Stations> defines all the Stations in a session.
The <Stations> element is located in the root element, at top level in the session configuration file.
The <Stations> element can be moved to a separate configuration file, by using session include parameter ConfigIncludeFileStations in the main configuration file.
For more instruction how to use session include, see Session Include.
It is recommended to move the session configuration to a separate file.
<Stations>
<Station> ... </Station>
<Station> ... </Station>
...
<Station> ... </Station>
</Stations>
Station
The configuration element <Station> defines a station and contain a set of basic properties. Beside the basic properties the activated modules can add properties for the Station. See documentation for each module.
A station is defined with the following properties:
<Station
IDName = "Army Post"
NameShort = "Army Post"
NameLong = "Army Post"
Type = "Heltid"
ControledBy = "AutoC3Basic"
Description = ""
DescriptionHTML = ""
Location = "Army Post"
Personnel = ""
Points = "0.0"
Pos = "10,10"
Vehicle = "" >
<Texts> ... </Texts>
<Images> ... </Images>
<StationUI> ... <StationUI>
<ItemObjects> ... </ItemObjects>
<ItemInteractions> ... </ItemInteractions>
<!-- Module specific configuration -->
<Aid> ... </Aid>
<Bomb> ... </Bomb>
<Fuel> ... </Fuel>
<Money> ... </Money>
<Supply> ... </Supply>
<Transport> ... </Transport>
<Water> ... </Water>
</Station>
Main properties
A station is defined with the following main properties.
Parameters |
Description |
Only Used In |
---|---|---|
IDName |
The identification name. Should be unique, and are used in the configuration. Example value: "S1", "Army Post", "Hospital" |
|
NameShort |
A standard short name |
|
NameLong |
The size of the panel. A standard long name |
|
Type |
The stations type, based on Swedish standard. Possible values are "Heltid" and "Deltid". |
C3Rescue |
ControledBy |
How the station in controlled. Possible values are "Player","AutoC3Basic". |
|
Description |
A standard description |
|
DescriptionHTML |
A standard html description |
|
Location |
The position this station is on, defined by a location ID. |
|
Personnel |
The personnel that have their home station in this station is defined here. Value Example = "" |
|
Points |
The number of points this station have. Value Example = "234.5" |
|
Pos |
The position this station is on. |
|
Vehicle |
The vehicles that have their home station in this station is defined here. Value Example = "" |
Texts
The texts possible to use for this object are defined in the <Texts> element.
<Texts>
<Text/>
<Text/>
...
<Text/>
</Texts>
A text is defined with the following properties:
Parameters |
Description |
Only Used In |
---|---|---|
Name |
The identification name. Should be unique for this object. Example value: "ShortName", "Description-HTML" |
|
Type |
The formatting type of the text. Possible values: "Normal","Formatted", "Html" |
|
BackgroundColor |
The background color used when displayed in a text format supported display area. Exampe values: "#FF0000", "#FF9A00" |
|
FontName |
The font name used when displayed in a text format supported display area. Example values: "Arial" |
|
FontSize |
The font size used when displayed in a text format supported display area. Example values: "12" |
|
FontStyleBold |
If the font style should have bold activated when displayed in a text format supported display area. Possible values: "True","False","Yes","No" |
|
FontStyleItalic |
If the font style should have italic activated when displayed in a text format supported display area. Possible values: "True","False","Yes","No" |
|
Text |
The text that should be used. Example values: "Hello World" |
|
TextColor |
The text color used when displayed in a text format supported display area. Exampe values: "#FF0000", "#FF9A00" |
|
ZeroPos |
The position correction for the displayed in a text format supported display area. Example values: "-5,-4" |
Xml configuration example:
<Text
Name = "MapReal"
Type = "Formatted"
BackgroundColor = ""
FontName = "Arial"
FontSize = "24"
FontStyleBold = "True"
FontStyleItalic = "False"
Text = "Village A"
TextColor = "#EEEEEE"
ZeroPos = "-50,-50" />
Images
The images possible to use for this object are defined in the <Images> element.
<Images>
<Image/>
<Image/>
...
<Image/>
</Images>
A Image is defined with the following properties:
Parameters |
Description |
Only Used In |
---|---|---|
Name |
The identification name. Should be unique for this object. Example value: "ShortName", "Description-HTML" |
|
CreateMethod |
How the image is crated. Possible values: "Load","Create" |
|
BackgroundColor |
The background color used when displayed in a text format supported display area. Exampe values: "#FF0000", "#FF9A00" |
|
BorderColor |
The background color of the border around the image Exampe values: "#FF0000", "#FF9A00" |
|
BorderSize |
The size of the border around the image Example values: "1" |
|
FileName |
A relative path and file name to the image file. Example value: "Station/ArmyPost.png" |
|
FontName |
The font name used when displayed in a text format supported display area. Example values: "Arial" |
|
FontSize |
The font size used when displayed in a text format supported display area. Example values: "12" |
|
FontStyleBold |
If the font style should have bold activated when displayed in a text format supported display area. Possible values: "True","False","Yes","No" |
|
FontStyleItalic |
If the font style should have italic activated when displayed in a text format supported display area. Possible values: "True","False","Yes","No" |
|
Size |
The size of the created image. Example values: "80,20" |
|
Text |
The text that should be used. Example values: "Hello World" |
|
TextColor |
The text color used when displayed in a text format supported display area. Exampe values: "#FF0000", "#FF9A00" |
|
ZeroPos |
The position correction for the displayed in a text format supported display area. Example values: "-5,-4" |
Xml configuration example:
<Image
Name = "MapReal"
BackgroundColor = "#AAAAFF"
BorderColor = "#000000"
BorderSize = "0"
CreateMethod = "Load"
FileName = "Station/VillageA.png"
FontName = ""
FontSize = ""
FontStyleBold = ""
FontStyleItalic = ""
Size = ""
Text = ""
TextColor = ""
ZeroPos = "" />
StationUI
The startion UI element defines what UI configuration to use for this startion.
The startion UI is defined with the following properties:
Parameters |
Description |
Only Used In |
---|---|---|
ActivityControlPanelName |
The identification name of the station activity control user interface specification. Example value: "Army Post" |
|
ActivityControlPanelText |
The text displayed at the border of the activity control panel. Exampe values: "PanelText" |
|
MapRealPosImage |
The station image displayed on the map Exampe values: "MapReal" |
|
MapRealPosText |
The text displayed near the station image on the map Exampe values: "MapReal" |
Xml configuration example:
<StationUI
ActivityControlPanelName = "Army Post"
ActivityControlPanelText = "PanelText"
MapRealPosImage = "MapReal"
MapRealPosText = "MapReal" />