mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
Remove voxels button from edit.js toolbar
This commit is contained in:
parent
5d08f6f5a2
commit
3991c984a8
1 changed files with 0 additions and 102 deletions
102
examples/edit.js
102
examples/edit.js
|
@ -180,7 +180,6 @@ var toolBar = (function() {
|
||||||
newTextButton,
|
newTextButton,
|
||||||
newWebButton,
|
newWebButton,
|
||||||
newZoneButton,
|
newZoneButton,
|
||||||
newPolyVoxButton,
|
|
||||||
newParticleButton
|
newParticleButton
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
|
@ -305,20 +304,6 @@ var toolBar = (function() {
|
||||||
visible: false
|
visible: false
|
||||||
});
|
});
|
||||||
|
|
||||||
newPolyVoxButton = toolBar.addTool({
|
|
||||||
imageURL: toolIconUrl + "polyvox.svg",
|
|
||||||
subImage: {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
width: 256,
|
|
||||||
height: 256
|
|
||||||
},
|
|
||||||
width: toolWidth,
|
|
||||||
height: toolHeight,
|
|
||||||
alpha: 0.9,
|
|
||||||
visible: false
|
|
||||||
});
|
|
||||||
|
|
||||||
newParticleButton = toolBar.addTool({
|
newParticleButton = toolBar.addTool({
|
||||||
imageURL: toolIconUrl + "particle.svg",
|
imageURL: toolIconUrl + "particle.svg",
|
||||||
subImage: {
|
subImage: {
|
||||||
|
@ -379,7 +364,6 @@ var toolBar = (function() {
|
||||||
toolBar.showTool(newTextButton, doShow);
|
toolBar.showTool(newTextButton, doShow);
|
||||||
toolBar.showTool(newWebButton, doShow);
|
toolBar.showTool(newWebButton, doShow);
|
||||||
toolBar.showTool(newZoneButton, doShow);
|
toolBar.showTool(newZoneButton, doShow);
|
||||||
toolBar.showTool(newPolyVoxButton, doShow);
|
|
||||||
toolBar.showTool(newParticleButton, doShow);
|
toolBar.showTool(newParticleButton, doShow);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -551,92 +535,6 @@ var toolBar = (function() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newPolyVoxButton === toolBar.clicked(clickedOverlay)) {
|
|
||||||
var polyVoxId = createNewEntity({
|
|
||||||
type: "PolyVox",
|
|
||||||
dimensions: {
|
|
||||||
x: 10,
|
|
||||||
y: 10,
|
|
||||||
z: 10
|
|
||||||
},
|
|
||||||
voxelVolumeSize: {
|
|
||||||
x: 16,
|
|
||||||
y: 16,
|
|
||||||
z: 16
|
|
||||||
},
|
|
||||||
voxelSurfaceStyle: 2
|
|
||||||
});
|
|
||||||
for (var x = 1; x <= 14; x++) {
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: x,
|
|
||||||
y: 1,
|
|
||||||
z: 1
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: x,
|
|
||||||
y: 14,
|
|
||||||
z: 1
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: x,
|
|
||||||
y: 1,
|
|
||||||
z: 14
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: x,
|
|
||||||
y: 14,
|
|
||||||
z: 14
|
|
||||||
}, 255);
|
|
||||||
}
|
|
||||||
for (var y = 2; y <= 13; y++) {
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 1,
|
|
||||||
y: y,
|
|
||||||
z: 1
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 14,
|
|
||||||
y: y,
|
|
||||||
z: 1
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 1,
|
|
||||||
y: y,
|
|
||||||
z: 14
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 14,
|
|
||||||
y: y,
|
|
||||||
z: 14
|
|
||||||
}, 255);
|
|
||||||
}
|
|
||||||
for (var z = 2; z <= 13; z++) {
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 1,
|
|
||||||
y: 1,
|
|
||||||
z: z
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 14,
|
|
||||||
y: 1,
|
|
||||||
z: z
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 1,
|
|
||||||
y: 14,
|
|
||||||
z: z
|
|
||||||
}, 255);
|
|
||||||
Entities.setVoxel(polyVoxId, {
|
|
||||||
x: 14,
|
|
||||||
y: 14,
|
|
||||||
z: z
|
|
||||||
}, 255);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (newParticleButton === toolBar.clicked(clickedOverlay)) {
|
if (newParticleButton === toolBar.clicked(clickedOverlay)) {
|
||||||
createNewEntity({
|
createNewEntity({
|
||||||
type: "ParticleEffect",
|
type: "ParticleEffect",
|
||||||
|
|
Loading…
Reference in a new issue