mfranz
df018fff49
only allow writing to ~/.fgfs/Scenery/*.stg and ~/.fgfs/Export/*
2008-06-16 06:32:32 +00:00
mfranz
be7c7b0ad7
display aileron/elevator/rudder/throttle axis values
2008-06-15 22:12:47 +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
219f8d9a3a
- make dialog non-modal (doesn't buy us much and can cause annoying lockups)
...
- fix indentation/remove trailing spaces
2008-06-12 23:04:42 +00:00
mfranz
5aa1cb5296
change "Multiplayer" to "Network" because:
...
- Multiplayer is too long for a menu entry that is greyed out most of
the time for many people
- I don't like having the word "player" in front of me all the time
(FlightGear Is Not A Game[TM] :-)
Should we shorten it further to just "Net"?
2008-06-12 05:45:01 +00:00
stuart
c85be81196
Collate Dynamic Cockpit view toggle with blackout and G-compression toggles into a new Cockpit View Options dialog.
2008-06-11 21:20:43 +00:00
mfranz
11d7de3e85
enable the Multiplayer menu if any of txport and rxport is set
2008-06-11 20:05:46 +00:00
stuart
510842c15a
Make Pilot List label consistent with rest of menu items.
2008-06-11 19:22:22 +00:00
mfranz
55670ccb35
enable multiplayer menu only in MP mode
2008-06-11 18:46:54 +00:00
mfranz
4f7481fea8
add Multiplayer menu with chat & pilot list
2008-06-11 18:40:51 +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
abory
166f5c8b96
- Alexis: oops, should better test before committing.
2008-06-05 21:10:43 +00:00
abory
ba83e856cf
- Alexis: ooops I forgot Jettoo's last additions in the tables.
2008-06-05 19:44:09 +00:00
abory
40d9b0e400
- Jettoo (glazmax) and Alexis: Radar Visibility Calculator.
2008-06-05 19:37:32 +00:00
mfranz
f8f63fcd8d
use props.initNode() & simplification
2008-06-04 20:52:09 +00:00
mfranz
238fce1d15
let initNode() initialize a property to double(0) by default
2008-06-04 20:41:44 +00:00
mfranz
64296a8d4a
fix path
2008-06-04 20:19:27 +00:00
mfranz
fd983fd62c
Ron JENSEN: config for 'Saitek Saitek Pro Flight Quadrant'
...
Axis Left to Right: Throttle, Prop Pitch, Mixture
Buttons Left to Right: Flaps, Trim, Gear (up is up, down is down)
2008-06-01 06:42:05 +00:00
stuart
f69eaafc07
Disable generic headshake by default. Various people have pointed out that this is not particularly realistic (though I quite like the effect myself so will leave it as an option).
2008-05-30 19:19:35 +00:00
sydadams
51344a09ec
a few more updates , cleanups ...
2008-05-22 07:00:45 +00:00
sydadams
5b020a450a
updates from Ron Jensen
2008-05-22 02:30:49 +00:00
mfranz
205675455c
- make modelmgr a singleton class
...
- add selected_models() function
- fix help screen
2008-05-21 23:33:23 +00:00
mfranz
95a652be17
- add <delay-sec>
...
- fix mixed indentation
2008-05-21 14:55:57 +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