mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
Fixed silly bugs with /who response and drawing lines to identify avatars. DOH!
This commit is contained in:
parent
a9c1e2781e
commit
c6eb1aa4e8
1 changed files with 7 additions and 10 deletions
|
@ -47,11 +47,9 @@
|
||||||
// Load the persistent variables from the Settings, with defaults.
|
// Load the persistent variables from the Settings, with defaults.
|
||||||
function loadSettings() {
|
function loadSettings() {
|
||||||
chatName = Settings.getValue('Chat_chatName', MyAvatar.displayName);
|
chatName = Settings.getValue('Chat_chatName', MyAvatar.displayName);
|
||||||
print("loadSettings: chatName", chatName);
|
|
||||||
if (!chatName) {
|
if (!chatName) {
|
||||||
chatName = randomAvatarName();
|
chatName = randomAvatarName();
|
||||||
}
|
}
|
||||||
print("loadSettings: now chatName", chatName);
|
|
||||||
chatLogMaxSize = Settings.getValue('Chat_chatLogMaxSize', 100);
|
chatLogMaxSize = Settings.getValue('Chat_chatLogMaxSize', 100);
|
||||||
sendTyping = Settings.getValue('Chat_sendTyping', true);
|
sendTyping = Settings.getValue('Chat_sendTyping', true);
|
||||||
identifyAvatarDuration = Settings.getValue('Chat_identifyAvatarDuration', 10);
|
identifyAvatarDuration = Settings.getValue('Chat_identifyAvatarDuration', 10);
|
||||||
|
@ -71,7 +69,6 @@
|
||||||
// Save the persistent variables to the Settings.
|
// Save the persistent variables to the Settings.
|
||||||
function saveSettings() {
|
function saveSettings() {
|
||||||
Settings.setValue('Chat_chatName', chatName);
|
Settings.setValue('Chat_chatName', chatName);
|
||||||
print("saveSettings: chatName", chatName, "or", Settings.getValue('Chat_chatName', 'xxx'));
|
|
||||||
Settings.setValue('Chat_chatLogMaxSize', chatLogMaxSize);
|
Settings.setValue('Chat_chatLogMaxSize', chatLogMaxSize);
|
||||||
Settings.setValue('Chat_sendTyping', sendTyping);
|
Settings.setValue('Chat_sendTyping', sendTyping);
|
||||||
Settings.setValue('Chat_identifyAvatarDuration', identifyAvatarDuration);
|
Settings.setValue('Chat_identifyAvatarDuration', identifyAvatarDuration);
|
||||||
|
@ -195,7 +192,7 @@
|
||||||
|
|
||||||
// Notification that somebody started typing.
|
// Notification that somebody started typing.
|
||||||
function handleAvatarBeginTyping(avatarID, displayName) {
|
function handleAvatarBeginTyping(avatarID, displayName) {
|
||||||
print("handleAvatarBeginTyping:", "avatarID", avatarID, displayName);
|
//print("handleAvatarBeginTyping:", "avatarID", avatarID, displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notification that we stopped typing.
|
// Notification that we stopped typing.
|
||||||
|
@ -217,7 +214,7 @@
|
||||||
|
|
||||||
// Notification that somebody stopped typing.
|
// Notification that somebody stopped typing.
|
||||||
function handleAvatarEndTyping(avatarID, displayName) {
|
function handleAvatarEndTyping(avatarID, displayName) {
|
||||||
print("handleAvatarEndTyping:", "avatarID", avatarID, displayName);
|
//print("handleAvatarEndTyping:", "avatarID", avatarID, displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identify an avatar by drawing a line from our head to their head.
|
// Identify an avatar by drawing a line from our head to their head.
|
||||||
|
@ -280,7 +277,7 @@
|
||||||
var identifierParams = {
|
var identifierParams = {
|
||||||
parentID: myAvatarID,
|
parentID: myAvatarID,
|
||||||
parentJointIndex: myJointIndex,
|
parentJointIndex: myJointIndex,
|
||||||
lifetime: identityAvatarDuration,
|
lifetime: identifyAvatarDuration,
|
||||||
start: myJointPosition,
|
start: myJointPosition,
|
||||||
endParentID: yourAvatarID,
|
endParentID: yourAvatarID,
|
||||||
endParentJointIndex: yourJointIndex,
|
endParentJointIndex: yourJointIndex,
|
||||||
|
@ -438,7 +435,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
receiveChatMessageTablet(avatarID, displayName, message, data);
|
handleTransmitChatMessage(avatarID, displayName, message, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle input form the user, possibly multiple lines separated by newlines.
|
// Handle input form the user, possibly multiple lines separated by newlines.
|
||||||
|
@ -646,7 +643,7 @@
|
||||||
Overlays.deleteOverlay(speechBubbleTextOverlayID);
|
Overlays.deleteOverlay(speechBubbleTextOverlayID);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
print("updateSpeechBubble:", "speechBubbleMessage", speechBubbleMessage, "textSize", textSize.width, textSize.height);
|
//print("updateSpeechBubble:", "speechBubbleMessage", speechBubbleMessage, "textSize", textSize.width, textSize.height);
|
||||||
|
|
||||||
var fudge = 0.02;
|
var fudge = 0.02;
|
||||||
var width = textSize.width + fudge;
|
var width = textSize.width + fudge;
|
||||||
|
@ -685,7 +682,7 @@
|
||||||
Entities.editEntity(speechBubbleTextID, speechBubbleParams);
|
Entities.editEntity(speechBubbleTextID, speechBubbleParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
print("speechBubbleTextID:", speechBubbleTextID, "speechBubbleParams", JSON.stringify(speechBubbleParams));
|
//print("speechBubbleTextID:", speechBubbleTextID, "speechBubbleParams", JSON.stringify(speechBubbleParams));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the speech bubble.
|
// Hide the speech bubble.
|
||||||
|
@ -694,7 +691,7 @@
|
||||||
|
|
||||||
speechBubbleShowing = false;
|
speechBubbleShowing = false;
|
||||||
|
|
||||||
print("popDownSpeechBubble speechBubbleTextID", speechBubbleTextID);
|
//print("popDownSpeechBubble speechBubbleTextID", speechBubbleTextID);
|
||||||
|
|
||||||
if (speechBubbleTextID) {
|
if (speechBubbleTextID) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue