More actions
| Line 25: | Line 25: | ||
The overview used to be stored in .xml files where you had to hide brackets, tags and other things by rewriting them as {{co|violet|<}}{{co|violet|;}} or {{co|violet|>}}{{co|violet|;}} for it to parse correctly by the game engine. With the new .yaml files you can write plain html-code and it'll be parsed just fine. | The overview used to be stored in .xml files where you had to hide brackets, tags and other things by rewriting them as {{co|violet|<}}{{co|violet|;}} or {{co|violet|>}}{{co|violet|;}} for it to parse correctly by the game engine. With the new .yaml files you can write plain html-code and it'll be parsed just fine. | ||
= Example = | |||
This is an example of one of the pre-saved overviews that were available at the time of writing this guide. On the left is the unedited version of the overview, on the right is the code with the changes {{co|slateblue|highlighted in blue}} that enables the colour-coding and font-changes. | This is an example of one of the pre-saved overviews that were available at the time of writing this guide. On the left is the unedited version of the overview, on the right is the code with the changes {{co|slateblue|highlighted in blue}} that enables the colour-coding and font-changes. | ||
The changes are simple html-coding using normal {{co|violet|<color></color>}} and {{co|violet|<font></font>}} tags, but can include things like linebreaks {{co|violet|<br>}}, bold {{co|violet|<b></b>}} etc. For colours, use the {{co|violet|0xFF}}{{co|magenta|RRGGBB}} format, so if you wanted the colour {{co|green|green}} you'd use {{co|violet|0xFF}}{{co|magenta|008000}}. See [http://en.wikipedia.org/wiki/Web_colors Web colors] for inspiration. | The changes are simple html-coding using normal {{co|violet|<color></color>}} and {{co|violet|<font></font>}} tags, but can include things like linebreaks {{co|violet|<br>}}, bold {{co|violet|<b></b>}} etc. For colours, use the {{co|violet|0xFF}}{{co|magenta|RRGGBB}} format, so if you wanted the colour {{co|green|green}} you'd use {{co|violet|0xFF}}{{co|magenta|008000}}. You can also use various ASCII- and HTML-codes, like rooks ♜ ♖, kings ♚ ♔, horses ♞ ♘, airplane ✈, skull ☠, yin and yang ☯, stars ★ ☆ or whatever else you might find. | ||
See [http://en.wikipedia.org/wiki/Web_colors Web colors], [http://www.theasciicode.com.ar/ ASCII Codes] or [http://copypastecharacter.com/symbols Symbols] for inspiration. | |||
== Tab appearance == | |||
These changes are possible to do ingame, albeit tricky since the window and editing fields are extremely limited. But the game will accept and change these values from inside the game, so there's technically no need to export and edit the files if this is all you want to edit. | These changes are possible to do ingame, albeit tricky since the window and editing fields are extremely limited. But the game will accept and change these values from inside the game, so there's technically no need to export and edit the files if this is all you want to edit. | ||
| Line 119: | Line 121: | ||
|} | |} | ||
== Ship labels == | |||
The format of this is pretty straight forward. The {{co|violet|shipLabels:}} tag marks the beginning of the settings for labels and the {{co|violet|-}} indentations breaks up the various attributes. The {{co|violet|pre}} attributes add stuff before the label while the {{co|violet|post}} attribute add stuff after the label. The {{co|violet|state}} attribute is a simple integer showing if it's enabled (1) or disabled (0) while the {{co|violet|type}} attribute is the name of the attribute. The value for each attribute ends up on the line below, after the {{co|violet|-}} indentation. Text doesn't have to be wrapped in {{co|violet|''}}s, but can if you feel that makes it easier to read. | The format of this is pretty straight forward. The {{co|violet|shipLabels:}} tag marks the beginning of the settings for labels and the {{co|violet|-}} indentations breaks up the various attributes. The {{co|violet|pre}} attributes add stuff before the label while the {{co|violet|post}} attribute add stuff after the label. The {{co|violet|state}} attribute is a simple integer showing if it's enabled (1) or disabled (0) while the {{co|violet|type}} attribute is the name of the attribute. The value for each attribute ends up on the line below, after the {{co|violet|-}} indentation. Text doesn't have to be wrapped in {{co|violet|''}}s, but can if you feel that makes it easier to read. | ||