8,567
edits
m (WIP template) |
m (Use Geshi line numbering and styling) |
||
Line 11: | Line 11: | ||
Here is some code to explain a few important basic concepts of xml files. (I have numbered the lines to aid the explanation below. In your xml file the line numbers will not be there.) | Here is some code to explain a few important basic concepts of xml files. (I have numbered the lines to aid the explanation below. In your xml file the line numbers will not be there.) | ||
<syntaxhighlight lang="xml" line> | |||
<button n="4"> | |||
<desc>Gear up</desc> | |||
<repeatable>false</repeatable> | |||
<binding> | |||
<command>nasal</command> | |||
<script>controls.gearDown(-1)</script> | |||
</binding> | |||
<mod-up> | |||
<binding> | |||
<command>nasal</command> | |||
<script>controls.gearDown(0)</script> | |||
</binding> | |||
</mod-up> | |||
</button> | |||
</syntaxhighlight> | |||
Ignoring the actual meaning of the code, let's got through it line by line. | Ignoring the actual meaning of the code, let's got through it line by line. | ||
Line 49: | Line 51: | ||
Line 14: </button> The end of the button section. Not necessary to specify the button number again, as you can't use <button> </button> inside another <button> </button> section. | Line 14: </button> The end of the button section. Not necessary to specify the button number again, as you can't use <button> </button> inside another <button> </button> section. | ||
== Axes == | == Axes == |