ThorstenB
7299d07dab
New option to display frame latency.
...
Better property to evaluate simulation performance than frame rate.
2011-03-28 00:24:32 +02:00
ThorstenB
c26de5ce41
Only run target-tracker-timer when feature is enabled.
2011-03-27 21:02:26 +02:00
ThorstenB
afaaf62e18
Fixed some file modes (not executable).
2011-03-27 21:01:43 +02:00
Frederic Bouvier
65c166c12c
Local Weather 1.0 by Thorsten Renk
2011-03-19 14:03:28 +01:00
Torsten Dreyer
3d3fa8131e
Fix rendering bug: no precipitation
...
Synchronize /sim/rendering/precipitation-enable to
/sim/rendering/precipitation-gui-enable and
/sim/rendering/precipitation-aircraft-enable on startup
2011-03-14 20:51:56 +01:00
Csaba Halasz
2753432b92
Added tyresmoke_system class to aircraft.nas
2011-02-15 15:55:57 +01:00
Torsten Dreyer
5da86c6471
Remove code now performed in TankProperties
2011-02-14 23:13:12 +01:00
Gijs de Rooy
5c4bdb4a1f
Revert adb57b8: screenshot directory dialog
2011-01-22 22:49:25 +01:00
Torsten Dreyer
2cf9732978
Add ctrl-z to the help dialog (reset visibility)
2011-01-19 20:02:53 +01:00
Torsten Dreyer
b43b53c977
Fix bug #253 , at least partially
...
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
Corresponds to commit e86cecf4704a4bdcf43114245d8ac94adb1f1eef
in fg/next
2011-01-19 19:42:40 +01:00
Curtis L. Olson
fa26992660
Merge branch 'master' of gitorious.org:fg/fgdata
2011-01-19 10:27:22 -06:00
Curtis L. Olson
1f4371245b
Address Melchior's concern about view prediction depending on a particular
...
aircraft system, rather than "core" data.
Fix a long standing annoyance (for me anyway) when the fly-by-view is first
instantiated, it never put a point forward very far so the first transtion
came very quickly and abruptly. Improve the forward prediction based on
ground speed and time when the view is reset (or switched to.) I like this
a lot better personally.
2011-01-18 11:47:15 -06:00
Torsten Dreyer
cdb21a52e4
GlobalWeather: (better) support for weather-scenario
...
- handle /environment/weather-scenario property on startup
- try to detect predefined scenario on startup of global
weather dialog box and select the corresponding entry in
the scenario combo box.
2011-01-17 21:05:01 +01:00
Gijs de Rooy
692d9c3717
Add screenshot dialog, to select directory
2011-01-15 22:48:43 +01:00
Curtis L. Olson
d9d6d1ed12
Add a variant of the tanker request function that produces a tanker with
...
a more random (challenging to intercept) starting point and heading.
2011-01-13 16:36:57 -06:00
Frederic Bouvier
3ff6a53bf1
Local weather 0.92 by Thorsten Renk
2011-01-05 13:36:10 +01:00
Stuart Buchanan
467b4eef16
Add function to allow the binding of a menu item to be configured
...
through Nasal using a symbolic name.
Usage:
gui.menuBind("radio", "dialogs.Radio.open()");
2011-01-03 17:28:40 +00:00
Torsten Dreyer
819d7ab811
controls.startEngine: allow selection of engine(s)
2011-01-01 10:35:15 +01:00
Curtis L. Olson
8ed16a4de2
Project "fly-by" vantage point ahead based on ground track direction instead
...
of aircraft body heading. This works better when there is significant
cross wind or side slipping.
2010-12-31 15:31:04 -06:00
Anders Gidenstam
1181987bca
Nasal/IOrules: Allow the wildfire simulation to save its state.
2010-12-30 15:00:50 +01:00
Stuart Buchanan
16b7ffba05
Consistent Close and title bars for Fuel & Payload, Wildfire and Route Manager dialogs.
2010-12-28 19:51:34 +00:00
ThorstenB
adbf344559
MP pilot list: fixed window behaviour and "--fg-aircraft" support.
...
Use new "model-installed" property instead of searching directories
directly - which didn't work with new "--fg-aircraft" dirs.
Also, pilot list now keeps its position. Avoid jumping to top-right
corner when updating.
2010-11-13 17:38:37 +01:00
Torsten Dreyer
b4e885e7fd
Obsolete startup.nas
...
logic from startup.nas is now handled during the initialization
sequence of the idle-loop.
2010-11-10 22:24:51 +01:00
Anders Gidenstam
d373245285
Nasal/controls.nas: Added per-engine axis handlers.
2010-10-30 13:26:55 +02:00
James Turner
c7560f61b4
Switch over to v2 HUD by default, v1 HUD is no longer used.
2010-10-29 00:56:42 +01:00
Frederic Bouvier
758f691a1c
Local Weather version 0.9 by Thorsten Renk
2010-10-26 21:42:36 +02:00
James Turner
0425ec0589
Torsten Brehm: catch NaNs in pilot list gui, and report only once per call-sign.
2010-10-16 17:31:19 +01:00
Torsten Dreyer
e7e8ac84f2
don't use printlog before nasal-dir-initialized
...
Thanks, Anders.
2010-10-13 20:46:31 +02:00
Torsten Dreyer
c6b2df2a6c
use printlog for "init contrail" and downgrade to debug
2010-10-11 21:29:01 +02:00
Torsten Dreyer
6ba8808039
Use printlog for "*** NEW LOCATION ***" and downgrade to info
2010-10-11 21:23:57 +02:00
Anders Gidenstam
66746acbab
Updated mp_broadcast.nas: Added missing var keywords.
2010-10-09 21:17:10 +02:00
Torsten Dreyer
0fcc99d9a3
startup.nas: just check for a valid METAR
...
and don't care if it's from realwx or static input. There is still
a timing issue, probably we should wait for a valid METAR
if realwx is enabled.
2010-10-07 17:59:38 +02:00
Anders Gidenstam
ee5eceb3da
Updated mp_broadcast.nas: Added missing var keyword.
2010-10-03 19:25:36 +02:00
Torsten Dreyer
351114b999
Fix line endings
2010-09-28 08:58:02 +02:00
Stuart Buchanan
7ee83e19df
Modify chat key handler, so excessive backspaces doesn't enable the autopilot.
2010-09-27 21:13:30 +01:00
Torsten Dreyer
5edf6cae9b
reflect recent weather changes in startup.nas
2010-09-26 17:07:24 +02:00
Frederic Bouvier
a0803ad074
Local Weather v0.85 by Thorsten Renk
2010-09-10 08:52:21 +02:00
Anders Gidenstam
c3617a9cd6
Updated Wildfire:
...
- Removed the reference to null.ac in wildfire.xml.
- Rearranged the animation order in the 3d model xml files.
- Fixed materials in the AC3D files.
- Separated 3d model handling from the cellular automaton.
2010-09-04 00:39:51 +02:00
BARANGER Emmanuel
6837a30398
- a small script of Melchior that can be improved (Start from a seaport with a seaplane).
2010-09-02 12:10:29 +02:00
Vivian Meazza
311e44c78c
Merge branch 'master' of \New Git\fgdata
2010-08-29 21:29:37 +01:00
Vivian Meazza
7b1387d521
Add impacts
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-29 20:45:03 +01:00
James Turner
8fd716f2ca
Extend IORules system to permit aircraft dirs.
2010-08-16 11:08:24 +01:00
James Turner
83c9e8b157
Change Nasal to use relative not absolute data paths
...
(requires current FG git)
2010-08-15 11:27:15 +01:00
Vivian Meazza
be53f07e7a
Add script to calculate contrail temperature based on an approximation to the "Appleman Chart"
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-04 23:22:38 +01:00
Frederic Bouvier
1e9a6c4cdf
Change edge_bias asked by Thorsten ( http://www.flightgear.org/forums/viewtopic.php?f=5&t=7358&p=89159#p89204 )
2010-08-03 19:20:20 +02:00
Frederic Bouvier
4dd0ef9a08
Local weather v0.81 by Thorsten Renk
2010-08-03 08:18:14 +02:00
Anders Gidenstam
229ee23103
Limit the rate a participant can send wildfire ignite events at.
2010-07-09 15:05:51 +02:00
Anders Gidenstam
4711f719ce
Make the mp_broadcast BroadcastChannel honour the ignore list.
2010-07-09 13:39:44 +02:00
Vivian Meazza
74df9856d7
Update
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-07-05 13:25:53 +01:00
Stuart Buchanan
bb9e21f6e6
Revert "Initial check-in of MP groups function"
...
This reverts commit e9113980449fe50eb186a3b2e26bc88dc613d841.
2010-06-27 23:23:56 +01:00
Stuart Buchanan
d593c6a80a
Merge branch 'master' of gitorious.org:fg/fgdata
2010-06-18 21:14:42 +01:00
Stuart Buchanan
fee08cca57
Initial check-in of MP groups function
2010-06-18 21:13:47 +01:00
Frederic Bouvier
652070f265
Thorsten Renk: local weather 0.7
2010-06-15 20:54:44 +02:00
Vivian Meazza
4489d48e67
Merge branch 'master' of gitorious.org:fg/fgdata into Work
2010-06-04 23:24:41 +01:00
Vivian Meazza
8a4d78a7bb
Remove unwanted files
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-06-04 23:05:27 +01:00
Frederic Bouvier
eb47297d94
Thorsten Renk: local weather 0.61
2010-06-04 23:05:32 +02:00
Vivian Meazza
2c7075a9b0
Minor updates
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-06-04 11:14:33 +01:00
Stuart Buchanan
b53c16db1d
Update pilot list to use ignore property for AI objects
2010-05-21 22:09:38 +01:00
vmmeazza
a7ac90bac7
Bugfix
2010-04-25 21:05:30 +00:00
vmmeazza
9bd6191854
Add layered clouds
2010-04-12 20:51:46 +00:00
torsten
31df14b691
Initial import of the balloon scenario from gooneybird
2010-04-07 14:15:24 +00:00
vmmeazza
391b46612b
Update by Anders Gidenstein - an improved version of the buffer
2010-02-13 09:40:53 +00:00
vmmeazza
50adc28ff7
Update by Anders Gidenstein to prevent scripts producing the error:
...
"WARNING: PUI: Too many live puInterfaces open at once!"
due to multiple window/dialog updates during the same frame.
This error has been reported to cause FG to crash, but this cannot be
reliably reproduced.
2010-02-12 23:35:22 +00:00
torsten
a18db246f0
Disable the autopilot menu item if any of
...
KAP140
CENTURYIIB
CENTURYIII
autopilot is detected or the property
/autopilot/hide-menu
is present
2010-01-04 14:06:30 +00:00
ehofman
9c9ead857b
match sound code changes
2009-11-30 12:02:55 +00:00
torsten
e9bb24b8a2
Add the autovisibility functionality for the menubar.
...
If /sim/menubar/autovisibility/enabled is true, show the menubar when the mouse hits the upper edge of the window and hide the menubar on click outside a pui element.
2009-11-16 20:40:15 +00:00
vmmeazza
5cb130c313
Change tyresmoke parameter - by Heiko Schultz
2009-10-22 20:20:30 +00:00
sydadams
91c90c0679
added the view zoom popup to the enable property. Might
...
need it's own menu entry
2009-10-15 05:21:54 +00:00
torsten
823636811f
Anders Gidenstam:
...
Here is a new diff for the MP-chat ignore feature since multiplayer.nas
has been updated
2009-10-11 18:40:55 +00:00
torsten
862730999e
Anders Gidenstam:
...
I suspect that work around for the /ai/models/model-added listener problem
(i.e. that the listener is called in the middle of the process of
adding/removing a MP entry) isn't the right way to solve the problem.
The attached patch instead defer processing of the added/removed
MP entries in the multiplayer Nasal module until the next time the Nasal
subsystem is executed. This should prevent the problematic execution of
the Nasal listener callback in the middle of C++ MP code.
2009-10-11 11:57:58 +00:00
sydadams
a48eb09c7d
Updated the view popup , and restored the original indentation
2009-10-09 00:21:32 +00:00
sydadams
4dbe45348c
added a /sim/view-name-popup bool to enable / disable the viewname popup ... enabled by default
2009-10-08 02:21:18 +00:00
torsten
24204e2e75
don't ignore the latest multiplayer pilot
2009-09-05 20:22:14 +00:00
ehofman
bc05b9e26e
allow writing to the temp directory (for unix at least)
2009-06-17 15:38:29 +00:00
mfranz
bbf1004629
Anders GIDENSTAM: Fix send to self
2009-06-03 17:19:17 +00:00
mfranz
a13361766b
initialize view manager at nasal-dir-initialized sig (was: fdm-initialized)
2009-05-27 16:24:17 +00:00
mfranz
51ca35061d
add documentation about geo.elevation()'s optional arg
2009-05-19 20:02:43 +00:00
mfranz
e3743f2ae7
prop_key_handler: improve search function; update comments
2009-05-06 20:37:40 +00:00
mfranz
3a6315031e
door.setpos(): stop movement before setting absolute value
...
timer: stop and save/restore on reset
2009-05-06 18:49:06 +00:00
mfranz
b71c0c580e
add signum function sgn(); consistent use of braces
2009-05-05 18:34:53 +00:00
mfranz
233a9d27f4
- defined(): also consider the global namespace (as the comment implies)
...
- move local namespace container up
2009-05-05 18:33:43 +00:00
torsten
28018bd083
get rid of pushback.nas by instantiating the aircraft.door when opening the dialog.
2009-05-05 14:17:36 +00:00
abory
6a66414638
- Now the pushback "door" will be created only if /sim/model/pushback has
...
already been created by the modeler via the <aircraft>-set.xml file.
- Varified the code, removed the class structure, tests the nasal dir
initialization first.
- As part of the Nasal dir, the script must *not* be declared in the
<aircraft>-set.xml file.
2009-05-04 21:40:08 +00:00
abory
2bb2de3645
- Oooops, sorry for that.
2009-05-04 11:12:52 +00:00
abory
f5601ebf3a
- Ooops, sorry for that.
2009-05-04 11:03:39 +00:00
abory
36bad881f0
- Gijs de Rooy: Generic pushback.
2009-05-04 10:58:27 +00:00
mfranz
35d506bce1
isnan: shorter & faster
2009-04-24 08:12:21 +00:00
vmmeazza
9a2e19c234
Anders - Bugfix
2009-04-13 21:41:52 +00:00
mfranz
894003a865
tanker: avoid cloud layers; drop identity.init
2009-03-30 20:12:57 +00:00
mfranz
834afe5aa7
make file reloadable at runtime; minor fixes; cleanup
2009-03-29 08:04:35 +00:00
mfranz
715fec092b
add callsign to warning message, cleanup
2009-03-25 17:53:40 +00:00
mfranz
d1df1132c6
add tangens function
2009-03-25 17:52:43 +00:00
mfranz
7ef387cc0a
fly refueling pattern (leg length 50 nm)
2009-03-25 17:47:56 +00:00
mfranz
ecd8c1b71f
make model-not-installed message a little less noisy
2009-03-23 21:24:41 +00:00
mfranz
53e733d425
new isnan() that doesn't create a NaN itself
2009-03-21 18:17:59 +00:00
mfranz
7ee14f044c
fix removal of data entries if channel is used elsewhere
2009-03-20 11:08:09 +00:00
mfranz
2d4d0c81cc
fix comment
2009-03-19 20:06:58 +00:00
mfranz
16baea26b4
- vary callsign and tacan channel; use free AI id
...
- make update loop faster
- fix reinit listener
2009-03-19 16:44:12 +00:00
mfranz
fc9b2dd2a5
- geo.elevation: make intersection vector origin's altitude configurable
...
to allow measuring terrain elevation under solid objects
- coding style unification
2009-03-18 18:26:30 +00:00
mfranz
020e495197
... but without debug message. :-)
2009-03-18 13:46:57 +00:00
mfranz
080432cd17
- use new aircraft.nas functions: kias_to_ktas(), wind_speed_from()
...
- export radar values: bearing-deg, elevation-deg, range-nm
2009-03-18 13:46:07 +00:00
mfranz
dafeb03bf1
add simple wind_speed_from() function, and Jean PELLOTIER's not-so-simple
...
kias_to_ktas() function
2009-03-18 13:13:15 +00:00
mfranz
bd1c719d6f
make tanker appear on the radar
2009-03-17 22:07:43 +00:00
mfranz
abb13ca903
- make sure /systems/refuel/ exists
...
- cleanup
2009-03-15 20:19:17 +00:00
mfranz
dc7e8577d4
- put tanker nearer
...
- allow multiple instances
2009-03-15 19:57:13 +00:00
mfranz
5c41d1a99b
allow aar-equipped aircraft to request a tanker everywhere without scenario
2009-03-15 16:13:55 +00:00
mfranz
5237feb527
window.write: turn plain numbers into strings
2009-03-15 15:23:00 +00:00
mfranz
d6e96199eb
use controls.startEngine(0) for starter release (easier to override)
2009-03-14 20:56:06 +00:00
mfranz
2618b98b88
model: simplification using the new values() function
2009-02-16 23:35:54 +00:00
mfranz
1bf00fbc92
generally allow *.log files under /home/m/.fgfs
2009-02-16 15:48:02 +00:00
mfranz
315d48910a
message log: don't show seconds; new header/footer; minor improvements
2009-02-16 15:38:47 +00:00
mfranz
6a6861a5ff
mp log: use real time
2009-02-15 22:52:22 +00:00
mfranz
cf88f5e8a4
remove is{dir,reg,lnk,sock,fifo,blk,chr}. The vector returned by io.stat()
...
does now contain the type in element 11.
2009-02-15 21:08:55 +00:00
mfranz
fed30b2f05
io.nas: add deprecation warning to io.is{dir,fifo,lnk,...}
2009-02-15 18:26:20 +00:00
mfranz
9b8f29fdfe
use local hash (again) to store last messages per callsign
2009-02-15 17:50:13 +00:00
mfranz
b465bd27a8
--prop:sim/multiplay/write-message-log=1 enables logging of MP messages
...
to $FG_HOME/mp-messages.log
2009-02-15 17:36:47 +00:00
mfranz
efaa3d545d
- simplification (multiplayer.model does a lot of the checks already)
...
- write to /sim/messages/mp-plane (rather than ai-plane)
- screen.nas: better color?
2009-02-15 15:48:38 +00:00
mfranz
c77af3c4b6
map /sim/messages/mp-plane to screen/voice
2009-02-15 15:10:47 +00:00
mfranz
8f5304ad90
add values() function as a counterpiece to keys() (see Perl)
2009-02-15 14:13:49 +00:00
stuart
dfc22cf009
Use initNode for safe, effective relief from code bloat.
2009-02-12 21:14:54 +00:00
stuart
72cc845a63
Remove redundant (and ugly) set1 function
2009-02-12 20:32:04 +00:00
stuart
a0a493b8ce
Failure manager. Based on work by Erobo and John DENKER.
2009-02-12 20:24:06 +00:00
mfranz
824cff9192
comment out isnan()
...
It conflicts with Jester's debugging setup, and Andy says there should be
no NaN in the first place. This is a bug that needs to get fixed. Just
enable isnan() if you want to detect NaNs in the meantime. (The MP system
creates them ATM. The property getters shall turn them into nil.)
2009-02-12 16:59:03 +00:00
mfranz
a9afecf74b
debug.error: rename to warn, reduce default caller skip, documentation
2009-02-09 14:29:43 +00:00
mfranz
747d9dcbde
debug mode: fix slice
2009-02-09 00:24:23 +00:00
mfranz
6495f062d3
var++
2009-02-08 21:58:31 +00:00
mfranz
4757d49c0c
debug mode: add hint for why the write operation probably failed
2009-02-08 21:16:28 +00:00
mfranz
04511dbc8d
--prop:debug=1 enables a debug mode where some functions generate warnings.
...
setprop(), props.Node.set{,Int,Bool,Double}Value() complain if they couldn't
write, e.g. because the target property is write protected, or doesn't have
a tied setter function.
2009-02-08 20:46:55 +00:00
mfranz
a1c1018aa2
Anders GIDENSTAM: adapt for unified tank level property (and do it right :-)
2009-02-06 23:14:49 +00:00
sydadams
22b9c908a9
Update jsb aircraft to use the changed tank/level-lbs property
2009-02-06 22:56:00 +00:00
mfranz
1d783e03bb
remove debug.exit(); add debug.isnan()
...
- exit was only justified at times where fgcommand() needed an explicit
node statement, which made using it a bit clumsy. Nowadays that's only
fgcommand("exit"), which is as good as debug.exit() was.
- isnan() is really only for debugging and, thus, not in the global
namespace. Nasal code should never generate NaNs (though it's easy:
var nan = 1/0; There! :-), and NaNs imported from the C++ side (tied
properties!) should get fixed there. IOW: routine checks for nan in
Nasal can only be temporary hacks/debugging measures.
2009-02-06 14:41:13 +00:00
mfranz
1d50d3c086
dialog: show unavailable entries orange; cleanup
2009-02-06 12:03:31 +00:00
mfranz
540b9368fe
multiplayer.model: more containers, more data, variable renaming,
...
temporarily catching error exceptions, colored missing-ac message ...
2009-02-04 21:47:19 +00:00
mfranz
158c7ea800
- check for availability of MP models (add 'available' member)
...
- display "??? foo" if "foo" isn't available on the system
- make sure x/y/z are never nil (I think I had such a case)
2009-02-03 16:15:37 +00:00
mfranz
7985e6e984
model_view: add some orientation parameters
2009-02-01 21:59:41 +00:00
mfranz
afe8de52ab
- faster sorting
...
- update loop fix
2009-02-01 01:58:15 +00:00
mfranz
a644007c67
disabling the dialog in screenshots is nice in theory, but doesn't really work
2009-01-31 22:01:42 +00:00
mfranz
9fdec57110
dialog: don't start multiple loops
2009-01-31 21:53:54 +00:00
mfranz
ab1e00a81e
- re-open after gui-reinit
...
- only update once per sec
- cosmetics
2009-01-31 21:22:18 +00:00
mfranz
3cf6667328
gahh ... s/setlistener/_setlistener/
2009-01-31 20:29:20 +00:00
mfranz
8bb50c1871
model_view_handler: use multiplayer.model + add selection popup
2009-01-31 19:30:31 +00:00
mfranz
65e4b71406
factor the MP aircraft monitoring code out of the dialog class and let
...
the dialog use it. Other services need the same functionality and it
should only be done once.
2009-01-31 17:15:48 +00:00
mfranz
82d4864c24
model_view: remove stale/invalid entries
2009-01-31 10:24:08 +00:00
mfranz
9927e31504
- use "var" keywords everywhere
...
- bail out if there's no autopilot at all
2009-01-30 21:24:59 +00:00
mfranz
e31acedcfa
model_view: make it more reliable
2009-01-30 15:22:17 +00:00
mfranz
db1fcf2949
model_view: remove experimental mouse handling; cleanup
2009-01-30 12:05:29 +00:00
mfranz
cf69b0d01b
model_view: ignore AI models for now (make that configurable?)
2009-01-30 00:16:14 +00:00
mfranz
6aa74d2e7a
add model-view: switch through all AI/MP models via dialog in bottom/left corner
2009-01-29 23:57:57 +00:00
mfranz
c697394b1c
strip \n from own chat messages (again :-)
2009-01-27 20:12:19 +00:00
mfranz
9957c0a6e1
add eXtended isstring: isxstring(), which also applies to \n
2009-01-27 19:27:21 +00:00
mfranz
fedd64d89a
optimization & cleanup & var keyword:
...
- use find() instead of string.match() (way faster!)
- add a missing var keyword
- don't store old messages in a hash, but only store the respective last
message in the model's multiplayer branch
- keep history \n-trimmed (instead of removing \n only when concatenating)
2009-01-27 16:55:46 +00:00
mfranz
14a928f391
trim: allow to specify alternative trim class function
2009-01-27 01:42:46 +00:00
mfranz
9d4d61e2e8
don't close the dialog on Esc (Jester was right: that's annoying :-)
2009-01-25 15:18:51 +00:00
mfranz
2541ad8e30
All elements of a --prop:display expression containing a percent sign are
...
interpreted as number format. (They couldn't be valid property paths anyway.)
If there's more than one such element, then the last one counts.
--prop:display=%.2g,velocities/airspeed-kt,position/altitude-ft
2009-01-25 00:27:12 +00:00
mfranz
8d62bc2b0f
Anders GIDENSTAM: center dialog and print report only when there was a fire
2009-01-18 16:15:02 +00:00
mfranz
1fe5ace8b5
Anders GIDENSTAM: wildfire (read $FG_ROOT/Models/Effects/Wildfire/README)
2009-01-18 15:43:08 +00:00
mfranz
e8484502da
s/set_lonlat/set_latlon/
2009-01-15 00:39:51 +00:00
mfranz
64a22469ab
s/hdg/brg/
2009-01-12 21:50:43 +00:00
mfranz
c31ab0ea96
showHelpDialog(): leave some margin for resizing
2009-01-12 12:27:41 +00:00
mfranz
1fc7581f77
add symbols for new cursors
2009-01-11 15:04:55 +00:00
mfranz
e96322b351
OverlaySelector: don't choke if there are no options
2009-01-11 02:42:33 +00:00
mfranz
198d1cb60f
make dialog resizable with Ctrl-dragging
2009-01-10 22:31:30 +00:00
curt
278b0a7262
This should never really have been in the central nasal area.
2009-01-03 01:23:47 +00:00
mfranz
aff4cacf70
... and allow to specify several paths separated with comma. Of course,
...
multiple usage of --prop:display[*]=... is also supported.
2008-12-23 10:15:12 +00:00
mfranz
087494abf5
add some documentation about the property display
2008-12-23 10:03:26 +00:00
mfranz
bab238d58b
string(): make zero padding work if arg is 0
2008-12-22 01:50:48 +00:00
mfranz
58897fb5f4
revert init signal change -- better fix the real problem
2008-12-19 20:52:22 +00:00
mfranz
305cac01f3
use a more reliable property to detect real-weather-fetch
2008-12-19 13:50:44 +00:00
mfranz
8fc95fdde1
- add geo.viewer_position()
...
- make geo.{aircraft,click}_position() a bit faster
- no longer import the math functions (wasn't worth it)
2008-12-19 13:41:25 +00:00
mfranz
2d37f6c60b
- remove menu greying out (there's no such entry any more)
...
- start dynamic view at fdm-initialized to avoid nasal errors (math.cos)
2008-12-18 13:05:56 +00:00
mfranz
5df46f3e5c
- add controls.wingsDown() wrapper
...
- carrier-bindings.xml: remove trailing spaces & add some blanks
2008-12-17 18:42:41 +00:00
mfranz
06cb820759
add KT2MPS/MPS2KT conversion constants
2008-12-17 01:03:32 +00:00
mfranz
821c3bd31c
rain: read some properties only if they are actually needed
2008-12-15 16:16:08 +00:00
mfranz
cb76be5383
rain: add units to the output properties and explain them
2008-12-15 08:01:33 +00:00
mfranz
d8131d6944
only turn osg precipitation off for internal views
2008-12-15 00:18:26 +00:00
mfranz
e8a666c8e4
globals: cosmetics
...
props: initNode(): allow nil as first arg
2008-12-14 23:45:33 +00:00
mfranz
2abb0516b5
Vivian MEAZZA: support for handling rain flow on canopies
...
/me: some modifications + cosmetics in the light class
2008-12-14 23:43:46 +00:00
mfranz
2be64792e1
add NM2M and M2NM constants
2008-12-13 12:55:47 +00:00
mfranz
117dac8b4f
removelistener() must not remove path validation listeners
2008-12-12 14:57:38 +00:00
mfranz
e5656fedc9
store 30 history entries by default (settable via property
...
/sim/gui/prop-key-handler/history-max-size)
2008-12-09 00:20:29 +00:00
mfranz
59ff8c6129
also search value
2008-12-08 14:03:18 +00:00
mfranz
db4c98d63e
add constants GAL2L and LB2KG
2008-12-07 14:44:52 +00:00
mfranz
291ba987d3
fuel dialog: add tank checkbox only if the "selected" property is actually
...
writable. This omits the box: <selected type="bool" write="n">1</selected>
2008-12-04 11:34:05 +00:00
mfranz
71f80dff34
initNode: add fourth optional parameter: "force", which enforces a type,
...
so n.initNode("whatever", 1 "BOOL", 1); will make node n a BOOL even
if it was "DOUBLE" before. Default: 0. An existing value will be retained,
though.
2008-12-04 11:30:44 +00:00
mfranz
8bf823c4fb
initNode: make path optional and let it default to "". This is allowed:
...
props.globals.getNode("sim/foo", 1).initNode(); and equivalent to
props.globals.getNode("sim").initNode("foo");
2008-12-03 20:53:00 +00:00
mfranz
5c88cdf6f1
dump: no space after [ and before ]
2008-12-03 20:49:33 +00:00
mfranz
bcc043a368
security wrappers: move original func var into wrapper closure
2008-11-26 16:17:55 +00:00
mfranz
1e5cf9ff0a
more use of initNode & some consistency improvements (method format)
2008-11-26 16:09:16 +00:00
mfranz
f7e246905b
tree(): show which nodes are aliased to which nodes
2008-11-26 16:07:32 +00:00
mfranz
acff4f55ab
add getAliasTarget() wrapper
2008-11-26 11:35:48 +00:00
mfranz
8b62c82b38
fix another forgotten geo.FT2M -> globals.FT2M
2008-11-23 22:22:49 +00:00
mfranz
521954116c
only enable precipitation if it's enabled in the gui
...
(/sim/rendering/precipitation-gui-enabled) *and* if the aircraft wants it
(/sim/rendering/precipitation-aircraft-enabled). Some aircraft model rain
on the windshield and want to turn rain off for interior views.
2008-11-23 09:53:46 +00:00
mfranz
31162ce78b
more initNode() (Alzheimer?)
2008-11-22 21:02:04 +00:00
mfranz
75470bf31d
Rename Node.clear() to Node.clearValue(), because that's the name that we
...
use on the C++ side.
2008-11-22 12:05:01 +00:00
mfranz
b3032f63c7
Add Node.clear() method, which resets a node to type "NONE" and value 'nil'.
...
This can be used to invalidate nodes and may be interesting for debugging
purposes. Use carefully!
2008-11-22 11:20:44 +00:00
mfranz
2b77665c22
setCursor: complain and show options if wrong cursor name was given
2008-11-20 23:03:24 +00:00
mfranz
8d7545252f
convert more initNode to the method version (sorry, had forgotten these)
2008-11-20 22:06:54 +00:00
mfranz
f263e693f2
remove deprecated (wrapper) function props.initNode()
2008-11-20 20:41:19 +00:00
mfranz
55b7e3d8e0
dynamic_view.nas: use D2R/R2D constants
...
globals.nas: move constants to top
geo.nas: fix comments & make bucket_span "private"
2008-11-20 20:18:39 +00:00
mfranz
c74d6ee75e
- make props.initNode a props.Node method
...
- props.nas: some minor improvements
2008-11-20 19:45:40 +00:00
mfranz
55c34a0748
calculate M2FT from FT2M (of course :-)
2008-11-20 11:33:42 +00:00
mfranz
eebfdf218c
- make constants D2R, R2D, M2FT, FT2M global
...
- geo.put_model: use 'add-model' fgcommand
2008-11-20 11:24:46 +00:00
mfranz
dcb1321923
make constants D2R, R2D, M2FT, FT2M global
2008-11-20 11:24:45 +00:00
mfranz
9976b71472
init: make sure /sim/tutorials actually exists
2008-11-15 19:40:28 +00:00
mfranz
81e967a609
nasal now returns constant and readable ghosttypes, so we do no longer
...
need the symbol table and comparison with the ghosttype of props._globals()
2008-11-13 12:00:23 +00:00
mfranz
c6cd898f64
- update comment to reflect alias()/unalias() addition
...
- minor improvements & cosmetics
2008-11-13 11:57:07 +00:00
mfranz
2aba6e7d80
Node: only wrap() functions that actually return property ghosts
2008-11-12 17:06:53 +00:00
mfranz
547770e30b
add alias()/unalias() wrapper methods
2008-11-12 14:43:41 +00:00
mfranz
78d1a6e631
OverlaySelector: check callback function explicitly for nil
2008-11-12 11:43:26 +00:00
mfranz
d1fd61c728
gui.nas: use nasal-dir-initialized signal for INIT func, so that it's
...
earlier available. (The settimer/1 was a workaround for another
problem that should be fixed by now.)
globals.nas: load $FG_HOME/Nasal/ files as first settimer(0) function,
so that it always comes after all nasal-dir-initialized callbacks
This should fix the glide_slope_tunnel/popupTip bug and makes the
startup order clearer and cleaner.
2008-11-11 14:54:51 +00:00
mfranz
05cc0f3fda
add complementary function to bits.string(): bits.value() This is rather
...
pointless for running fgfs, but can be useful for development and debugging,
and it's just a few lines.
2008-10-25 15:03:32 +00:00
mfranz
6384588444
I said "correctly".
2008-10-25 14:24:26 +00:00
mfranz
f7bd13fed3
debug.dump(): print empty strings as hash key correctly
2008-10-25 14:20:47 +00:00
mfranz
6371627424
bits.string: add optional zero-padding
2008-10-23 22:16:32 +00:00
mfranz
97c1ec0ac7
set: bugfix (invert test; still faster than the old version :-)
2008-10-22 23:27:03 +00:00
mfranz
f5ab1de0b6
set/clear: shorter & a few nanoseconds faster
2008-10-22 23:04:07 +00:00
mfranz
464d9d3f75
add bits.toggle() and bits.switch()
2008-10-22 20:56:22 +00:00
mfranz
80215e0731
"export" bit vector & cleanup
2008-10-22 14:02:58 +00:00
mfranz
6003c3a17d
bits.test: remove silly loop
2008-10-22 13:26:55 +00:00
mfranz
6d5585ec65
restore simple bits functions. Useful for setting/testing boolean values
...
inr MP transport, and for setting/clearing modifier bits in js config files.
2008-10-22 12:49:01 +00:00
mfranz
2f76461c8c
io.nas/stat: drop use of broken bits library
...
gui.nas/OverlaySelector: me.data is no longer a node; only sort once
2008-10-21 21:37:41 +00:00
mfranz
0bd5bc58a7
livery: documentation fix
2008-10-19 21:12:57 +00:00
mfranz
c5fe446f58
overlay-select.xml, gui.nas: fix overlay-dialog close(); add relpath() func
...
aircraft.nas: remove redundant data.add()
2008-10-19 12:34:09 +00:00
mfranz
94211721cf
livery: fix bad default nameprop (must be relative)
2008-10-19 11:55:52 +00:00
mfranz
32bf0f7265
gui.nas: remove trailing slashes in nameprop/sortprop
...
aircraft.nas: add generic overlay_update function, and make livery_update
a wrapper for it
2008-10-19 11:52:56 +00:00
mfranz
da7d1ded71
aircraft.nas: make aircraft.livery a wrapper for gui.OverlaySelector
...
gui.nas: add file name to stored data (needed for MP-livery)
2008-10-16 15:26:19 +00:00
mfranz
a021ab0af0
- aircraft.nas: remove formation class (Deprecated only three hours ago.
...
Is this fast development, or what?! :-)
- gui.nas: remove debug message
2008-10-15 18:14:54 +00:00
mfranz
181dbba72c
OverlaySelector: more robust path handling
2008-10-15 16:48:24 +00:00
mfranz
c350a7b6a8
s/fixpath/normpath/ (as in python)
2008-10-15 16:35:11 +00:00
mfranz
8c7e7cb994
OverlaySelector: add callback func arg; only store the file paths
2008-10-15 16:13:10 +00:00
mfranz
5d576f0e3d
- gui.OverlaySelector: add optional sort criterion, add selection by index,
...
add next(), and previous() methods.
- aircraft.nas: deprecate formation class
2008-10-15 15:27:56 +00:00
mfranz
6a72126327
OverlaySelector: don't autosave choice. That's easy enough to do "by hand".
2008-10-14 18:48:54 +00:00
mfranz
4341781968
add overlay selector dialog class (similar to the livery selector)
2008-10-14 18:41:19 +00:00
mfranz
782368fefa
documentation update and cosmetics
2008-10-09 17:20:27 +00:00
mfranz
b1017ac425
Vivian MEAZZA: tyresmoke: add spray flag/intensity for wet surfaces
2008-10-08 22:57:50 +00:00
mfranz
996fd73c0c
- let F12 pop up radio settings dialog (used to be Ctrl-r)
...
- disable "reload global preferences", which is semi-broken
2008-10-08 21:59:31 +00:00
mfranz
ce0504cfd4
- move development functions from function keys to :Y (multikey)
...
- move replay from 'r' to 'Ctrl-r' where it is less dangerous
2008-10-07 20:13:34 +00:00
mfranz
3ba03ff2d7
AJ MacLEOD: add braking chute wrapper function
2008-10-07 19:22:49 +00:00
mfranz
363e210fda
- typeset longer option lists in multiple columns
...
- make it a tad faster
2008-10-07 10:44:45 +00:00
mfranz
fe8f9134ec
fun hack to get useful error message
2008-10-06 23:21:54 +00:00
mfranz
d9b5505a39
load_nasal(): hack around new Nasal bug
2008-10-06 21:21:13 +00:00
mfranz
77480233a6
ok, and now really fix it :-P
2008-10-06 20:22:28 +00:00
mfranz
459add7acb
d'oh ... s/setlistener/_setlistener/
2008-10-06 20:12:50 +00:00
mfranz
757b64a2c3
tyresmoke: s/getNode/getChild/
2008-10-05 23:35:02 +00:00
mfranz
c56653d203
tyresmoke: make it faster, cleaner, shorter
2008-10-05 23:16:15 +00:00
vmmeazza
f7339eeb22
Add generic tyre smoke - correctly this time
2008-10-05 22:56:44 +00:00
vmmeazza
16818db739
Add generic tyre smoke
2008-10-05 22:41:39 +00:00
mfranz
eab70dccda
improve dialog layout
2008-10-05 16:13:13 +00:00
mfranz
adc77f2777
replace all %%
2008-10-04 22:43:24 +00:00
mfranz
437dbf524d
aircraft.nas: light: remove backwards compatibility warning
...
multikey.nas: don't show %% in option display for %
string.nas: scanf: add -1 return mode; documentation
2008-10-03 20:46:08 +00:00
mfranz
e6e1f8ae20
- move color functions from debug.nas to string.nas
...
- multikey.nas: add exit/no-exit markers to help output
2008-10-03 15:20:12 +00:00
mfranz
597a7d2187
add teleport() function
2008-10-03 10:48:39 +00:00
mfranz
fbd73ee7d3
multikey.nas: don't show empty ("reserved") entries
...
string.nas: scanf: detect %% correctly
2008-10-03 09:47:40 +00:00
abory
8fcaaf4491
- Alexis Bory: As seen previously with Till, the nasty F-14 radar brakes multiplayer.dialog.show() unless we better test the "valid" node.
2008-10-02 20:12:00 +00:00
mfranz
e561c08c04
- gui.nas: make fuel&payload warning closable with Esc
...
- multikey.nas: minor clarification in the help output
2008-10-02 15:19:47 +00:00
mfranz
a334ed9e7b
add initial slightly greyed out help text about <Tab> options
2008-10-02 11:37:17 +00:00
mfranz
29f7d18865
repair :? help function ... sigh, should never have started with colorizing
2008-10-02 10:43:17 +00:00
mfranz
67c40af00c
use patthern tree, offer options on <TAB>
2008-10-02 00:59:52 +00:00
mfranz
3fbb11b27a
scanf: don't bark on empty test string if format ends with number element
2008-10-02 00:58:57 +00:00
mfranz
5fd89049bb
add field width to %s & coding style
2008-10-01 19:51:44 +00:00
tat
04d90bae5a
Added: %s support for scanf
2008-10-01 18:36:09 +00:00
mfranz
283dd67ca8
whoops
2008-10-01 16:39:26 +00:00
mfranz
32c5cde2f0
move improved help screen generator multikey.{xml -> nas}
2008-10-01 16:30:25 +00:00
mfranz
772112df89
use color codes only when printing to the terminal
2008-10-01 14:04:47 +00:00
mfranz
613e693656
Be a bit more careful with the kbd hack ... not that I noticed any problems.
...
(Proper fix probaly necessary in OSG. On my TODO list.)
2008-09-30 20:41:06 +00:00
mfranz
886cf8b382
also let adjEngControl return value (average of selected engines)
2008-09-30 20:33:18 +00:00
mfranz
b1a3428bd8
make slewProp(), and with it {aileron,elevator,rudder}Trim return new value
2008-09-30 18:11:46 +00:00
mfranz
f5babfe796
s/desc/_/ & cosmetics
2008-09-29 22:39:45 +00:00
mfranz
12412f0a56
does no longer work after the nasal update
2008-09-29 16:37:23 +00:00
mfranz
7274bfe94a
s/desc/_/ (binding return variable)
2008-09-29 14:16:50 +00:00
mfranz
1b9f9a2f98
hack around kbd bug for now (eew!)
2008-09-29 13:30:42 +00:00
mfranz
024842d9b9
indendation fix, drop a few braces (because we can :-)
2008-09-29 10:06:50 +00:00
mfranz
df90d69de9
string.scanf(): return elements in vector given as argument; function
...
only returns success (0: no match, 1: extensible match, 2: safe match)
2008-09-29 10:06:16 +00:00
mfranz
eb11977be2
implementation of vi-like multiple-key commands (as suggested by John DENKER)
2008-09-28 20:28:28 +00:00
mfranz
3197bc3f24
string.scanf(): more efficient and (more :) correct %f detection
2008-09-28 20:23:14 +00:00
mfranz
13a5e62995
scanf: '+' or '-' alone aren't really numbers
2008-09-28 16:20:49 +00:00
mfranz
2ea8466111
steering: vim typo
2008-09-26 22:53:57 +00:00
mfranz
d5605e2280
steering: fix after nasal update
2008-09-26 22:48:48 +00:00
mfranz
3f4df41fc7
add simple scanf function (a.k.a. poor man's regex)
2008-09-26 12:04:57 +00:00
mfranz
bb6b98b306
runBinding: support optional default namespace/module
2008-09-25 11:10:35 +00:00
mfranz
ba68b4f8eb
typo & consistency
2008-09-24 23:06:43 +00:00
mfranz
366792cf3d
add props.runBinding(<binding-node>) command
2008-09-24 20:03:06 +00:00
mfranz
e354f26a4d
add braces to work with Nasal TNG
2008-09-24 19:38:56 +00:00
mfranz
91ab7d4b97
- remove no longer neede complement_runways() function
...
- s/threshold1/threshold/
2008-09-23 20:08:15 +00:00
mfranz
c047efb41f
debug.proptrace: increase the default frame number to get one complete frame
2008-08-17 07:35:27 +00:00
mfranz
a289958717
improve help message
2008-08-16 15:37:54 +00:00
mfranz
917cace77c
string.nas: remove forgotten debug message
...
props.nas: replace some "arg[*]" by named args
aircraft.nas: load aircraft data only if the file exists (to avoid warning)
debug.nas: no space before colon & fixed comment & cosmetics
2008-08-14 22:13:25 +00:00
mfranz
4ac84809e9
nasal: cleanup & minor fixes
...
- fuel.nas: use props.initNode()
- debug.nas: fix comment
- globals.nas: load_nasal(): check extension and set module arg
- io.nas: update log message (the rules are no longer for io.open() only)
2008-08-10 17:53:41 +00:00
mfranz
51aae20072
screen.nas: evaluate --prop:display when fdm is up, or some props are missed
...
(you didn't take the "final version" seriously, anyway, did you?)
2008-08-05 12:35:01 +00:00
mfranz
f0463b345f
screen.nas: display option (final version)
...
- use --prop:display=fdm/jsbsim/fcs to display this node only
- use --prop:display=fdm/jsbsim/fcs/ to display this node's children
2008-08-05 12:20:27 +00:00
mfranz
2823009955
s/live/display/ ... makes more sense
2008-08-05 11:58:43 +00:00
mfranz
1f65d80475
allow to add properties to the live display with --prop:live=/some/property
2008-08-05 11:49:13 +00:00
mfranz
b360c2ad62
use <enabled>false</enabled> flag for widgets that shouldn't be drawn
...
instead of <hide>true</hide>. This is consistent with other places
in fgfs, like menu entries, hud elements, subsystem switches, etc.
2008-08-05 05:28:27 +00:00
mfranz
2040b96b4f
s/show_widgets/enable_widgets/ (the function doesn't show anything)
2008-08-03 15:37:43 +00:00
mfranz
463105bca5
add show_widgets() function
2008-08-03 13:41:07 +00:00
mfranz
49defb639e
- load_nasal(): catch usage of improper namespaces (e.g. $FG_HOME/Nasal/isa.nas)
...
- IOrules: add harmless rule for extremely popular Nasal addon script :-)
2008-07-30 20:34:52 +00:00
mfranz
443c261cdd
- drop redundant log message
...
- cosmetics: fix mixed tab/space indentation, drop pair of curly braces
2008-07-30 19:33:42 +00:00
mfranz
8202730c4e
use io.load_nasal() to load the local Nasal files from ~/.fgfs/Nasal/
2008-07-30 19:25:27 +00:00
mfranz
ad781922a7
here's a case where we want explicit namespace prefixes everywhere
...
(just renaming debug.string instead was plan B ;-)
2008-07-30 19:22:36 +00:00
mfranz
78ba60685c
some convenience functions for the built-in bits library
2008-07-29 17:17:09 +00:00
mfranz
00475e2d5c
- set "archive" flags on all /sim/presets/ children on saving flight, and
...
- run "presets-commit" after loading
2008-07-29 00:07:18 +00:00
mfranz
ae40faf4e5
cosmetics (comment fixes & improvements, variable name)
2008-07-27 22:00:58 +00:00
mfranz
dec94a9bb4
- fully complement runways (for external callers)
...
- show id/name of new airport
- use props.initNode()
- cleanup
2008-07-27 21:59:13 +00:00
mfranz
daee426f00
minor reorganization and cosmetics
2008-07-24 17:41:40 +00:00
mfranz
9148a4b2eb
cosmetics: white space fix & one "var" added
2008-07-23 19:37:51 +00:00
mfranz
de1aa4c56e
finally make printf() globally available
2008-07-23 15:43:45 +00:00
mfranz
93bc59c9a3
update comment
2008-07-23 15:42:43 +00:00
mfranz
f046c00c3d
make valdiation listeners safe
2008-07-23 15:42:16 +00:00
mfranz
fee6139da5
partly revert last change: thisfunc() isn't safe enough for this purpose
2008-07-23 00:41:18 +00:00
mfranz
7bbbfa6a8e
use thisfunc() instead of caller(0)[1]
2008-07-22 23:26:46 +00:00
mfranz
54e6ec55b4
closure(): better error formatting
2008-07-22 22:50:42 +00:00
mfranz
e522611638
closure(): level is optional and defaults to 0
2008-07-22 22:38:34 +00:00
mfranz
1ad5b18ec8
closure(): must freeze io.open for the comparison
2008-07-22 22:26:09 +00:00
mfranz
dc4b8633a3
new io.open()'s closure musn't get manipulated either
2008-07-22 21:30:47 +00:00
mfranz
3cfc93927f
make sure the closure of security code can't be manipulated by wrapping
...
closure()
2008-07-22 21:23:54 +00:00
mfranz
8b6ff24167
make sure functions used by the security code are tamper-proof
2008-07-22 21:22:59 +00:00
mfranz
b9e7bb1b4b
add thisfunc() for reliable recursion
2008-07-22 19:03:25 +00:00
mfranz
cb3150b915
(failing attempt to) lock down two functions
2008-07-22 16:46:18 +00:00
mfranz
30cd488f90
data.load(): use io.read_properties() (fixes *.sav loading bug)
2008-07-11 22:50:58 +00:00
mfranz
abdc416f32
- remove "load flight"/"save flight" dialogs, and
...
- use a file selector instead
- file-select.xml: handle non-existing files correctly
2008-07-11 20:57:52 +00:00
mfranz
c604b92deb
now that the file reading/writing fgcommands underlie the same mechanism
...
as Nasal's io.open(), we need to allow saving/loading flights and saving
aircraft specific data at exit
2008-07-11 16:38:51 +00:00
mfranz
32f1730c6e
- load_nasal: better error message if compile() fails
...
- io.open handler: extract validation to separate function and
- add detached read/write validation listeners
2008-07-11 15:37:27 +00:00
mfranz
86475efa5e
fixpath: handle empty strings
2008-07-11 15:23:23 +00:00
mfranz
3be5c6956b
io: use default attribs rather than a hard-coded number for globals identification
...
gui/tutorial/aircraft: use io.read_properties()/io.write_properties()
2008-07-11 09:37:33 +00:00
mfranz
ee44cdf0db
Anders GIDENSTAM: enable fuel&payload dialog for JSBSim
...
mf: minor modifications & adding several instances of "var"
2008-07-10 20:13:58 +00:00
mfranz
9be716de1c
typo
2008-07-10 16:55:45 +00:00
mfranz
8909695f36
add io.{read,write}_properties() convenience wrappers for
...
fgcommand("loadxml") and fgcommand("savexml")
2008-07-10 16:53:43 +00:00
mfranz
951f31a56c
change attribute names from read/write to readable/writable
2008-07-07 10:25:08 +00:00
mfranz
b8ba3c5f66
cosmetics (no braces for one-liner functions; looks nicer, IMHO)
2008-07-03 16:24:52 +00:00
mfranz
6e24e077ba
- invert io.load_nasal() return value
...
- let load_rules() return nil or the path (rather than 0 or 1)
- better log output
- cosmetics
2008-07-03 16:23:13 +00:00
mfranz
6f9f70e84d
- don't use undefined variable `curr'
...
- cosmetics
2008-06-22 18:00:02 +00:00
mfranz
caca942012
revert last change: don't append cwd to relative paths for now. There's
...
no way yet to safely detect absolute paths, so this would break on MS Windows.
This will only mean that relative paths will always fail, as they don't
match any pattern. These are all absolute.
2008-06-22 13:54:36 +00:00
mfranz
875b99c90e
whoops, wrong quotes
2008-06-22 12:17:02 +00:00
mfranz
cf9f30cb11
fixpath(): simplify by using new join() and replace() functions
2008-06-22 11:33:13 +00:00
mfranz
5240b57018
io.open(): turn relative paths into absolute ones before checking
2008-06-22 11:31:41 +00:00
mfranz
d86b1b9c74
string.nas: new functions string.join() and string.replace()
...
debug.nas: let benchmark() repeat tested function
io.nas: cosmetics
aircraft.nas: initialize time property only once
2008-06-21 07:10:32 +00:00
mfranz
ab08bfb8eb
make sure that a die() (e.g. caused by an IOrules file being read protected)
...
doesn't disable the whole security mechanism
2008-06-16 11:19:29 +00:00
mfranz
94e010e4d1
whoops ... s/and/or/
2008-06-16 11:00:05 +00:00
mfranz
bf9c2dc6a5
read rules for io.open() file access from $FG_ROOT/Nasal/IOrules or, if
...
available, from $FG_HOME/Nasal/IOrules. That's desirable because
ordinary users aren't allowed to edit files in $FG_ROOT.
2008-06-16 10:47:02 +00:00
mfranz
7cc783c2f5
this comes from not using tabs ... sigh
2008-06-16 07:16:10 +00:00
mfranz
b5cdfeb2b8
... and allow reading only from ~/.fgfs/* and $FG_ROOT/*
2008-06-16 07:07:50 +00:00
mfranz
df018fff49
only allow writing to ~/.fgfs/Scenery/*.stg and ~/.fgfs/Export/*
2008-06-16 06:32:32 +00:00
mfranz
141f1c8da4
must not use setlistener in $FG_ROOT/Nasal/*.nas ...
2008-06-15 10:11:32 +00:00
mfranz
0fad328217
load_nasal: boolify result, as the number doesn't mean anything and might
...
be confusing
2008-06-14 22:39:28 +00:00
mfranz
56eef9c69f
move load_nasal to io module
2008-06-14 14:32:37 +00:00
mfranz
62cc0f457c
load_nasal: fix module and let it return whether there was an error
2008-06-14 14:25:34 +00:00
mfranz
a79c0e95c5
move load_nasal() here from the debug module
2008-06-14 14:22:34 +00:00
mfranz
c159ea1755
io.open(): drop die() color
2008-06-13 19:19:54 +00:00
mfranz
4a30ad6efe
io.open(): remove debug messages (for easier code review)
2008-06-13 19:14:48 +00:00
mfranz
59e3d65545
and die() with red color for now
2008-06-13 13:18:16 +00:00
mfranz
0216b1a65c
improve log messages
2008-06-13 13:08:56 +00:00
mfranz
4d17687f12
move fixpath back to string.nas. It *is* about strings, after all, and also
...
usable for property paths, so io.nas doesn't seem the right place.
2008-06-13 13:01:38 +00:00
mfranz
496a76b9fa
and "br" as well :-)
2008-06-13 12:11:42 +00:00
mfranz
06aa2b772c
open: allow "rb" everywhere like "r"
2008-06-13 12:09:45 +00:00
mfranz
2b3f574063
don't need /var/log/
2008-06-13 11:57:20 +00:00
mfranz
7d9bd68742
- move fixpath() from "string" to "io" module
...
- first stab at Nasal security model: allow writing files only to authorized
dirs. (Most of the debug messages will be removed later.)
2008-06-13 11:35:55 +00:00
mfranz
11d7de3e85
enable the Multiplayer menu if any of txport and rxport is set
2008-06-11 20:05:46 +00:00
mfranz
55670ccb35
enable multiplayer menu only in MP mode
2008-06-11 18:46:54 +00:00
mfranz
761444b917
close dialog on Esc, like every other dialog with a close button
2008-06-11 18:39:03 +00:00
mfranz
c1581e2ea1
Till BUSCH: multiplayer dialog (open with multiplayer.dialog.open() or toggle())
2008-06-11 18:23:03 +00:00
mfranz
2866043c3d
- prop_key_handler: limitate history to history-max-size on loading
...
- string/debug: cosmetics
2008-06-08 11:14:57 +00:00
mfranz
238fce1d15
let initNode() initialize a property to double(0) by default
2008-06-04 20:41:44 +00:00
mfranz
246ce973ec
save and reload up to 20 history entries
2008-05-19 17:31:57 +00:00
mfranz
8fe1cf807d
add initNode() function that initializes (if necessary) and returns a property.
...
If the property has a valid value already, then the given value is ignored.
var x = props.initNode("/foo", 10);
var y = props.initNode("/bar", 1, "BOOL");
2008-05-19 15:44:23 +00:00
mfranz
67ba396942
display: redraw on window resize so that the display won't disappear
2008-05-19 09:48:41 +00:00
mfranz
3184ea67a3
- add screen.display documentation
...
- add screen.display.setfont() and .toggle() method
- make property labels optional
2008-05-16 16:26:15 +00:00
mfranz
5334016034
display: format number, true/false for bools, quotes for strings
2008-05-15 20:31:35 +00:00
mfranz
f54cb1159f
prop_disp: change color to white ... again. (Sorry for the many small commits. :-)
2008-05-15 16:11:50 +00:00
mfranz
54f8fc4370
property_display: turn it into a regular class & lots of improvements
2008-05-15 15:42:31 +00:00
mfranz
0b4322736f
- make debug.dump() accept more than one argument (one could already write
...
debug.dump([a, b]) for that, but debug.dump(a, b) is more obvious)
- change output colors: variable names are no longer bold, all property
attributes are now blue, not just the property type)
- drop redundant braces & other cosmetics
2008-05-15 15:23:17 +00:00
mfranz
b6d987453f
data.add(): use props.nodeList() function
2008-05-15 15:20:11 +00:00
mfranz
a329a7ba14
- add props.nodeList() function which turns property ghosts, props.Nodes,
...
and path strings into a list of props.Nodes. It also digests lists of
properties, or lists of lists of properties etc., thus allowing things
like props.nodeList(arg), props.nodeList(n.getChildren("foo")). This is
meant for functions like aircraft.data.add() or screen.display.add().
- remove some redundant braces
- fix comment
2008-05-15 15:17:56 +00:00
mfranz
e5c027786d
property_display:
...
- don't use screen.window, but let it do its own dialog handling. Thereby
- make it faster (update every frame by default)
- prevent collisions with the menu
- allow to move the dialog away (only the left edge is draggable!)
- try color white (better color suggestions welcome :-)
2008-05-14 20:06:50 +00:00
mfranz
356a8430a7
property display: make sure tags are as short as possible but unique
2008-05-14 15:40:00 +00:00
mfranz
af38cc7c63
property display:
...
- make interval and color configurable
- use bigger font
- display strings containing \n in one line
2008-05-14 12:04:54 +00:00
mfranz
ee8b517246
property display: don't choke on nil properties
2008-05-14 10:57:02 +00:00
mfranz
ba57bd9a2e
property display: set HELVETICA_12 font (same as for fps display)
2008-05-14 10:36:37 +00:00
mfranz
02c4b7a613
- screen.nas: add live property display
...
- prop_key_handler.nas add support for live property display
2008-05-14 10:23:47 +00:00
mfranz
b055de3528
add setCursor() wrapper function for the "set-cursor" fgcommand
2008-05-08 10:15:18 +00:00
mfranz
7c5bd888ac
negative key numbers mark events consumed now
2008-05-03 21:29:38 +00:00
stuart
7513200f8e
Add additional message check so callsign is not prefixed if present in message itself.
2008-05-03 19:45:22 +00:00
stuart
acef95d90c
Re-order initialization and fix a couple of bugs.
2008-04-29 19:58:10 +00:00
mfranz
757c2314dd
don't try to build completion from invalid node
2008-04-26 23:29:52 +00:00
mfranz
1544af3ab9
return negative key numbers to report key event as consumed
2008-04-26 13:27:27 +00:00
stuart
b703e21db9
Initialize on /sim/signals/fdm-initialized instead of /sim/signals/nasal-dir-initialized. This happens later on, and ensure we have a valid /sim/time/delta-sec value for the filters.
2008-04-23 22:09:34 +00:00
mfranz
c78327ee21
- lowpass: work with delta-sec = nil
...
- cosmetics
2008-04-23 22:01:44 +00:00
stuart
01d21c928a
Add generic redout.
2008-04-23 20:44:57 +00:00
mfranz
efaeff5180
- make the limiter a tad faster
...
- fix comment
2008-04-21 21:39:45 +00:00
mfranz
ff6c9ec672
view_limiter: fix wrong starting offset
2008-04-15 16:55:40 +00:00
mfranz
c97010cefd
make panViewDir use new limiter params & some parameter tweaks
2008-04-15 13:29:23 +00:00
mfranz
7fbeb50695
view_limiter:
...
- new parameter naming (left/right instead of min/max; signs are ignored)
- fix wrap-around skips
- use regular constructor so as not to confuse people ;-)
2008-04-15 13:02:18 +00:00
mfranz
c4ebd9a0f2
- use separate view-limiter handler instances per view
...
- cleanup
2008-04-15 07:04:52 +00:00
mfranz
656340fa3d
davidB21 + Vivian MEAZZA + /me: pilot view limiter
...
If a <view> contains a <limits> block, then a view handler gets attached to
it, which limits head turns to a given range, whereby headings beyond a given
threshold cause an additional sideways movement. This is turned off by default
for now.
2008-04-14 10:00:27 +00:00
mfranz
3e9a108288
make view.index (value of "/sim/current-view/view-number") and view.current
...
(a props.Node hash of the current view, e.g. /sim/view[100]/) available
2008-04-12 20:25:21 +00:00
sydadams
c7b3412af0
Added a check for passive mode to allow keyboard controls ..
2008-04-01 05:56:38 +00:00
mfranz
6d3676639b
revert bad livery.current initialization
2008-03-01 12:01:23 +00:00
mfranz
4db470acd4
move MP livery update parts from the livery class into a separate
...
livery_update class and add an optional third argument to its constructor:
a callback function that's called whenever the class noticed a livery
change
2008-03-01 09:49:57 +00:00
mfranz
e9e234410d
initialize livery.current at livery.init()
2008-02-29 21:28:34 +00:00
mfranz
713685f275
add aircraft.livery methods for updating the livery in MP loaded aircraft
2008-02-29 17:17:40 +00:00
mfranz
217cbcae34
add mod-up action to magneto keys, and ignore that in the controls wrapper;
...
This allows to implement car-like combined magneto/starter switches.
2008-02-23 18:18:55 +00:00
stuart
dc4ad0dc80
Update to generic blackout, incorporating feedback from Melchior FRANZ:
...
- Update redout level every frame
- Replace reading of properties every iteration with listeners
- move -onset and -complete properties into a parameters subtree
2008-02-16 20:23:27 +00:00
stuart
dd923792ec
Add generic blackout/redout for all aircraft, along with a gui.
...
Based on previous work by vivian and myself.
2008-02-16 08:26:59 +00:00
vmmeazza
0e0b9b4b06
Add a new class which enables formations to be changed during runtime. A modification of the Livery Class
2008-02-15 14:09:37 +00:00
mfranz
80ed641d69
avoid unnecessary call()
2008-02-13 20:12:42 +00:00
andy
4ae206fc00
Turns out some code likes to call isa() with non-objects. Might as
...
well have it return false (which is valid) instead of throwing an
exception (also valid, but more surprising).
2008-02-07 21:23:42 +00:00
andy
bedac8ec83
Fix isa() when used on classes with superclasses.
2008-02-07 18:03:03 +00:00
mfranz
b94a02a4f5
disable ground steering head turn (until there's a better implementation?).
...
This does often work badly, especially in seaplanes.
2008-02-07 15:07:09 +00:00
mfranz
46f66693e2
- make timer.stop() return "me"
...
- make door.move() only spawn an interpolate event if the target value
differs from the current pos (fixes brake problem in the dhc6)
2008-02-05 12:39:56 +00:00
mfranz
30f3dff563
make axis wrappers a tad faster (and a whole lot cooler :-)
2008-01-30 21:52:29 +00:00
mfranz
c35f3207d3
preferences.xml: drop /sim/input/selected/engine settings (these properties
...
are set in controls.nas since ages)
controls.nas: avoid repeated querying of /sim/input/selected/engine[*]
properties; this isn't supposed to change at runtime and is a rather
costly process, especially in axis handlers
2008-01-30 16:48:04 +00:00
mfranz
5776d1cc87
make mixture/propeller/carbHear only work for selected engine (like throttle)
2008-01-29 23:45:31 +00:00
mfranz
cce72f08a9
don't save view-enabled state of nameless views to aircraft config file
...
(the view may have been removed from the *-set.xml file)
2008-01-18 14:16:38 +00:00
mfranz
7c9566860d
Stewart ANDREASON: fix broken index calculation in livery.set()
2007-12-17 21:49:52 +00:00
mfranz
c96fd4b089
- make stepView() read the <enabled> flag as bool
...
- some more 'var', as usual
2007-12-13 20:16:20 +00:00
mfranz
e37bd9d12f
add new key defs
2007-12-09 22:58:51 +00:00
vmmeazza
4ee3367452
Stuart Buchanan:
...
Add chat menu
2007-12-08 19:01:03 +00:00
mfranz
cf0f21dec3
... and turning them on again should actually make the frames visible.
2007-12-07 12:23:46 +00:00
mfranz
c83a76d585
disable top bar only if /sim/model/geometry/square/top is unset. Put this
...
into your ~/.fgfsrc if you want complete squares (yes, 0 is on :-).
--prop:sim/model/geometry/square/top=0
2007-12-07 11:49:55 +00:00
mfranz
77dcb9dc34
glide slope tunnel visualization script
2007-12-01 19:10:12 +00:00
mfranz
62b3343fef
Markus ZOJER: add wingSweep() wrapper
...
mf: add var keyword, use named args, ...
2007-11-29 13:16:13 +00:00
mfranz
0183e43b38
allow to open several property browsers with one command line argument
...
(comma separated paths):
--prop:browser=position,orientation,sim/model
2007-11-28 22:22:29 +00:00
mfranz
8e1364713f
reorder instructions in start(); rename some variables
2007-11-27 16:28:52 +00:00
mfranz
125d9d7f19
don't remove double entries in the whole history, but only push unique ones
2007-11-27 01:40:23 +00:00
mfranz
4faba765b0
remove obsolete code
2007-11-26 16:42:43 +00:00
mfranz
7592b8243a
remove leftover debug statement
2007-11-26 16:14:44 +00:00
mfranz
73c0285ef9
- remove property browser binding from the <SPACE> key
...
- rename prop-key-handler.nas to prop_key_handler.nas (the hyphens were
intentional, exactly to *make* using it as namespace less inviting,
but times change ...)
- add property browser binding to the '/'-key for when the property key handler
is turned off (/sim/input/property-key-handler=0). If it's on, use /: or
/<property>: to open the browser.
- run keyboard event listener only when property key handler is active
I hope that the '/' key can keep this binding even after a keyboard review.
The '/' is just the most natural key for dealing with properties, and it's
far less prominent on non-US-keyboards (e.g. Shift-7 on German keyboards),
so it's not really very well suited for important aircraft functions, anyway.
But I don't insist. :-)
2007-11-26 16:12:37 +00:00
mfranz
4b5550520b
character class fixes (isfoo())
2007-11-26 09:50:18 +00:00
mfranz
a53e636268
debug.nas: _dump_string(): escape some characters
...
prop-key-handler.nas: minor cleanup
2007-11-25 20:36:57 +00:00
mfranz
ecf469e295
prop-key-handler.nas: check for nil property
...
tutorial.nas, globals.nas, controls.nas: cosmetics
2007-11-20 17:02:13 +00:00
mfranz
73bbdd280d
treat "Cockpit View" like other views; limit view.stepView() step to 1 and -1
2007-11-20 11:34:54 +00:00
mfranz
eccdedf12c
- ensure correct order of initialization
...
- only save aircraft view properties that are defined
- unset "userarchive" flags, just in case
2007-11-19 20:20:55 +00:00
mfranz
73aeb8d772
OK, and now it Really Works.
...
(Yes, that's one way to get a better place in the number-of-commits ranking. ;-)
2007-11-19 18:55:24 +00:00
mfranz
87e746a755
sheesh ... another little bug to fix: fixate path for settimer closure
2007-11-19 18:30:55 +00:00
mfranz
59e51fa533
refresh "enabled" state of aircraft views (or they'd last only until the next run)
2007-11-19 18:07:30 +00:00
mfranz
b8b665d347
work correctly if the stepView() step is >1 or <-1 (though such steps
...
don't really make much sense)
2007-11-19 17:08:47 +00:00
mfranz
10c875f75e
make system and aircraft views configurable in Menu->Views->View Options.
...
These are then skipped with view.stepView(n), unless the second, optional
argument is set to 1: view.stepView(n, 1);
Whether a view is enabled or not, is saved in $FG_ROOT/.fgfs/autosave.xml
(system views) or $FG_ROOT/.fgfs/aircraft-data/<aircraft>.xml
2007-11-19 16:26:15 +00:00
mfranz
d6be4c8303
make sure aircraft don't use reserved view indices (0..99)
...
I tried it the nice way, but it didn't work. Why is it important to
reserve indices for fgfs? Because someone has otherwise to go through
all aircraft in CVS and move aircraft specific views out of the way,
every time a system view gets added. Been there, done that.
2007-11-19 14:22:55 +00:00
mfranz
96c76c4fe0
display hash keys that are numbers as numbers; import string.nas functions
2007-11-19 13:31:18 +00:00
mfranz
31807d6538
dump funny hash keys correctly, as string with escaped non-printables
2007-11-19 12:36:26 +00:00
mfranz
4ed4939b8e
describe <Shift-TAB> and <Shift-Backspace> keys as well :-)
2007-11-18 13:30:30 +00:00
mfranz
0bca5bdea6
- add Debug->Development Extensions dialog with two checkboxes to
...
- allow turning on/off extra widgets for developers (HUD dialog: colors,
rendering dialog: visualization of shadow edges), and to turn on/off new
- property key handler ('/'-key)
Both features are off by default, and their state is saved to autosave.xml.
2007-11-18 12:20:17 +00:00
mfranz
9dfa8830a7
more isfoo() functions (yes, I intend to use them :-)
2007-11-16 17:16:42 +00:00
mfranz
d85ba7575c
make debug.attributes() verbose by default. This adds the refcounter to
...
the property attribute string, as in:
(NONE, L1, #8345 )
... for a node of type "NONE", with one listener attached, and 8345 instances
of the shared pointer around.
2007-11-15 21:27:42 +00:00
mfranz
3a83fb99d5
- "export" the attributes function for return a property node's attributes
...
as string (s/_attrib/attributes)
- bind() the code in load_nasal() correctly
2007-11-15 06:46:14 +00:00
mfranz
14a5f38be2
make gui.property_browser() not only digest property paths, but
...
also props.Node class hashes
2007-11-14 20:13:35 +00:00
david
45363925fc
Add function to toggle lighting.
2007-11-10 01:29:31 +00:00
mfranz
5481c73b20
- fix bug that made gui.popupTip() ignore the optional delay argument
...
- use more "var" keywords and named args
- popupTip(): add optional third hash argument that is merged with the
dialog properies hash. This can be used to select different font or
dialog colors, etc.
2007-11-09 13:00:05 +00:00
mfranz
2ba2925cd0
add view manager which manages view handlers. fly-by-view is now implemented
...
as such a view handler. Views that don't use one aren't affected -- the view
manager doesn't run when they are active.
2007-11-06 21:49:33 +00:00
mfranz
b3ab26db07
fix comment & cosmetics
2007-11-06 21:23:53 +00:00
mfranz
9b7eafd658
use sim time delta for the lowpass, not realtime delta
2007-11-06 21:22:06 +00:00
mfranz
99bcbe8ea5
change global dynamic-view flag from /sim/view[0]/dynamic/enabled to
...
/sim/current-view/dynamic-view. There are additionally <dynamic-view>
settings per view, but those only enable it for that view if it's
globally turned on.
2007-11-03 14:08:39 +00:00
mfranz
eb5b350ec9
we need more colors!
2007-10-16 18:54:25 +00:00
mfranz
be3025b40f
bah ... always shortly after presenting a new feature on the list, I change
...
it and the description doesn't match any more. :-}
Number of frames makes more sense than seconds (default = 1):
debug.proptrace([<property> [, <number_of_frames>]]);
2007-10-16 17:23:25 +00:00
mfranz
fc6f357a0e
add new debugging function proptrace(), which outputs all regular property
...
writes (not directly written tied ones), all node additions and removal.
Frames are separated with a line. Turn off ANSI coloring if you want to
pipe the results into a file: --prop:sim/startup/terminal-ansi-colors=0
2007-10-16 15:24:30 +00:00
mfranz
c6790fd328
don't set stopTutorial listener before we can be sure that markerN is set
2007-10-15 21:55:23 +00:00
mfranz
256b1880cb
wrapNode(): One argument ought to be enough for anybody.
2007-10-15 18:32:20 +00:00
mfranz
2bcddab9b6
setlistener(): accessing the node via cmdarg() is now depreciated. Use
...
a regular function argument for that. Note the "n" in this example:
setlistener("/sim/current-view/view-number", func(n) {
setprop("/sim/hud/visibility", !n.getValue());
}, 1);
2007-10-15 18:27:42 +00:00
mfranz
12c11dfa6f
setlistener(): now that we know the params, we only need to unwrap the first two
2007-10-15 18:00:17 +00:00
mfranz
0d3c7cec6f
- setlistener(): add wrapper function to turn ghost arguments into props.Nodes
...
- "modernization": use more named function arguments and "var" keywords
2007-10-15 16:30:37 +00:00
mfranz
cdc2b360d7
launchbar message: adapt for new setlistener() syntax; fourth argument set
...
to zero, so that the listener is only triggered when the launchbar state
has change. (YASim writes it in every frame. Sigh.)
2007-10-14 18:04:53 +00:00
mfranz
705e4bcaac
forward fourth setlistener() arg to _setlistener()
2007-10-14 18:03:31 +00:00
mfranz
3cccfaac53
re-activate launchbar listener, and make it a type 2 listener
...
(repeated writing of the same value doesn't trigger, only changes do)
2007-10-12 17:25:54 +00:00
mfranz
6149c6bbda
commenting the "Engaged" message out ... YASim.cxx sets the launchbar
...
state string in *every* frame, so we shouldn't "listen" to it. :-(
2007-10-10 10:59:41 +00:00
mfranz
520fff1c1e
screen.nas: now *really* do the runway report quietly
...
startup.nas: cosmetics
2007-10-10 09:58:22 +00:00
mfranz
d003752d20
let copilot/ground crew report when engaged in launchbar
2007-10-09 14:48:44 +00:00
mfranz
693bebcd43
this module is meant for pure startup code. It shall not contain any library
...
code that is called from outside. It will be removed from the global namespace
once it has done its job. For now it only selects a proper runway for wind
directions reported by METAR, but only, of course, if an airport was chosen,
but no runway and no heading, and if the aircraft is actually on ground.
2007-10-07 19:44:58 +00:00
mfranz
095e3e717e
agl: need to check for nil
2007-10-07 17:09:13 +00:00
mfranz
dfd21c722d
- add more "var" keywords, fix indentation, drop some parentheses,
...
fix comments, consistency fixes, ...
- aircraft.nas: angular_lowpass -> minor speedup
2007-10-07 15:12:05 +00:00
mfranz
ef22d3f5a3
only report ATC/runway near ground & cleanup
2007-10-07 11:34:53 +00:00
mfranz
b7ddc05287
rwy info isn't always available
2007-10-04 22:07:37 +00:00
mfranz
321fbbbcab
friendly ATC tells us on which runway we are, without sound.
...
Please complain if you find it, nevertheless, annoying.
2007-10-04 18:23:36 +00:00
mfranz
a895da0247
can't use props.getNode() on the top level ...
2007-10-03 19:14:04 +00:00
mfranz
eafc9c3a1d
rename index() to indexof()
2007-10-03 19:01:01 +00:00
mfranz
63dca5051a
add index() function which returns view index by name. Identifying views
...
by name is safer and especially useful for aircraft specific views, where
the XML index doesn't match the view number.
2007-10-03 18:15:50 +00:00
mfranz
0f69bc55ef
enable dynamic view not only for view[0], but for all views with set
...
"config/dynamic-view" bool
2007-10-03 17:33:42 +00:00
mfranz
fd20d330ba
props.Node: add remove() method that removes the node it was calleed on
...
from its property tree. The node remains accessible as long as references
to it are kept. Example:
var cow_chain = func {
var cow = geo.put_model("Models/Fauna/cow.ac", geo.aircraft_position());
settimer(func { cow.remove() }, 10);
settimer(cow_chain, 2);
}
cow_chain();
2007-08-07 11:30:30 +00:00
mfranz
bf050c012f
load and execute all ~/.fgfs/Nasal/*.nas files in alphabetic order after
...
the $FG_ROOT/Nasal/*.nas ones are done. This allows to use props.Node etc.
immediately, without requirement for settimer(func{}, 0) constructions.
Rationale:
- clean separation of local additions (and hacks :-) from standard files
- users might not have write permission to $FG_ROOT/Nasal/ or shouldn't
have to su to root for writing Nasal code
2007-08-06 22:50:06 +00:00
mfranz
109f38812b
don't reset viewPosition on view.resetView(). This would break
...
"seat adjustment" view MMB-dragging.
2007-08-01 21:28:58 +00:00
mfranz
3132b5c962
Fix mouse MMB+LMB: this reset to view[0] parameters independent of the
...
current view, so it was only usable in cockpit view, and messed up every
other view.
2007-08-01 21:10:04 +00:00
mfranz
e092ee9abc
- we prefer hyphens in property names to underscores
...
- save /sim/multiplayer/chat-display to autosave.xml
- remove trailing spaces
2007-08-01 19:37:51 +00:00
mfranz
7c2a88a98a
Anders GIDENSTAM:
...
- Page up/down changes the selected throttles one step up/down, i.e.
if the original throttle settings were x steps apart they remain
steps apart (unless the boundary is reached).
- Mouse + MMB drag changes the selected throttles by the delta amount
(length of drag).
- The throttleAxis() wrapper for joysticks sets the selected
throttles to correspond to the joystick's axis position. I.e. all
selected engines will get the same throttle setting. Since most
joystick throttles are positional devices I think this behaviour
is more logical than using a relative adjustment in this case. """
mf: slightly modified, added var etc. (more such changes in controls.nas
to come)
2007-07-19 16:18:39 +00:00
mfranz
3ec61cdd5f
key help: property browser: Shift-Enter -> Ctrl-Space
2007-07-19 10:51:24 +00:00
mfranz
b6b39def59
nextStyle: switch to next available style, allowing the index range to
...
have holes. That way people can start their private styles with e.g. 100
and can be sure that the system doesn't mess with them.
2007-07-17 10:05:14 +00:00
mfranz
886af1b68d
fly-by: more variation of view points in air, with some limits on ground to
...
avoid irritating taxiing through the viewer or down view on the aircraft
2007-07-16 14:42:48 +00:00
mfranz
3c08f34027
- move "swap panels" from s-key to S-key
...
- move "fire starter" from SPACE-key to s-key
- move "open property browser" from Shift-SPACE to Shift-Enter (Shift-Return)
- implement PTT on SPACE/Shift-SPACE (with the other six SPACE/modifier
combinations unused, apart from a popup)
- add controls.ptt(v) wrapper function (v can be 1 or 2 for on, and 0 for off)
Easter-Egg:
- pressing the t-key for at least one second resets the warp delta.
This is an experimental feature that most people won't notice. It's meant
for investigating if suchlike "unorthodox" key use is acceptable. While
modifier-keys are the norm on computer keyboards, modifier-times aren't,
although we are used to them from other devices, such as alarm clocks etc.)
May later get removed without warning.
2007-07-13 13:46:09 +00:00
mfranz
96a8a9657f
- drop redundant aircraft namespace
...
- use getprop() instead of props.Node.getValue() here because it's faster
2007-07-06 21:28:07 +00:00
mfranz
d6ff854aa5
add class for variable inverval lowpass filtering of angles. (If there's
...
a better method or name for it, please tell me.) This is primarily for
smoothing view heading angles.
2007-07-06 20:31:14 +00:00
mfranz
bece57dfc8
output ghosts in a readable form
2007-07-02 20:58:30 +00:00
mfranz
54c28ced16
what I do best: cosmetics
2007-07-01 18:54:32 +00:00
mfranz
faf9ea862d
implement writexml() function for writing non-standard XML files
...
(that is: such that don't use PropertyList as root element and have
data hidden in attributes)
2007-07-01 15:05:16 +00:00
mfranz
122423aa2b
- make io.readxml() a lot faster
...
- documentation update
2007-06-30 11:06:36 +00:00
mfranz
7b1ac37678
add readxml function that reads an XML file and returns it as property tree
2007-06-29 15:49:08 +00:00
mfranz
968c517a71
bye ... we have a Nasal interface to the built-in EasyXML parser now
2007-06-29 15:44:15 +00:00
mfranz
2e9c693e67
use geodinfo() function to retrieve the terrain elevation for a coordinate
2007-06-23 15:28:08 +00:00
mfranz
43d6e707bb
minus can't be delimiter in a [] range
2007-06-22 20:41:00 +00:00
mfranz
cfd9c1b48f
pointless spelling fixes
2007-06-22 18:49:38 +00:00
mfranz
248d4fcf60
- fix behavior for broken input
...
- more documentation
2007-06-22 17:52:37 +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
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