mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
Merge pull request #7273 from imgntn/nomarketplaceinfo
DIsable Right Click Marketplace Info for now from edit.js
This commit is contained in:
commit
9db528d7a3
1 changed files with 8 additions and 0 deletions
|
@ -89,6 +89,9 @@ var SETTING_EASE_ON_FOCUS = "cameraEaseOnFocus";
|
||||||
var SETTING_SHOW_LIGHTS_IN_EDIT_MODE = "showLightsInEditMode";
|
var SETTING_SHOW_LIGHTS_IN_EDIT_MODE = "showLightsInEditMode";
|
||||||
var SETTING_SHOW_ZONES_IN_EDIT_MODE = "showZonesInEditMode";
|
var SETTING_SHOW_ZONES_IN_EDIT_MODE = "showZonesInEditMode";
|
||||||
|
|
||||||
|
|
||||||
|
// marketplace info, etc. not quite ready yet.
|
||||||
|
var SHOULD_SHOW_PROPERTY_MENU = false;
|
||||||
var INSUFFICIENT_PERMISSIONS_ERROR_MSG = "You do not have the necessary permissions to edit on this domain."
|
var INSUFFICIENT_PERMISSIONS_ERROR_MSG = "You do not have the necessary permissions to edit on this domain."
|
||||||
var INSUFFICIENT_PERMISSIONS_IMPORT_ERROR_MSG = "You do not have the necessary permissions to place items on this domain."
|
var INSUFFICIENT_PERMISSIONS_IMPORT_ERROR_MSG = "You do not have the necessary permissions to place items on this domain."
|
||||||
|
|
||||||
|
@ -1022,6 +1025,9 @@ function mouseClickEvent(event) {
|
||||||
} else if (event.isRightButton) {
|
} else if (event.isRightButton) {
|
||||||
var result = findClickedEntity(event);
|
var result = findClickedEntity(event);
|
||||||
if (result) {
|
if (result) {
|
||||||
|
if (SHOULD_SHOW_PROPERTY_MENU !== true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var properties = Entities.getEntityProperties(result.entityID);
|
var properties = Entities.getEntityProperties(result.entityID);
|
||||||
if (properties.marketplaceID) {
|
if (properties.marketplaceID) {
|
||||||
propertyMenu.marketplaceID = properties.marketplaceID;
|
propertyMenu.marketplaceID = properties.marketplaceID;
|
||||||
|
@ -1895,9 +1901,11 @@ PopupMenu = function() {
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var propertyMenu = PopupMenu();
|
var propertyMenu = PopupMenu();
|
||||||
|
|
||||||
propertyMenu.onSelectMenuItem = function(name) {
|
propertyMenu.onSelectMenuItem = function(name) {
|
||||||
|
|
||||||
if (propertyMenu.marketplaceID) {
|
if (propertyMenu.marketplaceID) {
|
||||||
showMarketplace(propertyMenu.marketplaceID);
|
showMarketplace(propertyMenu.marketplaceID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue