224
edits
No edit summary |
No edit summary |
||
Line 327: | Line 327: | ||
Disadvantages: | Disadvantages: | ||
Complicated code needed to declare the variable. | |||
Line 358: | Line 358: | ||
Advantages: | Advantages: | ||
Variable is easy to create. | |||
Disadvantages: | Disadvantages: | ||
You have to have at <nowiki>--prop:</nowiki> in the command line. | You have to have at <nowiki>--prop:</nowiki> in the command line. | ||
You can't type <nowiki>--prop:</nowiki> in the comments section at the top of your file, because of the consecutive minus signs. You have to type &minus;&minus;prop: | |||
You can't type <nowiki>--prop:</nowiki> in the comments section at the top of your file, because of the consecutive minus signs. You have to type &minus;&minus;prop: | |||
Whichever method you use, choose a better name than ''mode'' for your variable. It is too common a word and may well one day be used somewhere in the system files. In the xml file for the Saitek Yoke, where I use a variable to control the assignments of the levers on the quadrant, I call the variable ''SaitekMultiMode''. Unlikely to be used by the FG programmers. | |||
----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
edits