1
0
Fork 0
Commit graph

3349 commits

Author SHA1 Message Date
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
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
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
mfranz
d12dfeda42 bah ... put the clone/copy function on the 'c' 2008-05-10 18:27:15 +00:00
mfranz
8361721c72 make Shift-d clone all selected objects (same key as in Blender :-) 2008-05-10 18:23:52 +00:00
mfranz
a571440567 - let Ctrl-g have the same meaning as g (necessary for LMB emulation)
- more cosmetics
2008-05-10 11:09:33 +00:00
mfranz
4c16eacf96 - make MMB-transformation step size depend on viewer distance
- add cursor.ac to the model selection list (useful as rotation center)
2008-05-09 20:40:10 +00:00
mfranz
6e36e21f7b - support *.osg models (priority: *.xml -> *.osg -> *.ac)
- cleanup
2008-05-09 16:47:38 +00:00
durk
0925bc751e Added a default value for the /sim/traffic-manager/proportion property. 2008-05-09 05:25:54 +00:00
stuart
1c75436c98 Correct spelling mistake in ATC chat. 2008-05-08 20:18:49 +00:00
mfranz
e5b1c408dc mouse walk -> operation mode: with Ctrl modifier down, don't move the
ufo position, but the selected objects: ctrl-mmb left/right/up/down move
the objects left/right/away/nearer, and ctrl-mmb-lmb l/r/u/d rotate them
all around the active object ('m'-key marker!) or raise/lower them.

(the gear-key 'g' can for now be used as a Ctrl replacement for people
with 2 button mouse; will probably be moved to a better place ...)
2008-05-08 20:11:39 +00:00
mfranz
59d9f53e57 mouse walk: wrap mouse, so that the walking range is only limited by the
size of the mouse pad, not by the screen size  :-)
2008-05-08 10:23:19 +00:00
mfranz
b055de3528 add setCursor() wrapper function for the "set-cursor" fgcommand 2008-05-08 10:15:18 +00:00
mfranz
076bc0f176 mouse walk: don't use Ctrl+MMB for left/right/up/down, but MMB+LMB 2008-05-07 18:03:38 +00:00
mfranz
3d1582798a - center controls when starting/stopping mouse walk, as well as at startup
- make shift modifier increase walking speed
2008-05-06 22:49:02 +00:00
mfranz
ef20bebf4f mouse walk: a bit more progression on x/y/z; no progression on hdg change 2008-05-05 21:47:39 +00:00
mfranz
49763a91b0 move dialogs up so that the mouse button listener doesn't bark 2008-05-05 18:45:21 +00:00
mfranz
53958680a8 center adjust dialog sliders on mouse walk 2008-05-05 18:16:05 +00:00
mfranz
b4b686b5ff let Mouse Walk zero the throttle 2008-05-05 17:31:36 +00:00
mfranz
7f42abb076 - Do The Mouse Walk. ... MMB[+Ctrl] drag in pointer mode
- drop redundant braces
2008-05-05 13:22:01 +00:00
mfranz
623dcb0602 g-click:
- don't open status dialog if not necessary
- adjust ufo heading to view direction
2008-05-04 21:56:34 +00:00
mfranz
67b14bb1ae Francesco BRISA (& me): add teleport function
When holding the gear key or button down (as a kind of modifier) and after
left-clicking on the terrain, teleport the UFO to the click position.
Keep heading if no model is active, otherise look there. Keep altitude-agl.
2008-05-04 21:16:48 +00:00
mfranz
7c5bd888ac negative key numbers mark events consumed now 2008-05-03 21:29:38 +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
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
f40fe013f6 Replace UK-style ATC commands with US styles ones. Messages courtesy of Rob SHEARMAN Jnr. 2008-05-03 19:44:30 +00:00
sydadams
1fd7c79eea removed testing nasal file... 2008-05-03 16:05:19 +00:00
sydadams
05e0e19087 Added runway offsets and other minor changes 2008-05-03 02:47:34 +00:00
mfranz
1d9d38e929 add paths and runway parameter defaults, so that people are aware of the
possibilities
2008-05-02 21:47:53 +00:00
mfranz
2f8b4b02ac add unit suffixes -nm and -deg to /sim/presets/offset-{distance,azimuth} 2008-05-01 21:29:39 +00:00
mfranz
cd31d19946 add unit suffixes -nm and -deg to /sim/presets/offset-{distance,azimuth} 2008-05-01 21:15:40 +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
4be84e1609 use more sophisticated screenshot binding from $FG_ROOT/keyboard.xml 2008-04-26 23:14:42 +00:00
mfranz
e603302d8d use fgcommand("screen-capture") return value to show error message 2008-04-26 22:36:04 +00:00