1
edit
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users 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 43: | Line 52: | ||
[[File:menubar2.jpg|517px]] | [[File:menubar2.jpg|517px]] | ||
=== 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. | |||
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. | |||
<syntaxhighlight lang="xml"> | |||
<gui> | |||
<current-style type="int" userarchive="y">1</current-style> | |||
<style n="0" include="gui/styles/classic.xml"/> | |||
<style n="1" include="gui/styles/anthrax.xml"/> | |||
<devel-widgets type="bool" userarchive="y">false</devel-widgets> | |||
</gui> | |||
</syntaxhighlight> | |||
== Flickering Menubar text under Rembrandt / ALS == | == Flickering Menubar text under Rembrandt / ALS == | ||
Line 50: | Line 76: | ||
If there is an option on the Debug menu called *cycle gui* use this, ensure that you are using GUI style 1, i.e. in the preferences, or autosave the gui section should be as followed | If there is an option on the Debug menu called *cycle gui* use this, ensure that you are using GUI style 1, i.e. in the preferences, or autosave the gui section should be as followed | ||
< | <syntaxhighlight lang="xml"> | ||
<gui> | <gui> | ||
<current-style type="int">1</current-style> | <current-style type="int">1</current-style> | ||
<devel-widgets type="bool">false</devel-widgets> | <devel-widgets type="bool">false</devel-widgets> | ||
</gui> | </gui> | ||
</ | </syntaxhighlight> | ||
== How to Change the Default Menubar Font Size == | == How to Change the Default Menubar Font Size == | ||
Line 61: | Line 87: | ||
For those using bigger monitors or higher resolutions it may be necessary to increase the font size of the menubar. The change below can be applied and should be made before launching. | For those using bigger monitors or higher resolutions it may be necessary to increase the font size of the menubar. The change below can be applied and should be made before launching. | ||
< | <syntaxhighlight lang="diff"> | ||
--- flightgear-data/fgdata/gui/styles/anthrax.xml.orig 2014-04-24 19:52:04.353028047 -0800 | --- flightgear-data/fgdata/gui/styles/anthrax.xml.orig 2014-04-24 19:52:04.353028047 -0800 | ||
+++ flightgear-data/fgdata/gui/styles/anthrax.xml 2014-04-24 19:57:12.548002672 -0800 | +++ flightgear-data/fgdata/gui/styles/anthrax.xml 2014-04-24 19:57:12.548002672 -0800 | ||
Line 71: | Line 97: | ||
<baseline-height type="float">21</baseline-height> | <baseline-height type="float">21</baseline-height> | ||
</gui> | </gui> | ||
</ | </syntaxhighlight> | ||
Fonts available are based on what is installed in fgdata/Fonts in the tfx format. | Fonts available are based on what is installed in fgdata/Fonts in the tfx format. | ||
<references/> | <references/> |
edit