1
edit
No edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 36: | Line 36: | ||
* '''menu n="10":''' creates an extra menu item, at the end of the menubar. | * '''menu n="10":''' creates an extra menu item, at the end of the menubar. | ||
* '''aircraft.livery.dialog.open():''' the prefix 'aircraft' is coming from the tagname you choose inside the <nasal> section, eg: | |||
<syntaxhighlight lang="xml"> | |||
<nasal> | |||
<aircraft> | |||
<file>Aircraft/MyAircraft/Nasal/script.nas</file> | |||
</aircraft> | |||
</nasal> | |||
</syntaxhighlight> | |||
Use only characters that could be used to name and call a nasal function (eg: the '-' character is not valid). | |||
== Styles == | == Styles == | ||
Line 45: | Line 54: | ||
=== Creating your own === | === Creating your own === | ||
{{See also|PUI}} | |||
[[File:Broken PUI.png|thumb|PUI fonts broken]] | |||
It's very easy to make your own designs. Just copy one of the files that you find in <tt>[[$FG_ROOT]]/gui/styles</tt> and change it to your needs. | It's very easy to make your own designs. Just copy one of the files that you find in <tt>[[$FG_ROOT]]/gui/styles</tt> and change it to your needs. | ||
Then, edit the follwing code in the <tt>[[$FG_ROOT]]/preferences.xml</tt> file to fit your style. You could simply add a line like <tt><style n="0" include="gui/styles/anthrax.xml"/></tt>. The current-style tag specifies the style that should be used when FlightGear loads. | Then, edit the follwing code in the <tt>[[$FG_ROOT]]/preferences.xml</tt> file to fit your style. You could simply add a line like <tt><style n="0" include="gui/styles/anthrax.xml"/></tt>. The current-style tag specifies the style that should be used when FlightGear loads. | ||
Line 56: | Line 69: | ||
</gui> | </gui> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Flickering Menubar text under Rembrandt / ALS == | == Flickering Menubar text under Rembrandt / ALS == |
edit