1
0
Fork 0
Commit graph

191 commits

Author SHA1 Message Date
mfranz
20f8329175 Stuart BUCHANAN: left align checkboxes
mf: add some space
2006-02-23 11:17:51 +00:00
mfranz
cc6c40026e not everyone likes the new version ... 2006-02-22 22:43:21 +00:00
mfranz
ceeb9503f8 Stuart BUCHANAN:
Nasal/XML based tutorial system
2006-02-22 17:03:42 +00:00
mfranz
a1a5a7e618 make input fields instantaneous, like the check- and radioboxes (which is
not only more consistent, but also makes the autopilot dialog act more like
the real device). Add a few rules. Move the checkboxes to the left, as it's
usually done in GUIs for switches that enable/disable a group of widgets.
2006-02-16 15:43:30 +00:00
mfranz
83257a80b8 Ctrl-P to print (because we can :-) 2006-02-15 16:37:23 +00:00
mfranz
2d0cc4d156 add "Print" button to print code to terminal window 2006-02-15 12:15:37 +00:00
mfranz
182d35ec17 save code on close 2006-02-15 10:38:13 +00:00
mfranz
fabf21cf8d add Nasal console to debug menu. Usage: enter Nasal code, press <TAB> to
leave edit field!, press <Return> to execute;  as an example try
screen.log.write("hello world"), or f16.canopy.open() in the F16,
or bo105.doors[3].move(0.3) in the Bo105 etc.
2006-02-15 10:33:38 +00:00
mfranz
26a03db5b6 Just a gimmick: make background color configurable. Maybe some dark color
might look nicer for certain aircraft specific splash screens. Test with:
$ fgfs --prop:/sim/gui/colors/splash-screen/blue=0.35
2006-02-12 20:37:21 +00:00
mfranz
f91a0a1396 the Helvetical.txf just doesn't work in brighter colors 2006-02-11 12:04:49 +00:00
mfranz
8e4bc2f2ce add message-display font specification 2006-02-04 13:07:19 +00:00
mfranz
24139b8600 use layouter and fixed font 2006-01-28 11:50:03 +00:00
curt
0dc95f3604 Add a check box to turn on/off background ATC chatter. 2006-01-09 14:40:01 +00:00
mfranz
df6d7171a6 - fps.xml: revive the traditional font color (a bit brighter than pure red)
- gui.nas: use 4-space indents like the rest of the file; waste slightly less
           cycles: checking for the property shouldn't be done in a loop at
           all, it only serves as a temporary solution
2005-12-16 12:14:43 +00:00
mfranz
fbd735408d implement frame rate display as transparent & draggable dialog
(ordered by Curt as Christmas present :-)
2005-12-15 22:00:31 +00:00
mfranz
5c4731ea93 s/OK/Close/; hrule; cleanup 2005-12-14 12:43:10 +00:00
mfranz
acebb0015a "OK" what? (If there's no title, then the button should at least tell us.) 2005-12-14 12:37:17 +00:00
mfranz
ab06f70d62 add UTC and local time (live updated) 2005-12-14 12:16:11 +00:00
mfranz
2409d0f6d3 use layouter; add <key> defs
- left column:  local (sim) time  (0-key)
- right column: daytimes          (1--7 key)
2005-12-14 10:38:38 +00:00
mfranz
f39389ed91 the VERA_12B font has been renamed to SANS_12B 2005-12-11 20:40:47 +00:00
mfranz
b8886814ec Access menu entries by their name. This way we can avoid fragile absolute
paths. (The label text isn't suitable for this, because it's subject to
translation.)
2005-12-09 10:34:43 +00:00
mfranz
4e4789b560 disable "Fuel & Payload" entry; this is enabled for YASim aircraft in gui.nas 2005-12-06 17:58:41 +00:00
mfranz
d98ab96831 set editable textboxes to "Yeukky Yellow"[TM] input field color 2005-11-09 18:25:16 +00:00
mfranz
a3471e2897 set "textbox" color; set "inputfield" colors (pending plib patch; will
be ignored when used with unpatched plib)
2005-11-09 17:49:25 +00:00
mfranz
eeff07c0e7 replace hard-coded HUD config dialog with NewGUI dialog 2005-11-09 10:42:34 +00:00
mfranz
759ff1b715 capitalization fix 2005-11-08 19:25:36 +00:00
mfranz
fc73b6d772 put "ATC communication" dialog vertically centered at the right screen
edge; there it doesn't obstruct the view at the runway, doesn't hide
important instruments, and is near the radio stack (where it belongs :-)
2005-11-07 00:06:02 +00:00
mfranz
30f26cfa4e close frequency search dialog on quick-button press; center frequency
search and display dialog; move atc dialog down a bit
2005-11-06 20:22:43 +00:00
mfranz
9fa98151db use <key>Esc</key> instead of <keynum>27</keynum> 2005-11-05 18:42:28 +00:00
mfranz
9c49dccd5b let all dialogs in $FG_ROOT/gui/dialogs be closed/canceled/dismissed on
Escape key; nasal generated dialogs will follow
2005-11-05 13:59:06 +00:00
mfranz
47854e84e5 use wrapping <textbox> for METAR maessages. (<input> doesn't allow
multi-line content and draws parts ouside the widget.)
2005-11-04 20:09:31 +00:00
mfranz
02b79bb3aa add <keynum> to trigger pre-defined transmissions via keyboard
("1", "2", ...). The real key number is set from ATCDialog.cxx.
2005-11-02 13:14:15 +00:00
mfranz
c3442aa9d8 Formerly hard-coded dialogs from ATCDialog.cxx. Some text will be
overwritten by C++ code before displaying. These are written in
upper case letters, but this is only a hint for editors of this
file and doesn't impress ATCDialog.cxx.
2005-10-26 17:59:28 +00:00
mfranz
5fd4c0d7dc now that the <text> shift bug is fixed, we don't need that much space
to hide it any more
2005-10-21 19:25:40 +00:00
mfranz
851860101e Title <hrules> are only one pixel high (maybe make that settable in the
gui style later). The dummy is a temporary workaround. When the underlying
bug is fixed, the whole line will just be <hrule/>.
2005-10-20 13:54:53 +00:00
mfranz
8e281e4f33 generic one-button message dialog. Used for screenshot and browser help
confirmation and other message boxes. Message and button text are filled
in by the calling code.
2005-10-20 12:44:11 +00:00
andy
2cce6759ff Vassilli added a dialog under location that allows the user to set the
tower location dynamically at runtime.
2005-10-19 19:22:16 +00:00
mfranz
26c5f9e0bd no more fixed coords -> use layouter 2005-10-02 19:56:44 +00:00
mfranz
013020f346 Vivian MEAZZA:
add option that tells the carrier to line up with the wind direction
2005-10-02 09:57:35 +00:00
ehofman
56d21629a6 Add a file that was left in a previously non-exsistent dialog dirextory. 2005-10-01 11:11:45 +00:00
ehofman
d86391cd03 Harald JOHNSEN:
added a new scenario 'none' so we can switch back to standard flightgear weather
2005-08-22 17:41:58 +00:00
ehofman
ace9790ced Harald JOHNSEN:
I added an option to disable the recording of replay data. It takes more cpu than we can think.
2005-07-31 08:52:26 +00:00
ehofman
26fc44aa32 Harald JOHNSEN:
Changes
=======

- shadowvolume.cxx, renderer.cxx :
  - reduced the polygon offset a bit to eliminate some artifact ;
  - changed again the cleanup code for objects inside a tile because it could crash on rare occasion ;
  - the culling of shadow casters has been rewritten to traverse the scene graph, it should be
    a bit faster when there is a lot of objects ;
  - the range selector was not correctly handled, sometimes the wrong LOD was casting shadows.
  - added the option to display aircraft's transparent objects after the shadows, this will
    reduce the problem of shadows being hidden by the transparent object (propeller disk,
    rotor, etc). A side effect is that aircraft's transparent objects won't receive shadows
    anymore. This is usually a good thing except when the aircraft use a 'transparent'
    texture where it should not. A transparent texture in the plib context is a texture
    with an alpha channel or a material with alpha <= 0.99.

- model.cxx, animation.cxx, shadowvolume.cxx :
  - added an optional <condition> under the <noshadow> animation

- tower.cxx
  - correct a rare bug where all occurences of the aircraft are not deleted from the
  departure list causing a crash in FGTower::CheckDepartureList function.
2005-07-18 16:58:52 +00:00
mfranz
47436f4676 make text color a bit brighter 2005-07-13 11:32:37 +00:00
mfranz
d4f33ef4c2 fix input field color 2005-07-13 11:03:16 +00:00
mfranz
34dd362fd7 moved to styles/ 2005-07-13 10:56:03 +00:00
mfranz
79ba75f01b - create styles directory
- move old style there, named "default.xml"
- add experimental style: "anthrax.xml" ("anthracite.xml" was too long :-)
2005-07-13 10:53:38 +00:00
mfranz
30526c9307 fix typo; rule instead of underscores 2005-07-11 08:27:47 +00:00
mfranz
7c0b24a30c cleanup (setting "combo" properties doesn't work due to yet another plib bug) 2005-07-11 08:08:19 +00:00
mfranz
3f8c5f59c9 style resembles original style much better now; dialogs are still too
opaque.
2005-07-08 23:32:46 +00:00
mfranz
a14392d518 font name change due to license requirements 2005-07-08 13:30:15 +00:00
mfranz
114eceb823 make "OK" the default button 2005-07-08 07:08:55 +00:00
mfranz
350386e4f5 - simple style file, that is supposed to eventually define the old fgfs
style by means of the new "theme engine". Currently there are some
  differences, though.
2005-07-07 21:03:15 +00:00
mfranz
83356869b2 <format>s are only applied again on updated values if they are <live>
(does that make sense?)
2005-07-05 09:12:23 +00:00
ehofman
49ebb5b7a7 Depreciate the old-pilot-offset-dialog. 2005-07-05 08:51:18 +00:00
ehofman
c24684b0bf Depreciate the old-load/save-dialog code. 2005-07-04 14:40:35 +00:00
mfranz
ceb8abd810 - move <hrule> to correct place and add a dummy child
- fix indentation
2005-07-02 20:51:09 +00:00
ehofman
07aaf76d45 Harald JOHNSEN:
Changes
=======

New volumetric shadows for FlightGear.

There is now two new checkboxes in the rendering dialog to enable/disable shadows
for the user aircraft and for static scenery objects (ie those defined in the .stg files).
AI and random objects are not handled for the moment.


known bugs
==========
- ghost objects
2005-06-26 17:19:58 +00:00
mfranz
336969e3f0 spelling fixes (thanks to Vivian) 2005-05-15 16:34:00 +00:00
ehofman
fec33019cb Harald JOHNSEN:
This is another update for the cloud code, a lot of lines but this time I have started to add the doxygen doc.

Misc
====

- corrected a bug when RTT is not available, the current rendering context was
  altered
- if RTT is not available then 3d clouds are not drawn at all
- impostors lighting is now recomputed when the sun changes position
- distant objects are no more seen in front of clouds
- blending of distant clouds is a bit better now
- litle optimization of code (uses a less cpu time)
- use layer wind speed and direction (no more hardcoded wind)
- fov is no more hardcoded

Changes
=======

- clouds (cu only) are dissipating/reforming (experimental)
- compute a turbulence factor that depends on surrounding clouds and type of
  clouds (experimental)
- clouds shapes are defined in cloudlayers.xml
- type of clouds present in a layer is also defined in cloudlayers.xml
- cloud layers are generated from metar and other misc. data (in progress)
- added a rain effect around the viewer (enabled in the rendering dialog and
  when the metar property says so)
- added a lightning effect (enabled in the rendering dialog) : cb clouds spawn
  new lightnings
- added a dialog to select from different weather source : metar/property,
  a 'fair weather' environment and a 'thunderstorm' environment.
2005-05-15 09:25:17 +00:00
mfranz
3640023300 don't use /sim/ATC/ and /sim/atc/ wildly mixed together; it's lower case
everywhere, just as in every other property name
2005-05-10 09:41:19 +00:00
ehofman
1846713b30 Clean up the appearance a bit. 2005-05-06 14:01:46 +00:00
ehofman
ba579498ae Harald Johnsen: Add a texture resolution option. 2005-04-26 20:15:48 +00:00
mfranz
3853443009 the frame rate display setting shouldn't be between two cloud settings 2005-04-24 16:37:01 +00:00
mfranz
58e9c01b70 - better apply each of the changes immediately, so that users can decide if
they want the feature or not, based on what they see. Having to click on
  "Apply" every time is cumbersome.
- show the slider values
- remove the now obsolete buttons (KISS)
- added "my" title bar, albeit without close button (I was *very* tempted :-)
2005-04-24 16:31:05 +00:00
ehofman
f6107604d2 Remove DOS line endings. 2005-04-24 14:19:49 +00:00
ehofman
8c641c44e3 Harald Johnson:
- new and updated sources for the new volumetric clouds
- 2 new textures for the clouds
- an update to the render dialog to enable/disable and change a few parameters
  for the new clouds
2005-04-24 11:18:27 +00:00
ehofman
ec8742bd65 Melchior FRANZ:
Implement simple help system with global and aircraft specific dialogs:

The gui.nas changes have been discussed with Andy. All ac have a help dialog,
but some are empty. (This wouldn't have been necessary, as the system falls
back to the "Common Aircraft Keys" if an aircraft has no help defined, but an
empty dialog is less confusing and encourages to be filled with interesting
information.   :-)    I scanned all aircraft files for interesting performance
data and added some to the dialogs (stall speed, etc.) The Concorde and the
p51d have (over?)complete dialogs and can serve as examples. The format is
documented in $FG_ROOT/Nasa/gui.nas.

There is also a couple of other, minor fixes.

The following files have ugly MSDOS line endings:

  $FG_ROOT/Aircraft/Hunter/hunter{-2tanks,}-set.xml
  $FG_ROOT/Aircraft/A380/A380-set.xml


The Concorde-jsbsim.nas file is a useless copy of the real */nas file, which is
in Nasal/. I'was debugging the Concorde and wondered why changes to this file
had no effect ...
(Fixed Concorde in the help-ac.diff patch: don't use "interpol" keyword as
variable.)
2005-04-19 13:43:44 +00:00
ehofman
54aef2464c Andrew Midson:
I have made the
'Select Airport from List' option in FlightGear work
(I think) properly. I have some concerns about the
solution, which could be broken by changes to plib (if
they re-use the value I have assigned to
PUCLASS_LIST), but for the moment it seems to work OK.

Erik Hofman:
A request has been sent to John Fay to include the puList
code in the puAux subdirectory of plib so expect some
changes for future version of FlightGear.
2005-01-31 10:37:21 +00:00
ehofman
417d884151 Melchior FRANZ:
Although this doesn't work anywhere but on my machine ... OK/Cancel
is completely out of place for this dialog. This has to be Apply/Close
or something.
2004-12-27 13:37:06 +00:00
david
e03ad7574e Fix a typo for the DME frequency property. 2004-12-21 22:53:05 +00:00
curt
789560ea22 Roy Vegard Ovesen:
I've finished the emigration of the radiostack, and I've also removed it
completely. It turned out that the comm radio is completely implemented in
the ATC subsystem. I've changed the affected ATC files to point
to /instrumentation/com, but I guess that the maintainer of the ATC code
should decide wether to make it configureable, and how.

I also had to change some files in Network and Main. The changes in network
should be obvious, but the changes in Main were a bit suspect. The files
included radiostack.hxx, but they weren't directly depending on
radiostack-hxx. They were depending on other files that were included by
radiostack.hxx. I got it to compile, but I'm not sure if I included the
correct directly depending file.

For the data directory I changed every occurrence of /radios/
with /instrumentation/ with this simple one-liner that I found on the net:

find -name '*.xml' -type f | xargs perl -pi -e
's/\/radios\//\/instrumentation\//g'

Instead of me sending all the files that got changed by this I suggest that
you execute the one-liner yourself. Of course I can not guarantee that this
will work perfectly, but I considered hand editing to be not an option (I'm
lazy). I don't want to test every aircraft to see if everything still works,
I think it's better to wait and see if anyone complaints about broken nav
radios/instruments.
2004-12-03 21:25:48 +00:00
curt
d5930857cc Have the hires screen shot menu item point to the right command. 2004-09-27 02:40:10 +00:00
jimw
ac791abbbe Scenery Loading popup message 2004-07-22 02:59:59 +00:00
david
a8556e0e65 Add a menu entry to reinitialize the input subsystem (say, after
plugging in a joystick).
2004-06-24 02:09:53 +00:00
curt
c4f0a58b8f Change the fps toggle property name a bit and add a toggle switch in the
gui/dialog/rendering box.
2004-06-14 16:39:00 +00:00
ehofman
786c052d51 Add a checkbox for bump-mapping 2d clouds. 2004-06-07 16:00:00 +00:00
andy
acb17eccc9 Really fun (and surprisingly easy) hack: a fuel and weight
configuration dialog box which automagically adapts itself to
aircraft configuration.  Only the A-4 and Cherokee are set up
currently.
2004-05-15 21:50:51 +00:00
andy
fcab4c6e7b That didn't work. I found out why and fixed it. (Heh. Don't put the
bindings on the group object.  Those don't fire callbacks very often.)
2004-05-14 21:57:33 +00:00
andy
cd9119008d Misc changes. Remove the width/height values for the slider, since
the root problem was a C++ bug.  Remove the no-op hbox around the mute
button, and make it "live" when clicked.  Tried to make the slider
live, but discovered that bindings don't work on them; gotta fix
that.  Change some of the wording to be more in line with standard
conventions; hopefully Curt's OK with that. :)
2004-05-14 17:35:18 +00:00
curt
6e40f10ab9 Add a sound config dialog box, needs some work but doesn't hurt anything. 2004-05-14 16:21:11 +00:00
andy
f49f0d18c7 Yank the duplicate target-speed input fields, and use a single one
that spans both rows.  It works well, but might be a little ugly...
2004-05-12 17:06:14 +00:00
andy
54954eb8de GUI layout management and a few visual/eye-candy modifications. See
DOCS/README.layout in the base package for details, along with the
modified dialog files.
2004-05-12 15:37:17 +00:00
ehofman
6ff20282a1 Add a dialog box to set the GPS waypoints. 2004-05-03 19:06:02 +00:00
david
88690cc523 Add a menu entry for the instrument settings dialog. 2004-03-23 21:41:32 +00:00
david
b0ffc44129 Added a simple, easy-to-use dialog for setting instruments (currently
the altimeter and heading indicator).
2004-03-23 21:41:16 +00:00
jimw
4bf0e50651 Add vertical speed hold to autopilot dialog 2004-03-21 22:23:41 +00:00
david
012ecde8d7 Fix the ADF properties. 2004-03-11 14:37:19 +00:00
daveluff
4f02c5d2cb Remove some more ^M's. For some reason d2u doesn't seem to have worked on these. 2004-03-09 13:18:23 +00:00
daveluff
dc0538cc8c Add a combo box to set AI traffic level, and remove the text about AI being limited to KEMT only 2004-03-09 12:32:04 +00:00
david
b3f89f30d7 Add the ability to select radials for the VOR and ADF, and add an OK
button.
2004-02-13 02:28:24 +00:00
curt
a180a0d659 Default autopilot tweaks. 2004-02-07 21:48:39 +00:00
curt
f2c9d6cbf0 Move the autopilot config reload over next to the gui and panel reloads
under the Debug menu.
2004-02-03 20:12:51 +00:00
curt
76a08b6467 Autopilot overhaul. 2004-01-31 19:55:13 +00:00
curt
37aaa25ed7 Make sure we zero out some of the other important properties which we don't
want to have values if we are starting on the ground.
2003-12-07 06:13:17 +00:00
curt
9f82101c7c Update the set aircraft location dialog box.
Make a new set location (on ground) dialog box which knows how to set up
the /sim/presets/ properties correctly for a new ground position.
For now leave the previous all-in-one dialog box for in-air resets.  However
this really needs some more work to make sure the /sim/presets properties get
set correctly.
2003-12-07 06:08:19 +00:00
ehofman
bc8dc5a466 Add a dialog box to adjust LOD ranges. 2003-11-29 14:20:00 +00:00
david
545a40e434 Add a dialog for selecting an airport from a scrolling list. 2003-11-27 23:43:43 +00:00
daveluff
9cb64c18be Added frequency lookup option to ATC menu 2003-10-10 15:12:04 +00:00
curt
2089bbbdcc Added of time of day setting dialog. 2003-09-17 15:49:39 +00:00