Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Cassiel Seraphim/Sandbox12: Difference between revisions

From EVE University Wiki
No edit summary
Line 37: Line 37:
==== File structure ====
==== File structure ====
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|&lt}}{{co|violet|;}} or {{co|violet|&gt}}{{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|&lt}}{{co|violet|;}} or {{co|violet|&gt}}{{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.
Attributes and values are split across individual lines, with {{co|violet|-}} markups identifying and grouping the variables. Here's an example with colour-coded comments:
{|
| valign="top" |
<pre&lt;noinclude&gt;&lt;/noinclude&gt;>
tabSetup:  {{co|lightgreen|-- This identifies the start of the code handling tabs.}}
- - 0  {{co|lightgreen|-- First tab.}}
  - - - bracket
      - null
    - - name
      - <b&gt;.  PvP  .</b&gt;  {{co|lightgreen|-- This is the value for 'name', which is the label for the tab.}}
    - - overview
      - 1a - pvp + drones  {{co|lightgreen|-- This is the name of the tab that's loaded.}}
- - 1  {{co|lightgreen|-- Second tab.}}
  - - - bracket
      - null
    - - name
      - <b&gt;.  PvP Travel  .</b&gt;
    - - overview
      - 2 - pvp travel
...  {{co|lightgreen|-- Skipping to the next interesting part.}}
shipLabelOrder:  {{co|lightgreen|-- This determines the order of the different labels.}}
- ship type  {{co|lightgreen|-- If state is set to 1 for ship type, it'll show first.}}
- pilot name  {{co|lightgreen|-- If state is set to 1 for pilot name, it'll come second etc. }}
- corporation
- alliance
- ship name
- null
shipLabels:  {{co|lightgreen|-- This identifies the start of the actual code handling ship labels, the order isn't important.}}
- - null  {{co|lightgreen|-- This is the last setting that ingame only has a pre-box and no post-box.}}
  - - - post  {{co|lightgreen|-- Anything put below the 'post' line will be added '''after''' the label/tag.}}
      - ''  {{co|lightgreen|-- This particular label doesn't use the post-attribute.}}
    - - pre  {{co|lightgreen|-- Anything put below the 'pre' line will be added '''before''' the label/tag.}}
      - '['  {{co|lightgreen|-- This only shows if the player has a corporation ticker.}}
    - - state  {{co|lightgreen|-- Attribute telling us if the label should show (1) or not (0).}}
      - 0  {{co|lightgreen|-- This label will not be shown since it's set to 0.}}
    - - type  {{co|lightgreen|-- The type of the label.}}
      - null
- - alliance  {{co|lightgreen|-- This is the code for the alliance tag, like <IVY>.}}
  - - - post
      - '>'  {{co|lightgreen|-- This adds the closing bracket '''after''' the alliance ticker.}}
    - - pre
      - '<'  {{co|lightgreen|-- This adds the opening bracket '''before''' the alliance ticker.}}
    - - state
      - 1  {{co|lightgreen|-- This label will be shown since it's set to 1.}}
    - - type
      - alliance  {{co|lightgreen|-- This is the alliance label (not everyone will have one).}}
...  {{co|lightgreen|-- Etc, etc.}}
</pre&lt;noinclude&gt;&lt;/noinclude&gt;>
|}


= Example =
= Example =