1
0
Fork 0
Commit graph

246 commits

Author SHA1 Message Date
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