Library globals

Namespace globals . multiplayer

View source

Multiplayer
===========

1) Display chat messages from other aircraft to
the screen using screen.nas

2) Display a complete history of chat via dialog.

3) Allow chat messages to be written by the user.

Classes

dialog

ignore

lastmsg

model

Autonomous singleton class that monitors multiplayer aircraft, maintains data in various structures, and raises signal "/sim/signals/multiplayer-updated" whenever an aircraft joined or left. Available data containers are: multiplayer.model.data: hash, key := /ai/models/~ path multiplayer.model.callsign hash, key := callsign multiplayer.model.list vector, sorted alphabetically (ASCII, case insensitive) All of them contain hash entries of this form: { callsign: "BiMaus", path: "Aircraft/bo105/Models/bo105.xml", # relative file path root: "/ai/models/multiplayer[4]", # root property node: {...}, # root property as props.Node hash model: "bo105", # model name (extracted from path) sort: "bimaus", # callsign in lower case (for sorting) }

Functions

capture_kbd

chat_listener

check_messages

compose_message

echo_message

end_compose_message

handle_key

mp_mode_changed

my_kbd_listener

release_kbd

timeout_handler

view_select

Variables

PILOTSDLG_RUNNING

multiplayer.dialog.show() -- displays pilot list dialog

input

kbdlistener

log_file

log_listeners

msg_loop_id

msg_timeout

prefix

Message composition function, activated using the - key.