Skip to main content Link Menu Expand (external link) Document Search Copy Copied

The <definitions> Section

Definitions are basically present to enable you to use a word for a more complex value, thus making that value easier to express (and to remember) when entering the xml. They are only applicable to certain attributes in certain gauges (mostly the <colours> attribute at present) but they can also be used to specify a value which is subsequently accessible to scripts. For further details on use of definitions in scripts see the section on writing scripts

Context

<pages>
    <pagelist>
        <page>
        ...
        </page>
        ...
    </pagelist>
    <settings>
    ...
    </settings>
    <definitions>
        <cltok>0,255,0,0,255,0</cltok>
        <cltwarn>255,255,0,255,255,0</cltwarn>
        <cltbad>255,0,0,255,0,0</cltbad>
        <redyellow>255,255,0,255,255,0</redyellow>
        <blackwhite>255,255,255,255,255,255</blackwhite>
        <blackblack>0,0,0,0,0,0</blackblack>
        <redgreen>0,255,0,0,255,0</redgreen>
        <redred>255,0,0,255,0,0</redred>
        <yellowyellow>255,255,0,255,255,0</yellowyellow>
        <greengreen>0,255,0,0,255,0</greengreen>
        <red>255,0,0,255,0,0</red>
        <orange>255,100,0,255,100,0</orange>
        <green>0,255,0,0,255,0</green>
        <blue>0,0,255,0,0,255</blue>
        <cyan>0,255,255,0,255,255</cyan>
        <darkgreen>0,128,0,0,128,0</darkgreen>
        <darkorange>255,140,100,255,140,100</darkorange>
        <darkred>128,0,0,128,0,0</darkred>
        <cltshiftlightrpm pascaltype="word">3000</cltshiftlightrpm>
        </definitions>
</pages>