From 482964d8adc697493de3299d17ec06369c6f2aca Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Mon, 7 Mar 2016 20:37:14 -0800 Subject: [PATCH] hide this for now --- examples/edit.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/edit.js b/examples/edit.js index 59e1f74d20..bc0665213e 100644 --- a/examples/edit.js +++ b/examples/edit.js @@ -89,6 +89,9 @@ var SETTING_EASE_ON_FOCUS = "cameraEaseOnFocus"; var SETTING_SHOW_LIGHTS_IN_EDIT_MODE = "showLightsInEditMode"; 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_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) { var result = findClickedEntity(event); if (result) { + if (SHOULD_SHOW_PROPERTY_MENU !== true) { + return; + } var properties = Entities.getEntityProperties(result.entityID); if (properties.marketplaceID) { propertyMenu.marketplaceID = properties.marketplaceID; @@ -1895,9 +1901,11 @@ PopupMenu = function() { return this; }; + var propertyMenu = PopupMenu(); propertyMenu.onSelectMenuItem = function(name) { + if (propertyMenu.marketplaceID) { showMarketplace(propertyMenu.marketplaceID); }