Menubar: Difference between revisions

Jump to navigation Jump to search
31 bytes removed ,  3 March 2012
m
Move menu items to top, as those are most important.
m (→‎Menu items: + map)
m (Move menu items to top, as those are most important.)
Line 1: Line 1:
The in-game '''menubar''' of [[FlightGear]] is located at the top of the screen.
The in-game '''menubar''' of [[FlightGear]] is located at the top of the screen.


== Styles ==
== Menu items ==
The menubar is available in various styles. Currently there are two styles (both are shown below) packaged with FlightGear. The lower one is standard, since FlightGear 1.0.0. You can switch between styles by pressing Shift-F10.
* [[Autopilot]]
 
* [[Chat Menu]]
[[File:menubar1.jpg|517px]]
* [[Instant Replay]]
 
* [[Map]]
[[File:menubar2.jpg|517px]]
* [[Property browser]]
 
* [[Route Manager]]
=== Creating your own ===
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>


== Add items ==
=== Add items ===
=== Aircraft dependent items ===
To add a menu for a specific plane only you have to enhance the planes <tt>-set.xml</tt> file. Add the follow lines (example for the [[Livery over MP|livery selection dialog]] in a [[Boeing 787]]), or any item that you want to show, above the </sim> tag. You can add as many items and menus as you like, but keep the menubar as small as possible, the larger the outside view will be.
To add a menu for a specific plane only you have to enhance the planes <tt>-set.xml</tt> file. Add the follow lines (example for the [[Livery over MP|livery selection dialog]] in a [[Boeing 787]]), or any item that you want to show, above the </sim> tag. You can add as many items and menus as you like, but keep the menubar as small as possible, the larger the outside view will be.


Line 47: Line 34:
* '''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.


== Menu items ==
== Styles ==
* [[Autopilot]]
The menubar is available in various styles. Currently there are two styles (both are shown below) packaged with FlightGear. The lower one is standard, since FlightGear 1.0.0. You can switch between styles by pressing Shift-F10.
* [[Chat Menu]]
 
* [[Instant Replay]]
[[File:menubar1.jpg|517px]]
* [[Map]]
 
* [[Property browser]]
[[File:menubar2.jpg|517px]]
* [[Route Manager]]
 
=== Creating your own ===
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>


[[Category:FlightGear feature]]
[[Category:FlightGear feature]]
[[Category:Menubar]]
[[Category:Menubar]]

Navigation menu