Merge pull request #448 from kasenvr/v2020.2.1-rc

Merge 2020.2.1 into master
This commit is contained in:
kasenvr 2020-06-13 16:28:25 -04:00 committed by GitHub
commit f68810f766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 63 additions and 26 deletions

View file

@ -81,7 +81,9 @@ FocusScope {
Image { Image {
id: banner id: banner
anchors.centerIn: parent anchors.centerIn: parent
source: "../images/high-fidelity-banner.svg" sourceSize.width: 500
sourceSize.height: 91
source: "../images/vircadia-logo.svg"
horizontalAlignment: Image.AlignHCenter horizontalAlignment: Image.AlignHCenter
} }
} }

View file

@ -109,7 +109,7 @@ SpinBox {
id: spinboxText id: spinboxText
z: 2 z: 2
color: isLightColorScheme color: isLightColorScheme
? (spinBox.activeFocus ? hifi.colors.black : hifi.colors.faintGray) ? (spinBox.activeFocus ? hifi.colors.black : hifi.colors.baseGrayHighlight)
: (spinBox.activeFocus ? hifi.colors.white : hifi.colors.lightGrayText) : (spinBox.activeFocus ? hifi.colors.white : hifi.colors.lightGrayText)
selectedTextColor: hifi.colors.black selectedTextColor: hifi.colors.black
selectionColor: hifi.colors.primaryHighlight selectionColor: hifi.colors.primaryHighlight
@ -130,7 +130,7 @@ SpinBox {
} }
color: isLightColorScheme color: isLightColorScheme
? (spinBox.activeFocus ? hifi.colors.black : hifi.colors.faintGray) ? (spinBox.activeFocus ? hifi.colors.black : hifi.colors.baseGrayHighlight)
: (spinBox.activeFocus ? hifi.colors.white : hifi.colors.lightGrayText) : (spinBox.activeFocus ? hifi.colors.white : hifi.colors.lightGrayText)
text: suffix text: suffix
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter

View file

@ -403,7 +403,6 @@ Rectangle {
Vector3 { Vector3 {
id: positionVector id: positionVector
backgroundColor: "lightgray"
enabled: getCurrentWearable() !== null enabled: getCurrentWearable() !== null
function set(localPosition) { function set(localPosition) {
@ -463,7 +462,6 @@ Rectangle {
Vector3 { Vector3 {
id: rotationVector id: rotationVector
backgroundColor: "lightgray"
enabled: getCurrentWearable() !== null enabled: getCurrentWearable() !== null
function set(localRotationAngles) { function set(localRotationAngles) {
@ -550,7 +548,7 @@ Rectangle {
realFrom: 0.1 realFrom: 0.1
realTo: 3.0 realTo: 3.0
realValue: 1.0 realValue: 1.0
backgroundColor: "lightgray" backgroundColor: activeFocus ? "white" : "lightgray"
width: positionVector.spinboxWidth width: positionVector.spinboxWidth
colorScheme: hifi.colorSchemes.light colorScheme: hifi.colorSchemes.light

View file

@ -29,7 +29,7 @@ Row {
id: xspinner id: xspinner
width: parent.spinboxWidth width: parent.spinboxWidth
labelInside: "X:" labelInside: "X:"
backgroundColor: parent.backgroundColor backgroundColor: activeFocus ? "white" : "lightgray"
colorLabelInside: hifi.colors.redHighlight colorLabelInside: hifi.colors.redHighlight
colorScheme: hifi.colorSchemes.light colorScheme: hifi.colorSchemes.light
decimals: root.decimals; decimals: root.decimals;
@ -43,7 +43,7 @@ Row {
id: yspinner id: yspinner
width: parent.spinboxWidth width: parent.spinboxWidth
labelInside: "Y:" labelInside: "Y:"
backgroundColor: parent.backgroundColor backgroundColor: activeFocus ? "white" : "lightgray"
colorLabelInside: hifi.colors.greenHighlight colorLabelInside: hifi.colors.greenHighlight
colorScheme: hifi.colorSchemes.light colorScheme: hifi.colorSchemes.light
decimals: root.decimals; decimals: root.decimals;
@ -57,7 +57,7 @@ Row {
id: zspinner id: zspinner
width: parent.spinboxWidth width: parent.spinboxWidth
labelInside: "Z:" labelInside: "Z:"
backgroundColor: parent.backgroundColor backgroundColor: activeFocus ? "white" : "lightgray"
colorLabelInside: hifi.colors.primaryHighlight colorLabelInside: hifi.colors.primaryHighlight
colorScheme: hifi.colorSchemes.light colorScheme: hifi.colorSchemes.light
decimals: root.decimals; decimals: root.decimals;

View file

@ -614,13 +614,13 @@ Menu::Menu() {
addCheckableActionToQMenuAndActionHash(networkMenu, addCheckableActionToQMenuAndActionHash(networkMenu,
MenuOption::DisableActivityLogger, MenuOption::DisableActivityLogger,
0, 0,
false, true,
&UserActivityLogger::getInstance(), &UserActivityLogger::getInstance(),
SLOT(disable(bool))); SLOT(disable(bool)));
addCheckableActionToQMenuAndActionHash(networkMenu, addCheckableActionToQMenuAndActionHash(networkMenu,
MenuOption::DisableCrashLogger, MenuOption::DisableCrashLogger,
0, 0,
false, true,
&UserActivityLogger::getInstance(), &UserActivityLogger::getInstance(),
SLOT(crashMonitorDisable(bool))); SLOT(crashMonitorDisable(bool)));
addActionToQMenuAndActionHash(networkMenu, MenuOption::ShowDSConnectTable, 0, addActionToQMenuAndActionHash(networkMenu, MenuOption::ShowDSConnectTable, 0,

View file

@ -86,7 +86,7 @@ namespace MenuOption {
const QString DeleteAvatarEntitiesBookmark = "Delete Avatar Entities Bookmark"; const QString DeleteAvatarEntitiesBookmark = "Delete Avatar Entities Bookmark";
const QString DeleteBookmark = "Delete Bookmark..."; const QString DeleteBookmark = "Delete Bookmark...";
const QString DisableActivityLogger = "Disable Activity Logger"; const QString DisableActivityLogger = "Disable Activity Logger";
const QString DisableCrashLogger = "Disable Crash Logger"; const QString DisableCrashLogger = "Disable Crash Reporter";
const QString DisableEyelidAdjustment = "Disable Eyelid Adjustment"; const QString DisableEyelidAdjustment = "Disable Eyelid Adjustment";
const QString DisableLightEntities = "Disable Light Entities"; const QString DisableLightEntities = "Disable Light Entities";
const QString DisplayCrashOptions = "Display Crash Options"; const QString DisplayCrashOptions = "Display Crash Options";

View file

@ -987,8 +987,8 @@ void EntityScriptingInterface::deleteEntity(const QUuid& id) {
// Deleting an entity has consequences for linked children: some can be deleted but others can't. // Deleting an entity has consequences for linked children: some can be deleted but others can't.
// Local- and my-avatar-entities can be deleted immediately, but other-avatar-entities can't be deleted // Local- and my-avatar-entities can be deleted immediately, but other-avatar-entities can't be deleted
// by this context, and a domain-entity must rountrip through the entity-server for authorization. // by this context, and a domain-entity must round trip through the entity-server for authorization.
if (entity->isDomainEntity()) { if (entity->isDomainEntity() && !_entityTree->isServerlessMode()) {
getEntityPacketSender()->queueEraseEntityMessage(id); getEntityPacketSender()->queueEraseEntityMessage(id);
} else { } else {
entitiesToDeleteImmediately.push_back(entity); entitiesToDeleteImmediately.push_back(entity);

View file

@ -59,7 +59,7 @@ private slots:
private: private:
UserActivityLogger(); UserActivityLogger();
Setting::Handle<bool> _disabled { "UserActivityLoggerDisabled", true }; Setting::Handle<bool> _disabled { "UserActivityLoggerDisabled", true };
Setting::Handle<bool> _crashMonitorDisabled { "CrashMonitorDisabled", false }; Setting::Handle<bool> _crashMonitorDisabled { "CrashMonitorDisabled2", true };
QElapsedTimer _timer; QElapsedTimer _timer;
}; };

View file

@ -73,6 +73,9 @@
<body onload="retrieveAddressList()"> <body onload="retrieveAddressList()">
<h3>Explore</h3> <h3>Explore</h3>
<button class="myButton" onclick="navigateBack()">< Back</button>
<button class="myButton" onclick="navigateHome()">Home</button>
<button class="myButton" onclick="navigateForward()">Forward ></button>
<input type="text" id="domainAddressInput" placeholder="Type domain address here"> <input type="text" id="domainAddressInput" placeholder="Type domain address here">
@ -85,15 +88,36 @@
<script> <script>
function myDomainAddressInputGoTo() { function myDomainAddressInputGoTo() {
var hifiUrl = document.getElementById("domainAddressInput").value; var vircadiaUrl = document.getElementById("domainAddressInput").value;
if (hifiUrl != "") { if (vircadiaUrl !== "") {
var readyEvent = { var readyEvent = {
"action": "goToUrl", "action": "goToUrl",
"visit": hifiUrl, "visit": vircadiaUrl,
}; };
EventBridge.emitWebEvent(JSON.stringify(readyEvent)); EventBridge.emitWebEvent(JSON.stringify(readyEvent));
} }
} }
function navigateBack() {
var readyEvent = {
"action": "navigateBack"
}
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
}
function navigateHome() {
var readyEvent = {
"action": "navigateHome"
}
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
}
function navigateForward() {
var readyEvent = {
"action": "navigateForward"
}
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
}
function navigateTo(url) { function navigateTo(url) {
var readyEvent = { var readyEvent = {

View file

@ -48,7 +48,7 @@
function onWebEventReceived(event) { function onWebEventReceived(event) {
messageData = JSON.parse(event); messageData = JSON.parse(event);
if (messageData.action == "requestAddressList") { if (messageData.action === "requestAddressList") {
goToAddresses = Settings.getValue("goToDecentral", ""); goToAddresses = Settings.getValue("goToDecentral", "");
for (var i = 0; i < goToAddresses.length; i++) { for (var i = 0; i < goToAddresses.length; i++) {
@ -80,14 +80,27 @@
tablet.emitScriptEvent(JSON.stringify(readyEvent)); tablet.emitScriptEvent(JSON.stringify(readyEvent));
} else if (messageData.action == "goToUrl") { } else if (messageData.action === "goToUrl") {
Window.location = messageData.visit; Window.location = messageData.visit;
} else if (messageData.action == "addLocation") { } else if (messageData.action === "navigateBack") {
location.goBack();
} else if (messageData.action === "navigateHome") {
if (LocationBookmarks.getHomeLocationAddress()) {
location.handleLookupString(LocationBookmarks.getHomeLocationAddress());
} else {
location.goToLocalSandbox();
}
} else if (messageData.action === "navigateForward") {
location.goForward();
} else if (messageData.action === "addLocation") {
var locationBoxUserData = { var locationBoxUserData = {
owner: messageData.owner, owner: messageData.owner,
domainName: messageData.domainName, domainName: messageData.domainName,
port: messageData.Port, port: messageData.Port,
ipAddress: null,
avatarCountRadius: null,
customPath: null,
grabbableKey: { grabbableKey: {
grabbable: false grabbable: false
} }
@ -105,7 +118,7 @@
collisionless: true, collisionless: true,
grabbable: false grabbable: false
}); });
} else if (messageData.action == "retrievePortInformation") { } else if (messageData.action === "retrievePortInformation") {
var readyEvent = { var readyEvent = {
"action": "retrievePortInformationResponse", "action": "retrievePortInformationResponse",
"goToAddresses": goToAddresses "goToAddresses": goToAddresses

View file

@ -23,7 +23,6 @@ var DEFAULT_SCRIPTS_COMBINED = [
"system/pal.js", // "system/mod.js", // older UX, if you prefer "system/pal.js", // "system/mod.js", // older UX, if you prefer
"system/avatarapp.js", "system/avatarapp.js",
"system/makeUserConnection.js", "system/makeUserConnection.js",
"system/tablet-goto.js",
"system/marketplaces/marketplaces.js", "system/marketplaces/marketplaces.js",
"system/notifications.js", "system/notifications.js",
"system/commerce/wallet.js", "system/commerce/wallet.js",
@ -41,7 +40,7 @@ var DEFAULT_SCRIPTS_SEPARATE = [
"system/controllers/controllerScripts.js", "system/controllers/controllerScripts.js",
"communityModules/notificationCore/notificationCore.js", "communityModules/notificationCore/notificationCore.js",
"simplifiedUI/ui/simplifiedNametag/simplifiedNametag.js", "simplifiedUI/ui/simplifiedNametag/simplifiedNametag.js",
{"stable": "system/more/app-more.js", "beta": "https://kasenvr.github.io/community-apps/more/app-more.js"}, {"stable": "system/more/app-more.js", "beta": "https://cdn.vircadia.com/community-apps/more/app-more.js"},
{"stable": "communityScripts/explore/explore.js", "beta": "https://metaverse.vircadia.com/interim/d-goto/app/explore.js"}, {"stable": "communityScripts/explore/explore.js", "beta": "https://metaverse.vircadia.com/interim/d-goto/app/explore.js"},
{"stable": "communityModules/chat/FloofChat.js", "beta": "https://content.fluffy.ws/scripts/chat/FloofChat.js"} {"stable": "communityModules/chat/FloofChat.js", "beta": "https://content.fluffy.ws/scripts/chat/FloofChat.js"}
//"system/chat.js" //"system/chat.js"

View file

@ -123,10 +123,11 @@ function orientationOf(vector) {
} }
function handleRadialMode(dx, dy) { function handleRadialMode(dx, dy) {
var MIN_INSPECT_RADIUS = 0.1;
azimuth += dx / AZIMUTH_RATE; azimuth += dx / AZIMUTH_RATE;
radius += radius * dy * RADIUS_RATE; radius += radius * dy * RADIUS_RATE;
if (radius < 1) { if (radius < MIN_INSPECT_RADIUS) {
radius = 1; radius = MIN_INSPECT_RADIUS;
} }
vector = { vector = {