mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 09:43:51 +02:00
re add local paths
This commit is contained in:
parent
aafed4e1b8
commit
e68909ce3e
1 changed files with 30 additions and 17 deletions
|
@ -50,7 +50,7 @@ selectionManager.addEventListener(function() {
|
||||||
lightOverlayManager.updatePositions();
|
lightOverlayManager.updatePositions();
|
||||||
});
|
});
|
||||||
|
|
||||||
var toolIconUrl = HIFI_PUBLIC_BUCKET + "images/tools/";
|
var toolIconUrl = Script.resolvePath("assets/images/tools/");
|
||||||
var toolHeight = 50;
|
var toolHeight = 50;
|
||||||
var toolWidth = 50;
|
var toolWidth = 50;
|
||||||
var TOOLBAR_MARGIN_Y = 25;
|
var TOOLBAR_MARGIN_Y = 25;
|
||||||
|
@ -106,7 +106,7 @@ IMPORTING_SVO_OVERLAY_HEIGHT = 30;
|
||||||
IMPORTING_SVO_OVERLAY_MARGIN = 5;
|
IMPORTING_SVO_OVERLAY_MARGIN = 5;
|
||||||
IMPORTING_SVO_OVERLAY_LEFT_MARGIN = 34;
|
IMPORTING_SVO_OVERLAY_LEFT_MARGIN = 34;
|
||||||
var importingSVOImageOverlay = Overlays.addOverlay("image", {
|
var importingSVOImageOverlay = Overlays.addOverlay("image", {
|
||||||
imageURL: HIFI_PUBLIC_BUCKET + "images/hourglass.svg",
|
imageURL: Script.resolvePath("assets") + "/images/hourglass.svg",
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
alpha: 1.0,
|
alpha: 1.0,
|
||||||
|
@ -336,7 +336,9 @@ var toolBar = (function() {
|
||||||
if (active && !Entities.canAdjustLocks()) {
|
if (active && !Entities.canAdjustLocks()) {
|
||||||
Window.alert(INSUFFICIENT_PERMISSIONS_ERROR_MSG);
|
Window.alert(INSUFFICIENT_PERMISSIONS_ERROR_MSG);
|
||||||
} else {
|
} else {
|
||||||
Messages.sendLocalMessage("edit-events", JSON.stringify({enabled: active}));
|
Messages.sendLocalMessage("edit-events", JSON.stringify({
|
||||||
|
enabled: active
|
||||||
|
}));
|
||||||
isActive = active;
|
isActive = active;
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
entityListTool.setVisible(false);
|
entityListTool.setVisible(false);
|
||||||
|
@ -549,8 +551,16 @@ var toolBar = (function() {
|
||||||
type: "ParticleEffect",
|
type: "ParticleEffect",
|
||||||
isEmitting: true,
|
isEmitting: true,
|
||||||
particleRadius: 0.1,
|
particleRadius: 0.1,
|
||||||
emitAcceleration: {x: 0, y: -1, z: 0},
|
emitAcceleration: {
|
||||||
accelerationSpread: {x: 5, y: 0, z: 5},
|
x: 0,
|
||||||
|
y: -1,
|
||||||
|
z: 0
|
||||||
|
},
|
||||||
|
accelerationSpread: {
|
||||||
|
x: 5,
|
||||||
|
y: 0,
|
||||||
|
z: 5
|
||||||
|
},
|
||||||
emitSpeed: 1,
|
emitSpeed: 1,
|
||||||
lifespan: 1,
|
lifespan: 1,
|
||||||
particleRadius: 0.025,
|
particleRadius: 0.025,
|
||||||
|
@ -1207,7 +1217,9 @@ function toggleSelectedEntitiesLocked() {
|
||||||
var locked = !Entities.getEntityProperties(SelectionManager.selections[0], ["locked"]).locked;
|
var locked = !Entities.getEntityProperties(SelectionManager.selections[0], ["locked"]).locked;
|
||||||
for (var i = 0; i < selectionManager.selections.length; i++) {
|
for (var i = 0; i < selectionManager.selections.length; i++) {
|
||||||
var entityID = SelectionManager.selections[i];
|
var entityID = SelectionManager.selections[i];
|
||||||
Entities.editEntity(entityID, { locked: locked });
|
Entities.editEntity(entityID, {
|
||||||
|
locked: locked
|
||||||
|
});
|
||||||
}
|
}
|
||||||
entityListTool.sendUpdate();
|
entityListTool.sendUpdate();
|
||||||
selectionManager._update();
|
selectionManager._update();
|
||||||
|
@ -1219,7 +1231,9 @@ function toggleSelectedEntitiesVisible() {
|
||||||
var visible = !Entities.getEntityProperties(SelectionManager.selections[0], ["visible"]).visible;
|
var visible = !Entities.getEntityProperties(SelectionManager.selections[0], ["visible"]).visible;
|
||||||
for (var i = 0; i < selectionManager.selections.length; i++) {
|
for (var i = 0; i < selectionManager.selections.length; i++) {
|
||||||
var entityID = SelectionManager.selections[i];
|
var entityID = SelectionManager.selections[i];
|
||||||
Entities.editEntity(entityID, { visible: visible });
|
Entities.editEntity(entityID, {
|
||||||
|
visible: visible
|
||||||
|
});
|
||||||
}
|
}
|
||||||
entityListTool.sendUpdate();
|
entityListTool.sendUpdate();
|
||||||
selectionManager._update();
|
selectionManager._update();
|
||||||
|
@ -1554,8 +1568,7 @@ PropertiesTool = function(opts) {
|
||||||
data.properties.keyLight.direction.x * DEGREES_TO_RADIANS, data.properties.keyLight.direction.y * DEGREES_TO_RADIANS);
|
data.properties.keyLight.direction.x * DEGREES_TO_RADIANS, data.properties.keyLight.direction.y * DEGREES_TO_RADIANS);
|
||||||
}
|
}
|
||||||
Entities.editEntity(selectionManager.selections[0], data.properties);
|
Entities.editEntity(selectionManager.selections[0], data.properties);
|
||||||
if (data.properties.name !== undefined || data.properties.modelURL !== undefined
|
if (data.properties.name !== undefined || data.properties.modelURL !== undefined || data.properties.visible !== undefined || data.properties.locked !== undefined) {
|
||||||
|| data.properties.visible !== undefined || data.properties.locked !== undefined) {
|
|
||||||
entityListTool.sendUpdate();
|
entityListTool.sendUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue