mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 22:42:31 +02:00
added flag for flying
This commit is contained in:
parent
f6f3c67b1c
commit
d32438586a
1 changed files with 15 additions and 1 deletions
|
@ -16,11 +16,13 @@
|
|||
// *************************************
|
||||
// #region dependencies
|
||||
|
||||
|
||||
// The information needed to properly use the sprite sheets and get the general information
|
||||
// about the emojis
|
||||
var emojiList = Script.require("./emojiApp/resources/modules/emojiList.js");
|
||||
var customEmojiList = Script.require("./emojiApp/resources/modules/customEmojiList.js");
|
||||
|
||||
|
||||
// #endregion
|
||||
// *************************************
|
||||
// END dependencies
|
||||
|
@ -181,6 +183,7 @@ function maybeClearClapSoundInterval() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// URLs for this fn are relative to SimplifiedEmoteIndicator.qml
|
||||
function toggleReaction(reaction) {
|
||||
var reactionEnding = reactionsBegun.indexOf(reaction) > -1;
|
||||
|
@ -192,6 +195,7 @@ function toggleReaction(reaction) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function maybeDeleteRemoteIndicatorTimeout() {
|
||||
if (restoreEmoteIndicatorTimeout) {
|
||||
Script.clearTimeout(restoreEmoteIndicatorTimeout);
|
||||
|
@ -199,6 +203,7 @@ function maybeDeleteRemoteIndicatorTimeout() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
var reactionsBegun = [];
|
||||
var pointReticle = null;
|
||||
var mouseMoveEventsConnected = false;
|
||||
|
@ -229,6 +234,7 @@ function beginReactionWrapper(reaction) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Checks to see if there are any reticle entities already to delete
|
||||
function deleteOldReticles() {
|
||||
MyAvatar.getAvatarEntitiesVariant()
|
||||
|
@ -313,6 +319,7 @@ function triggerReactionWrapper(reaction) {
|
|||
}, WAIT_TO_RESTORE_EMOTE_INDICATOR_ICON_MS);
|
||||
}
|
||||
|
||||
|
||||
function maybeClearReticleUpdateLimiterTimeout() {
|
||||
if (reticleUpdateRateLimiterTimer) {
|
||||
Script.clearTimeout(reticleUpdateRateLimiterTimer);
|
||||
|
@ -393,6 +400,7 @@ function onMessageFromEmoteAppBar(message) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function getEmojiURLFromCode(code) {
|
||||
var emojiObject = emojiList[emojiCodeMap[code]];
|
||||
var emojiFilename;
|
||||
|
@ -405,6 +413,7 @@ function getEmojiURLFromCode(code) {
|
|||
return "../../emojiApp/resources/images/emojis/52px/" + emojiFilename;
|
||||
}
|
||||
|
||||
|
||||
function updateEmoteIndicatorIcon(iconURL) {
|
||||
emoteAppBarWindow.sendToQml({
|
||||
"source": "simplifiedEmote.js",
|
||||
|
@ -451,7 +460,10 @@ function keyPressHandler(event) {
|
|||
} else if (event.text === RAISE_HAND_KEY) {
|
||||
toggleReaction("raiseHand");
|
||||
} else if (event.text === APPLAUD_KEY) {
|
||||
toggleReaction("applaud");
|
||||
// Make sure this doesn't get triggered if you are flying, falling, or jumping
|
||||
if (!MyAvatar.isInAir()) {
|
||||
toggleReaction("applaud");
|
||||
}
|
||||
} else if (event.text === POINT_KEY) {
|
||||
toggleReaction("point");
|
||||
} else if (event.text === EMOTE_WINDOW && !(Settings.getValue("io.highfidelity.isEditing", false))) {
|
||||
|
@ -639,6 +651,7 @@ function unload() {
|
|||
// *************************************
|
||||
// #region EMOJI_UTILITY
|
||||
|
||||
|
||||
var EMOJI_52_BASE_URL = "../../resources/images/emojis/52px/";
|
||||
function selectedEmoji(code) {
|
||||
emojiAPI.addEmoji(code);
|
||||
|
@ -744,6 +757,7 @@ function toggleEmojiApp() {
|
|||
emojiAPI.registerAvimojiQMLWindow(emojiAppWindow);
|
||||
}
|
||||
|
||||
|
||||
// #endregion
|
||||
// *************************************
|
||||
// END EMOJI_MAIN
|
||||
|
|
Loading…
Reference in a new issue