Nasal/view.nas: set new property /sim/current-view/multiplayer to 0 or 1.
Useful to have this information available as a simple property.
This commit is contained in:
parent
48911a8131
commit
7550ff70d9
1 changed files with 2 additions and 0 deletions
|
@ -530,8 +530,10 @@ var model_view_handler_class = {
|
|||
setup: func(data) {
|
||||
if (data.root == '/') {
|
||||
var ident = '[' ~ data.callsign ~ ']';
|
||||
setprop('/sim/current-view/multiplayer', 0);
|
||||
} else {
|
||||
var ident = '"' ~ data.callsign ~ '" (' ~ data.model ~ ')';
|
||||
setprop('/sim/current-view/multiplayer', 1);
|
||||
}
|
||||
|
||||
me.current = data.callsign;
|
||||
|
|
Loading…
Reference in a new issue