Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Context not available. | |||||
var g_ChatTimers = []; | var g_ChatTimers = []; | ||||
/** | /** | ||||
Imarok: [16:17] <elexis> also JSdoc comment for that global | |||||
* Last selected private chat. | |||||
elexisUnsubmitted Not Done Inline Actions+ Command to send to the elexis: + Command to send to the
last -> previously
+ partner | |||||
*/ | |||||
var g_LastChatAddressee = ""; | |||||
elexisUnsubmitted Not Done Inline Actionsspace in newline elexis: space in newline | |||||
/** | |||||
* Handle all netmessage types that can occur. | * Handle all netmessage types that can occur. | ||||
*/ | */ | ||||
var g_NetMessageTypes = { | var g_NetMessageTypes = { | ||||
Context not available. | |||||
if (chatAddressee.selected > 0 && (text.indexOf("/") != 0 || text.indexOf("/me ") == 0)) | if (chatAddressee.selected > 0 && (text.indexOf("/") != 0 || text.indexOf("/me ") == 0)) | ||||
text = chatAddressee.list_data[chatAddressee.selected] + " " + text; | text = chatAddressee.list_data[chatAddressee.selected] + " " + text; | ||||
let selectedChat = chatAddressee.list_data[chatAddressee.selected] | |||||
if (selectedChat.startsWith("/msg")) | |||||
Done Inline ActionsselectedChat.startsWith("/msg") ? elexis: selectedChat.startsWith("/msg") ? | |||||
g_LastChatAddressee = selectedChat; | |||||
submitChatDirectly(text); | submitChatDirectly(text); | ||||
} | } | ||||
Context not available. |
Wildfire Games · Phabricator
[16:17] <elexis> also JSdoc comment for that global