1
0
Fork 0
Commit graph

1802 commits

Author SHA1 Message Date
mfranz
02ca61961d allow to cycle through available styles 2005-07-13 10:56:42 +00:00
mfranz
34dd362fd7 moved to styles/ 2005-07-13 10:56:03 +00:00
mfranz
c5ad1399fa load both available styles (of course, fgfs shouldn't keep dozens of
styles in memory, but two or three are probably a good idea; one for
bright environments, one for dark, and one for ... whatever)
2005-07-13 10:55:36 +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
cefc6a87b1 xml syntax fix 2005-07-11 13:18:56 +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
7d25bac87f fix a few mistakes 2005-07-08 16:54:22 +00:00
mfranz
3f8f6bce2e document global color/font settings (themes) 2005-07-08 16:41:09 +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
2f761ab099 include the style file 2005-07-07 21:03:49 +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
ehofman
f2d7f7d9c0 Add the noshadow animation type 2005-07-05 17:58:17 +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
ehofman
e61b42ac68 Update timeofday 2005-07-04 09:10:27 +00:00
mfranz
68beceba9f typo 2005-07-03 13:15:39 +00:00
ehofman
b0e8526e8d Mathias Fröhlich:
I have introduced the posibility to start directly on the carrier.

With that patch you will have a --carrrier=id argument where id can either be
the pennant number configured in the nimitz scenario or the carriers name
also configured in the carriers scenario.
Additionaly you can use --parkpos=id to select different positions on the
carrier. They are also configured in the scenario file.

That includes the switch of the whole FGInterface class to make use of the
groundcache.
That means that an aircraft no longer uses the current elevation value from
the scenery class. It rather has its own local cache of the aircrafts
environment which is setup in the common_init method of FGInterface and
updated either manually by calling
 FGInterface::get_groundlevel_m(lat, lon, alt_m);
or implicitly by calling the above method in the
 FGInterface::_updateGeo*Position(lat, lon, alt);
methods.
A call get_groundlevel_m rebuilds the groundcache if the request is outside
the range of the cache.

Note that for the real usage of the groundcache including the correct
information about the movement of objects and the velocity information, you
still need to set up the groundcache in the usual way like YASim and JSBSim
currently does.
If you use the native interface, you will get only static objects correctly.
But for FDM's only using one single ground level for a whole step this is IMO
sufficient.

The AIManager gets a way to return the location of a object which is placed
wrt an AI Object. At the moment it only honours AICarriers for that.
That method is a static one, which loads the scenario file for that reason and
throws it away afterwards. This looked like the aprioriate way, because the
AIManager is initialized much later in flightgears bootstrap, and I did not
find an easy way to reorder that for my needs. Since this additional load is
very small and does only happen if such a relative location is required, I
think that this is ok.

Note that moving on the carrier will only work correctly for JSBSim and YASim,
but you should now be able to start and move on every not itself moving
object with any FDM.
2005-07-03 09:42:09 +00:00
mfranz
ceb8abd810 - move <hrule> to correct place and add a dummy child
- fix indentation
2005-07-02 20:51:09 +00:00
mfranz
bc12ef3a37 fix DOS line ending 2005-07-01 06:23:13 +00:00
mfranz
d9cb887375 Juergen Tretthahn: s/stepFlaps/flapsDown/ 2005-07-01 05:20:24 +00:00
mfranz
0f97cfccdf slightly more effective stop() method 2005-06-30 00:18:20 +00:00
andy
f1c70da6d4 Fix interpolate() so that interpolate("/prop/name") freezes the
interpolation at the current value.  This was always a feature of the
C++ code, but the Nasal wrapper couldn't handle the empty argument
list.
2005-06-29 23:58:58 +00:00
mfranz
c20d609bfb now that the <repeatable> property actually works, we have to set it
where it is desirable (it defaults to false); the <key>'s <repeatable>
setting is also used for the <mod-shift> branch, so we have to set it
as soon as one branch needs it.
2005-06-27 07:16: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
beb96181c5 - no <desc> in <bindings>; they are either at <key> level, or at
<mod-up>, <mod-shift>, ...
- remove doubles; cosmetics
2005-06-23 14:01:58 +00:00
mfranz
17166921c0 - rename controls.stepFlaps() to controls.flapsDown(), because:
- to support "old-style" gear/flap control (operation as long as button
  pressed/lever pushed -> b29/hurricane), let bindings not only report
  up/down, but up (-1), stop (0), down (1).
- let controls.flapsDown() ignore "stop" so as to remain compatible with
  prior behavior
- adapt all joysticks/aircraft (sigh)
- some minor cosmetics in joystick configs, such as indentation fixes
2005-06-22 13:08:01 +00:00
mfranz
a96b1d75cd add hrule description 2005-06-20 22:19:07 +00:00
mfranz
a943e01c6d Jim Campbell: another name; fixed <mac> axes 2005-06-20 17:12:16 +00:00
mfranz
1988fbb089 Jim Campbell: add carb-heat axis support 2005-06-20 16:52:58 +00:00
mfranz
6654497a78 cosmetics (only to annoy everybode) 2005-06-19 18:25:57 +00:00
mfranz
bc51a3df26 - exploit the nasal namespace feature, which simplifies matters a lot and
avoids the obscure and ugly "which" workaround

Note that the input subsystem sets variable "this" to this joystick's
base property path; This is useful to be able to access the driver's own
information from the property tree. Example:

   data = props.globals.getNode(this).getNode("data");

where "this" contains string "/input[0]/joysticks[0]/js[0]" if the js is
the first in the system
2005-06-19 17:29:56 +00:00
mfranz
94dc0aab8d another name ... 2005-06-18 12:21:11 +00:00
mfranz
8a2ba09c4a call controls.stepFlaps() wrapper to keep bindings functional with aircraft
that implement special flaps behavior; use controls.throttleAxis() where
safely possible to support arbitrary numbers of engines
2005-06-16 16:47:31 +00:00
mfranz
f4a90a615e add controls.gearToggle() convenience function; adapt all joystick files
to new controls function
2005-06-16 07:59:33 +00:00
mfranz
7cc31829a3 add one level of indirection for gear down/up and use that in all bindings,
so that aircraft with special requirements (hurricane) can simply redefine
controls.gearDown() without breaking all joystick setups
2005-06-16 07:36:54 +00:00
ehofman
941ec7e624 Adjust some friction and bumpiness values based on data from Gerard Robin. 2005-06-15 09:24:49 +00:00
mfranz
088f1e10c6 Vivian Meazza: js config for "Logitech Freedom 2.4" 2005-06-15 03:25:59 +00:00
curt
72e1e46116 Convert the c172p and c172r to use the new nasal electrical system. 2005-06-14 20:58:07 +00:00
curt
c77949a11d Specify a default generic electrical system model here rather than in the
aircraft-set.xml files.
2005-06-14 18:01:34 +00:00
mfranz
d432fe55d2 - one more <name>
- use nasal for throttle
- remove useless bindings
- description fix
2005-06-14 16:13:25 +00:00
mfranz
b104eef939 clean up, using the new possibilities of the input subsystem; preparation
for operation-modes; only one user visible change: the speed brake toggle
does now also show a popup like the thrust reverser and the parking brake;
I hope that this is seen as useful help rather than annoyance.
2005-06-13 06:41:30 +00:00
andy
57eea1be61 Melchior needs an equivalent of Perl's defined() function to test for
double-initialization of joystick blocks.  So here it is.
2005-06-12 18:17:00 +00:00
mfranz
7b41268068 joysticks.xml isn't needed any more; all js config files in
$FG_ROOT/Input/Joysticks are automatcally read in
2005-06-11 14:29:44 +00:00
mfranz
e269ac696f The default joystick is now identified by name "default". It's very, very
unlikely, that some js producer uses this as product id.
2005-06-11 14:18:40 +00:00
ehofman
92be46b73a don't reset the simulator when the aircraft hits the ground 2005-06-11 08:22:31 +00:00
mfranz
7bd6854b9b describe new "material"/transparency syntax 2005-05-24 12:12:33 +00:00