1
0
Fork 0
Commit graph

327 commits

Author SHA1 Message Date
stuart
510842c15a Make Pilot List label consistent with rest of menu items. 2008-06-11 19:22:22 +00:00
mfranz
4f7481fea8 add Multiplayer menu with chat & pilot list 2008-06-11 18:40:51 +00:00
mfranz
6a577072da - write last clicked entry to /sim/gui/dialogs/property-browser/selected
- darken clone button
- cleanup & cosmetics
2008-05-14 10:19:17 +00:00
stuart
b6b4b5fe77 Add additional runway selection so the runway in use doesn't change as you roll past mid-point. Also fix possible bug for north-south runways. 2008-05-03 19:46:47 +00:00
mfranz
cd31d19946 add unit suffixes -nm and -deg to /sim/presets/offset-{distance,azimuth} 2008-05-01 21:15:40 +00:00
mfranz
4be84e1609 use more sophisticated screenshot binding from $FG_ROOT/keyboard.xml 2008-04-26 23:14:42 +00:00
mfranz
1544af3ab9 return negative key numbers to report key event as consumed 2008-04-26 13:27:27 +00:00
stuart
01d21c928a Add generic redout. 2008-04-23 20:44:57 +00:00
mfranz
d285a3598b - initialize /sim/rendering/on-screen-statistics, and
- increase it in steps from Menu->Debug
2008-04-21 14:21:14 +00:00
mfranz
88d8169764 - move OSG's "on-screen-statistics" function to the Debug menu
- add "print-statistics" menu entry
2008-04-20 18:28:11 +00:00
stuart
071c2e913b Change Weather menu to Environment. This more closely reflects its contents, as it includes a Time Settings menu. 2008-04-20 16:19:59 +00:00
mfranz
a2982254ab add 'random vegetation' checkbox. (Note that you won't see the effect
immediately!)
2008-04-20 08:46:36 +00:00
timoore
21331892cf precipitation dialog 2008-03-04 08:46:52 +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
921c8a5b5e Experimental formation menu 2008-02-11 18:34:19 +00:00
mfranz
ea3148949a use the destructor (which I had totally forgotten) 2008-01-23 21:26:30 +00:00
mfranz
7948776d89 insert WP list file on selected position, or append otherwise 2008-01-22 22:25:28 +00:00
mfranz
e22b74016e what about using string.trim() correctly?! 2008-01-22 20:03:00 +00:00
mfranz
1fd9c1d8f2 delete the file dialog, not the route manager dialog 2008-01-22 20:01:08 +00:00
mfranz
31c7d5d748 add button to load waypoint file (idea by Philip COBBIN) 2008-01-22 19:45:57 +00:00
mfranz
961e91520d - allow to hide views from this dialog by setting <hide type="bool">true</hide>
- deal better with (broken!) nameless views
2007-12-13 13:57:23 +00:00
mfranz
8bf50232da replace /sim/devel by /sim/gui/devel-widgets to enable/disable devel widgets 2007-12-11 15:50:58 +00:00
martin
33277e0730 Stuart Buchanan:
1) The chat menu will now select the runway closest to the aircraft
   when the aircraft is on the ground, or very low (< 100ft). This
   handles the case where the user has selected a runway explicitly,
   e.g. 01R for KSFO take-offs for noise abatement. My thanks for
   AnMaster for pointing this out on IRC. Note that above 100 ft, the
   wind-appropriate runway will still be used.
2) Change to keyboard description for the - key, as pointed out by
   Melchior.
2007-12-11 15:20:00 +00:00
mfranz
9090c1bf74 remove garbage 2007-12-08 19:31:19 +00:00
vmmeazza
4ee3367452 Stuart Buchanan:
Add chat menu
2007-12-08 19:01:03 +00:00
mfranz
e5db56287d Stuart BUCHANAN: s/Time of Day/Time Settings/ 2007-12-05 07:58:33 +00:00
mfranz
f671f0b0f7 add glide slope tunnel option to help menu 2007-12-04 10:51:45 +00:00
mfranz
46e35f9194 Stuart BUCHANAN: add warp and speed-up setting 2007-11-29 11:45:41 +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
2f187b28a4 add checkboxes for other views as well, but don't save their state anywhere 2007-11-20 17:26:21 +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
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
b498abaedc center close button 2007-11-18 16:00:13 +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
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
9ce73af7a4 replace depreciated cmdarg() in listener functions by regular arg 2007-10-15 18:59:34 +00:00
mfranz
93955788ca set unknown heading preset, so that wind direction is considered if no
runway was given
2007-10-04 15:47:54 +00:00
mfranz
397ee8296f - simplification: use gui.dialog_update() command instead of
fgcommand("dialog-update", props.Node.new({}));
- remove lots of trailing spaces
2007-08-01 20:06:16 +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
aa411b3e73 - better layout (done by embedded Nasal)
- no longer modal (this caused problems with dialogs opened by keystrokes)
2007-07-02 14:34:01 +00:00
mfranz
709e505f0a trim() is now in string.nas 2007-06-23 10:08:42 +00:00
mfranz
199756d189 increase range of searched and displayed frequencies 40 -> 50 nm 2007-06-22 18:08:35 +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
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
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
75a2b57a83 - move dialog registration to the Dialog class
- fix documentation
2007-06-15 16:22:13 +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
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
sydadams
e828ba548f Moved ATC "aircraft" dialogs out of gui/dialogs 2007-06-06 02:56:31 +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
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
378540bcf3 - fix Nasal error: "props.setDoubleValue() with non-number"
- use var keyword everywhere, cosmetics
2007-05-31 14:31:08 +00:00
frohlich
a851a1824e Modified Files:
gui/menubar.xml: Tim Moore:
	These patches implement a command to dump the entire OSG scene graph as
 	a .osg text file. While large, this allows debuggers to really see
 	what's happening in the scene graph.
2007-05-26 11:43:27 +00:00
mfranz
065bd859d6 don't pause the update loop 2007-05-07 16:24:16 +00:00
sydadams
bafa93e8fd Added volume control to the atc-chatter 2007-04-19 04:42:20 +00:00
mfranz
6af3e31f12 what about making sure the node exists? That way others can see the
new buttons and features, too.  :-}
2007-04-01 13:38:35 +00:00
mfranz
e7837e32a2 note to myself: when you steal from somewhere, hide the evidence! :-) 2007-03-29 20:00:15 +00:00
mfranz
d10d5980ca apply/store editfield values on Clear/Print/Execute/leave 2007-03-29 14:53:40 +00:00
mfranz
879620694e - offer 10 "tabs" (with more configurable) where each can contain Nasal code;
all code shares a common namespace, so variables defined in one tab can
  be used in another during the whole fgfs session
- make code persistent (saved in autosave.xml)
- better error messages (code borrowed from nasal/lib/interactive.nas)
- clear button (replaces close button, which is now on the title bar)
- help button (explains how to add more tab buttons, etc.)
2007-03-28 14:59:22 +00:00
mfranz
9e5a18207f export <view> on [Dump], too 2007-03-26 22:48:10 +00:00
mfranz
c1c86bb8a5 - use <hrule/> and <vrule/> without dummy children
- minor improvements/cosmetics
2007-03-26 15:25:27 +00:00
mfranz
b2fe43808c alining <textarea> and <list> looks nicer 2007-03-24 21:33:23 +00:00
mfranz
2a9993c37e minor adjustment of the <list> box 2007-03-24 21:02:45 +00:00
mfranz
269396c421 - remove tutorial dialogs from gui.nas and create a new XML dialog
$FG_ROOT/gui/dialogs/tutorial.xml. It combines the former selection
  and description dialogs, which makes browsing much more pleasant.
  No more switching back and forth between the two old dialogs. Also,
  the <list> box can handle a bigger number of tutorials than the
  <combo> box could.
- remove comments from the top of tutorial.nas. The documentation is
  now $FG_ROOT/Docs/README.tutorials
2007-03-24 20:56:40 +00:00
mfranz
b47f8f439d change <marker><[xyz]> to <marker><[xyz]-m> (for consistency with the
animation syntax, and to make tutorials noisier and harder to read :-)
2007-03-24 18:10:33 +00:00
mfranz
20fa1233fb better output coords with tenth of mm 2007-03-20 21:53:25 +00:00
mfranz
318c08f9c7 - reverse longitudinal axis
- add reset button (moves cursor back to origin)
- make Ctrl/Shift scale movements (coarser/finer)
2007-03-20 16:17:47 +00:00
mfranz
a7d30fa76e fix broken and inconsistent indentation 2007-03-20 00:07:00 +00:00
mfranz
d4863a1001 adjustment dialog for tutorial markers 2007-03-19 23:29:54 +00:00
sydadams
2cdd9418d4 Added a Flightdirector Mode checkbox to the Autopilot dialog (Autopilot on / off) for the Primus 1000 system.... 2007-03-18 04:18:20 +00:00
mfranz
ba429a7110 rename default.xml to classic.xml (who says that this needs to be the
default? :-)
2007-03-16 10:47:14 +00:00
mfranz
420b9bff99 allow to open several property browsers via menu 2007-02-10 23:50:41 +00:00
mfranz
fe0d940a8f - center title (like the other help dialogs)
- s/Configuration/Driver/
- yet more cosmetics  :-)
2006-10-21 22:03:01 +00:00
mfranz
cf332a5f33 - make it prettier
- add optional <help> text on the bottom
2006-10-21 13:50:54 +00:00
mfranz
d31c5389ef - s/Btn/Button/
- simplification
2006-10-21 11:46:43 +00:00
mfranz
7f31a17f72 no comma after last <name> 2006-10-21 10:50:42 +00:00
mfranz
f3d790eb26 add joystick info dialog 2006-10-21 10:19:04 +00:00
mfranz
e4ae076a21 remove entry for old property dialog (which will follow soon) 2006-10-21 10:16:23 +00:00
frohlich
9c52cbf4ac Modified Files:
preferences.xml gui/menubar.xml gui/dialogs/rendering.xml
Added Files:
	Nasal/multiplayer.nas gui/dialogs/chat.xml
	gui/dialogs/chat_full.xml:
	the data part of Stuarts multiplayer/chat patch
2006-10-10 05:23:38 +00:00
mfranz
e0b80f625d give dynamic view entry a name 2006-08-21 09:42:58 +00:00
curt
a6ebef1d0a Make lead aircraft behavior more uniform/predictable/repeatable. 2006-08-20 00:54:53 +00:00
mfranz
e846e6e37c add dynamic cockpit view entry 2006-08-17 15:53:02 +00:00
mfranz
31307ae9e0 1/1000 sec resolution is a bit optimistic. 1/10 should be enough. :-) 2006-08-07 16:42:35 +00:00
mfranz
e2906cb09d add stopwatch dialog to Debug menu 2006-08-05 07:34:53 +00:00
mfranz
bd28941f61 stopwatch dialog 2006-08-05 07:33:48 +00:00
mfranz
05c5b3ff5a consistent property path naming 2006-07-27 14:32:57 +00:00
curt
0cc2cf1388 Move task selection dialog box here. 2006-07-27 04:01:44 +00:00
curt
ff8ee80ece Add an option to toggle point sprites on/off for runway lighting. 2006-07-20 14:30:03 +00:00
mfranz
19134637c9 don't use obsolete lon/lat format command, but cycle /sim/lon-lat-format
through 0 -> 1 -> 2 -> 0 ...
2006-06-17 16:36:06 +00:00
mfranz
2a20cdecf6 add transparency checkbox 2006-06-09 20:35:44 +00:00
mfranz
daaf1c5879 - fix indentation
- remove shadow devel checkbox, unless /sim/devel is set
2006-06-08 17:21:57 +00:00
mfranz
176d08e746 - update paths
- add color/clamp sliders in devel mode
2006-06-08 17:16:00 +00:00
mfranz
337b38ad70 the hud dialog is no longer only about transparency 2006-06-07 19:44:29 +00:00