Henning Stahlke
148328d793
Nasal loadpriority; remove nasal-dir-initialized listeners;
...
add more dependencies to loadpriority.xml and remove _setlistener stuff
2020-06-03 21:57:14 +01:00
jano
c982d3e333
added a page with the unit toggle, to display lag statistics, to help diagnose and address lag issues
2020-01-14 11:58:26 +01:00
Julian Smith
3302620745
Nasal/multiplayer.nas: Make sure we update view if /sim/current-view/model-view is changed.
2019-10-25 21:03:36 +01:00
Julian Smith
2d8ec16afc
Nasal/multiplayer.nas: improved font handling in Pilot List dialog.
...
It looks like widgets don't inherit font or colour from parent widgets. Also,
setting font=nil gives sublety different results compared to leaving font
unspecified.
So we now set font and colour explicitly for every widget using new function
set_default().
Also set font and colour of 'Pilots:' widgets and heading widget to me.fg[1] to
match other text.
2019-08-29 00:11:51 +01:00
Julian Smith
0f741b16fe
Nasal/multiplayer.nas: disable 'no model installed' messages.
2019-08-29 00:11:51 +01:00
Julian Smith
c4d71f06e0
Nasal/multiplayer.nas: remove hard-coded default font params.
...
These are unnecessary because we use gui/styles/*. This also allows an empty
style to be specified, where we inherit from system-wide defaults.
2019-08-29 00:11:51 +01:00
Julian Smith
ff503c1093
Nasal/multiplayer.nas: in Pilot List, append +/- to altitude if ascending or descending.
2019-08-12 18:02:02 +01:00
Julian Smith
4e94cdc906
Nasal/multiplayer.nas: in Pilot List, added column showing id of nearest airport.
...
Requires changes to flightgear to populate
/ai/models/multiplayer[]/sim/tower/airport-id.
2019-08-11 13:22:59 +01:00
Julian Smith
f61b097eb3
Nasal/multiplayer.nas: In Pilots list, use only one colour (white) for pilots for whom we have a model.
...
I think the previous alternating colours were confusing because of the use of
a third and fourth colour for when we have no model or are using a fallback
model.
2019-07-09 16:25:11 +01:00
Julian Smith
e2df25343a
Nasal/multiplayer.nas: reordered columns in Pilot List window.
...
Moved 'code', 'ver' and 'set' away to the right, as i think they are less
important. Also demoted 'brg' a little and promoted 'dist-'.
2019-07-09 16:25:11 +01:00
Julian Smith
47415e20ce
Pilot List dialogue now allows control of which aircraft to view.
...
I think this is more convenient than the normal model-view buttons / popup
list. [Though this is still there.]
Nasal/multiplayer.nas:
Added new column 'view' with checkbox. Also added 'view self' button to
titlebar to view the user's aircraft.
Fix some bad indentation.
Nasal/view.nas:
Changed /sim/current-view/model-view to contain just the callsign, not
'<callsign> <model>', so that Nasal/multiplayer.nas can get the callsign
reliably.
2019-07-09 16:25:11 +01:00
Julian Smith
56859113b2
Nasal/multiplayer.nas: added column showing whether we've found and loaded -set.xml for each multiplayer.
...
This determines whether multiplayer views work correctly - these require
correct view offsets from the -set.xml files.
2019-07-09 16:25:11 +01:00
Richard Harrison
c98c299625
Multiplayer list:
...
Change model that has a fallback model to be green rather than orange.
2018-11-05 19:52:41 +01:00
Tobias Dammers
054da4e691
Fix: chat messages from MP list captured kbd forever
2018-03-19 09:47:16 +00:00
Richard Harrison
08fd851489
Theme rework.
...
Change fonts; make use of the new feature to allow fonts to be specified using property from dialog xml.
Ensure that all fonts are defined within the style.
2017-11-12 16:57:39 +01:00
Richard Harrison
5ca84cbfdf
Revised classic theme to make it use better fonts and colours.
2017-09-18 00:48:20 +02:00
Richard Harrison
434d4fde90
Multiplayer chat : possibly fix the popup dialog getting stuck.
2017-09-18 00:45:15 +02:00
James Turner
84fa01a6d8
Hint to the user when we adjust on-runway start.
...
Still deciding if this is needed or in the right place, but
adding as an experiment, can be reverted if people don’t
like it.
2016-07-17 21:54:33 +01:00
mhab
1d9ff30420
Close dialogs with Esc-key
2013-12-02 21:32:05 +01:00
Vivian Meazza
d2b384ffad
Add ID code to pilot list
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2013-05-14 17:16:06 +01:00
ThorstenB
fad306d364
#877 : MP chat sometimes not working
2012-09-16 14:00:40 +02:00
Markus Pargmann
b67a848bfc
pilot list direct chat button
...
This is a new button in the pilot list, left of the callsign. It's
binded to multiplayer.compose_message("<CALLSIGN>, ");
Signed-off-by: Anders Gidenstam <anders@gidenstam.org>
2012-06-16 18:38:45 +02:00
ThorstenB
06f910c0f6
#611 : write-message-log nasal error
...
Also fix issues when disconnecting/reconnecting MP at run-time.
2012-01-22 12:42:57 +01:00
ThorstenB
a195da8676
Stop message loop when disconnecting MP server
...
Also update status of menu items.
2012-01-07 16:17:02 +01:00
Stuart Buchanan
0d9d60eca7
Fix MP chat to work when MP not enabled from the command line.
2012-01-04 22:54:21 +00:00
ThorstenB
1f1c752316
Improve multiplayer chat, stop sending expired messages.
...
Only transmit messages for a few seconds instead of forever.
Also remove two obsolete variables.
2011-04-02 11:41:32 +02: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
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
Stuart Buchanan
7ee83e19df
Modify chat key handler, so excessive backspaces doesn't enable the autopilot.
2010-09-27 21:13:30 +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
fee08cca57
Initial check-in of MP groups function
2010-06-18 21:13:47 +01:00
Stuart Buchanan
b53c16db1d
Update pilot list to use ignore property for AI objects
2010-05-21 22:09:38 +01: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
torsten
24204e2e75
don't ignore the latest multiplayer pilot
2009-09-05 20:22:14 +00:00
mfranz
ecd8c1b71f
make model-not-installed message a little less noisy
2009-03-23 21:24:41 +00:00
mfranz
2618b98b88
model: simplification using the new values() function
2009-02-16 23:35:54 +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
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
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
afe8de52ab
- faster sorting
...
- update loop fix
2009-02-01 01:58:15 +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
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