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
sydadams
e828ba548f
Moved ATC "aircraft" dialogs out of gui/dialogs
2007-06-06 02:56:31 +00:00
mfranz
1fd9e31243
- increased coarse multiplicator
...
- cosmetics
2007-06-05 18:20:53 +00:00
mfranz
c050b436fa
livery handling: add sort option and next()/previous() methods
2007-06-05 14:21:12 +00:00
mfranz
72668e2931
livery selection dialog -- see aircraft.nas -> livery
2007-06-04 13:46:24 +00:00
mfranz
95caf1a918
add livery singleton class that maintains livery XML files.
...
TODO: allow explicit sorting (currently only alphabetic) and add next()
and previous() methods
2007-06-04 13:45:23 +00:00
mfranz
6cb769ebf7
in addition to aircraft dialogs from arbitrary paths also allow gui.Dialog
...
to handle regular dialogs from $FG_ROOT/gui/dialogs/.
Example: var fps = gui.Dialog.new("fps"); fps.open(); fps.close();
2007-06-04 12:42:29 +00:00
mfranz
fef7057bfc
flyby: don't choke on <view>s without <name>, even though these are bugs
2007-06-03 20:54:31 +00:00
sydadams
63bfa05977
changed these to draggable until I figure out why they dont scale with window resolution
2007-06-03 16:22:30 +00:00
sydadams
8cfd32dd2d
Added dialogs for the ' aircraft' ATC...
2007-06-03 06:26:37 +00:00
mfranz
9a37371eaa
document geo.put_model()
2007-05-31 20:19:26 +00:00
mfranz
c70c38ab62
impact reports go to /ai/models/model-impact if <impact-reports> isn't
...
defined for a submodel
2007-05-31 18:01:57 +00:00
mfranz
6a3c0d772c
Maik JUSTUS: fix typo (ROTORRELTARGET)
2007-05-31 16:59:43 +00:00
mfranz
b7ec28dcfa
Harald JOHNSEN: add name "Saitek X52 Flight Controller"
2007-05-31 15:45:26 +00:00
mfranz
378540bcf3
- fix Nasal error: "props.setDoubleValue() with non-number"
...
- use var keyword everywhere, cosmetics
2007-05-31 14:31:08 +00:00
curt
c6b7709cba
Don't set the volume louder than is allowed by OpenAL.
2007-05-29 15:28:36 +00:00
frohlich
e1e6ca65c7
Modified Files:
...
Translations/strings-default.xml options.xml:
Olaf Flebbe: Improoved texture filtering.
2007-05-28 05:09:55 +00:00