1
0
Fork 0
Commit graph

2644 commits

Author SHA1 Message Date
mfranz
cfd9c1b48f pointless spelling fixes 2007-06-22 18:49:38 +00:00
mfranz
199756d189 increase range of searched and displayed frequencies 40 -> 50 nm 2007-06-22 18:08:35 +00:00
mfranz
248d4fcf60 - fix behavior for broken input
- more documentation
2007-06-22 17:52:37 +00:00
mfranz
bf2794eef6 Aerotow: Rockfire Gameport <-> USB converter, with a rather generic name :-/ 2007-06-22 17:10:25 +00:00
mfranz
f827653668 - create new Nasal module string.nas with simple shell style pattern matching
algorithm (needed for the file selector and useful for other purposes, like
  assembling lists of livery or screenshot files etc.)
- io.nas: move fixpath to string.nas (it's not only useful for file paths
  but can also be used for property paths)
- screen.nas: move trim to string.nas (used by screen.nas and nasal-console.xml)
- gui.nas: add pattern matching to FileSelctor
- ufo.nas: use patterm matching (only *.ac and *.xml files shall be listed)
2007-06-22 14:13:30 +00:00
mfranz
eea4465eea Maik JUSTUS: fix/implement directional sound 2007-06-21 21:55:23 +00:00
mfranz
44cbca565d add ghost(type) output, just like nasal/lib/debug.nas :-) 2007-06-21 20:00:21 +00:00
mfranz
ce356a350e don't multiply with nil 2007-06-20 15:16:29 +00:00
mfranz
35bd6c379a sort the model list again after adding models from the file selector,
or the binsearch will have a hard time ...
2007-06-19 21:21:14 +00:00
martin
2487ef043d Holger Wirtz:
Prepare for new FlightGear voice communication agent.
2007-06-18 16:39:46 +00:00
mfranz
e880d5ecee - l-key opens file selector to load 3D model file from the disk. This model
is added to the list and activated.
- simplify savexml handling using the "data" node for temporary data
2007-06-18 16:35:03 +00:00
vmmeazza
a28b48b294 prepare for new weather radar 2007-06-18 16:28:13 +00:00
mfranz
fa820545b7 livery: need to set name for standard dialogs separately 2007-06-18 15:34:36 +00:00
mfranz
b96c113765 always the same module dependency problems ... sigh 2007-06-18 15:15:16 +00:00
mfranz
ce70468d73 - fix Coord.latlon() method (output degree instead of radian to be consistent
with Coord.lat() and Coord.lon(), and because this is the preferable unit
  in script space)
- add put_model(<path>, <coord> [, <hdg> [, <pitch> [, <roll>]]]) variant,
  which takes a Coord instead of <lon>/<lat>/<alt>). Here's some inspiration:

  setlistener("/sim/signals/click", func {
      geo.put_model("Models/Fauna/cow.ac", geo.click_position(), 360 * rand());
  });
2007-06-18 11:06:10 +00:00
mfranz
870830b4a7 - import asin/acos/mod from the new math.nas
- drop parentheses where not necessary (looks cleaner :-)
2007-06-18 10:33:37 +00:00
mfranz
b2750d8a05 adapt for geo.nas changes (swapping lon & lat) 2007-06-18 10:23:14 +00:00
mfranz
32616f42a0 swap lon & lat everywhere. lat/lon is illogical, but unortunately a kind of
standard.  :-(
2007-06-18 10:22:17 +00:00
mfranz
31eff644c1 - add setters to the gui.FileSelector, so that title/button text/dir/file/
dotfile flag can be set later (and take effect after the next open())
- add Alt-".." binding: change to $PWD (which is the default starting dir)
2007-06-17 22:56:22 +00:00
mfranz
d9945b43ce heh, no. offset and factor weren't swapped. Reverting that part. :-) 2007-06-17 21:53:12 +00:00
mfranz
970710613d minor fixes to the "scale" animation section: it's mostly right, and if
people had followed it, then we wouldn't have had to fix aircraft. :-)
There's only the meaning of offset and factor swapped once, and it's
nicer to have prop*factor+offset than offset+prop*factor.
2007-06-17 21:17:04 +00:00
mfranz
10ca74fc83 - make dir entry an input field
- make title & button text separately settable
- sequential numbers for clones rather than random numbers
2007-06-17 15:27:33 +00:00
mfranz
e6ca353144 - use debug.printerror()
- add tab number to error location
- drop some parentheses
2007-06-17 14:21:29 +00:00
mfranz
cb405c955f - don't use random numbers for cloned dialogs, but good old boring
sequential numbers (looks nicer, and is slightly less risky)
- use var keyword on functions
2007-06-17 13:44:54 +00:00
mfranz
2ae2d60de2 add status feedback for dynamic view toggle entry 2007-06-17 11:35:35 +00:00
mfranz
e91115e328 Maik JUSTUS: use geodtocart() and carttogeod() functions, rather than
simplified conversion based on a spheroidal Earth
2007-06-16 18:26:06 +00:00
mfranz
59c303bcc1 add printerror() function that prints error vectors as set by call() 2007-06-16 08:21:39 +00:00
mfranz
6a7dc46bd2 - s/aircraft/tanker/ (patch inspired by Alexis BORY :-)
- add support for /systems/refuel/serviceable flag  (can be set to false
  by the aircraft as long as the door over the boom entry is closed, etc.)
2007-06-16 00:44:44 +00:00
mfranz
c108d87b31 refuel serviceable setting 2007-06-16 00:35:25 +00:00
mfranz
75a2b57a83 - move dialog registration to the Dialog class
- fix documentation
2007-06-15 16:22:13 +00:00
martin
baa037fe7e Holger Wirtz:
Make use of the new /velocities/groundspeed-kt property.
2007-06-15 06:31:26 +00:00
mfranz
57b8debf7e - Dialog: add optional third arg: dialog name (by default taken from the
dialog's <name> entry)
- FileSelctor: new class derived from Dialog. It clones the file-select
  dialog and reports chosen files/dirs via callback function.
2007-06-14 23:19:43 +00:00
mfranz
7518aa645b - dialog-close for the original (non-cloned) dialog instance
- simplify close() function for cloned instances (ignore errors via call())
2007-06-14 23:09:01 +00:00
mfranz
e3936992d5 - don't choke on dirs for which we don't have permission
- don't delete input field on dir changes
- wider OK button (meant for defining the purpose of the file selection)
2007-06-14 15:27:49 +00:00
mfranz
183672f8a2 - don't prepend slash on relative paths or archaic paths with drive letters
- documentation updates
2007-06-14 11:26:16 +00:00
mfranz
8e4209c5cb first stab at file-select dialog. Initial target dir can be set in
/sim/gui/dialogs/file-select/directory, the selected file's full path
is returned in /sim/gui/dialogs/file-select/directory. There will be
a gui.file_selector class that allows to have more than one of these
dialogs open, where each of them reports the result to a callback function.

The dialog toggles dotfile display with ctrl-click on the "." entry,
and switches to FG_ROOT and FG_HOME with ctrl-click and shift-click on
the ".." entry.

This dialog is ATM not used anywhere in fgfs, but might be needed by
add-ons, much like the xml.nas code. Note that backslashes are converted
to slashes, which should ensure that no characters can be sneaked in
on UNIX systems. This breaks files containing escaped characters on
MS Windows. Fix for that on request. :-)  Special characters (like German
umlauts) aren't displayed correctly, but properly returned. (Depending
on the plib font.)
2007-06-13 21:20:04 +00:00
mfranz
a41ba9f403 suppress output ...
- in replay mode
- when trying to raise the flaps, but they are already fullly up
- when trying to retrace the gear, but it is already retracted

more cleanup later ... much later  :-)
2007-06-13 20:49:11 +00:00
mfranz
0fed31d7b7 - fixpath: don't need to remove leading/trailing slashes "manually"; that's
a side effect of the stack loop already
- replace all backslashes by slashes, to avoid security problems on UNIX
  (if support for them is desirable on MS Windows, then we'd need an OS
  property)
2007-06-13 20:31:09 +00:00
mfranz
120d09b5e6 Andy ROSS: functions to check for stat()[2] flags, such as isdir()
mf: fixpath(): function to normalize file paths (doesn't handle escaped
    characters yet)
2007-06-13 16:46:41 +00:00
sydadams
e32a74e034 fixed nasal error --- tried to set DoubleValue("") 2007-06-13 05:00:21 +00:00
mfranz
d9910b27e7 simplification 2007-06-12 22:08:18 +00:00
mfranz
3c73eaa45f documentation update and cosmetics 2007-06-12 21:27:48 +00:00
mfranz
4c2ded3509 throw out load_xml_nasal and implement load_nasal(<file> [, <module>]);
This can be used to load and run Nasal code at runtime (without need
for an XML frame).
2007-06-12 19:13:28 +00:00
mfranz
a1fd54cfdf aircraft.nas, gui.nas: adapt loadxml for absolute paths, drop second fgcommand arg
debug.nas, tutorial.nas: adapt for abs. paths
fuel.nas: cleanup
screen.nas: don't remove listeners -- that's done automatically by removind
    the node in NasalSys.cxx
xml.nas: minor documentation fix
2007-06-12 16:20:55 +00:00
mfranz
eab53706ba - replace "view-cycle" fgcommand by view.stepView() wrapper
(This fgcommand was broken for a few weeks. Now it's fixed, but the
  wrapper use is desirable, as this allows easy redefining.)
- cyborg gold: cosmetics
2007-06-11 19:23:15 +00:00
mfranz
39ee6cff4f fix backtrace() (probably broken since the last Nasal update) 2007-06-10 20:31:33 +00:00
frohlich
c621499645 Modified Files:
materials.dtd materials.xml:Olaf Flebbe: Clean up anisotropic
	filtering.
2007-06-08 06:51:38 +00:00
andy
30502189d8 The screen-capture command no longer pops up a dialog, so toss up a tip
from within the F3 keybaord handler instead.
2007-06-07 16:59:07 +00:00
mfranz
0fcdafe2aa add autotrim class to help with trimming (read the class documentation for
an explanation). There's no button/key using this by default (yet?).
2007-06-07 10:12:03 +00:00
mfranz
71fa47d99d drop clumsy handling of temporary file data branch, and use the "savexml"
fgcommand's temporary <data> argument branch instead
2007-06-06 21:40:47 +00:00