mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:43:27 +02:00
remove panel
This commit is contained in:
parent
21f6d7bee3
commit
2be2f940ea
2 changed files with 1 additions and 37 deletions
|
@ -13,7 +13,6 @@
|
||||||
//
|
//
|
||||||
(function() {
|
(function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
Script.include("http://public.highfidelity.io/scripts/utilities/tools/cookies.js");
|
|
||||||
print("EBL PRELOADING NEW VERSION ")
|
print("EBL PRELOADING NEW VERSION ")
|
||||||
var audioOptions = new AudioEffectOptions({
|
var audioOptions = new AudioEffectOptions({
|
||||||
bandwidth: 7000,
|
bandwidth: 7000,
|
||||||
|
@ -38,7 +37,6 @@
|
||||||
lateMixRight: 90,
|
lateMixRight: 90,
|
||||||
wetDryMix: 90,
|
wetDryMix: 90,
|
||||||
});
|
});
|
||||||
var panel = new Panel(10, 160);
|
|
||||||
|
|
||||||
function setter(name) {
|
function setter(name) {
|
||||||
return function(value) {
|
return function(value) {
|
||||||
|
@ -60,30 +58,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function scriptEnding() {
|
function scriptEnding() {
|
||||||
panel.destroy();
|
|
||||||
AudioDevice.setReverb(false);
|
AudioDevice.setReverb(false);
|
||||||
print("Reverb is OFF.");
|
print("Reverb is OFF.");
|
||||||
}
|
}
|
||||||
_this.enterEntity = function(entityID) {
|
_this.enterEntity = function(entityID) {
|
||||||
print('EBL I am insiude');
|
print('EBL I am insiude');
|
||||||
// create a slider for each parameter
|
|
||||||
for (var i = 0; i < parameters.length; i++) {
|
|
||||||
var p = parameters[i];
|
|
||||||
panel.newSlider(p.name, p.min, p.max, setter(p.name), getter(p.name), displayer(p.units));
|
|
||||||
}
|
|
||||||
Controller.mouseMoveEvent.connect(function panelMouseMoveEvent(event) {
|
|
||||||
return panel.mouseMoveEvent(event);
|
|
||||||
});
|
|
||||||
Controller.mousePressEvent.connect(function panelMousePressEvent(event) {
|
|
||||||
return panel.mousePressEvent(event);
|
|
||||||
});
|
|
||||||
Controller.mouseReleaseEvent.connect(function(event) {
|
|
||||||
return panel.mouseReleaseEvent(event);
|
|
||||||
});
|
|
||||||
AudioDevice.setReverbOptions(audioOptions);
|
AudioDevice.setReverbOptions(audioOptions);
|
||||||
AudioDevice.setReverb(true);
|
AudioDevice.setReverb(true);
|
||||||
print("Reverb is ON.");
|
print("Reverb is ON.");
|
||||||
// Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_this.leaveEntity = function(entityID) {
|
_this.leaveEntity = function(entityID) {
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
Script.include("http://public.highfidelity.io/scripts/utilities/tools/cookies.js");
|
|
||||||
print("EBL PRELOADING NEW VERSION ")
|
print("EBL PRELOADING NEW VERSION ")
|
||||||
var audioOptions = new AudioEffectOptions({
|
var audioOptions = new AudioEffectOptions({
|
||||||
bandwidth: 7000,
|
bandwidth: 7000,
|
||||||
|
@ -39,7 +38,6 @@
|
||||||
lateMixRight: 90,
|
lateMixRight: 90,
|
||||||
wetDryMix: 70,
|
wetDryMix: 70,
|
||||||
});
|
});
|
||||||
var panel = new Panel(10, 160);
|
|
||||||
|
|
||||||
function setter(name) {
|
function setter(name) {
|
||||||
return function(value) {
|
return function(value) {
|
||||||
|
@ -61,37 +59,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function scriptEnding() {
|
function scriptEnding() {
|
||||||
panel.destroy();
|
|
||||||
AudioDevice.setReverb(false);
|
AudioDevice.setReverb(false);
|
||||||
print("Reverb is OFF.");
|
print("Reverb is OFF.");
|
||||||
}
|
}
|
||||||
_this.enterEntity = function(entityID) {
|
_this.enterEntity = function(entityID) {
|
||||||
print('EBL I am insiude');
|
print('EBL I am insiude');
|
||||||
// create a slider for each parameter
|
// create a slider for each parameter
|
||||||
for (var i = 0; i < parameters.length; i++) {
|
|
||||||
var p = parameters[i];
|
|
||||||
panel.newSlider(p.name, p.min, p.max, setter(p.name), getter(p.name), displayer(p.units));
|
|
||||||
}
|
|
||||||
Controller.mouseMoveEvent.connect(function panelMouseMoveEvent(event) {
|
|
||||||
return panel.mouseMoveEvent(event);
|
|
||||||
});
|
|
||||||
Controller.mousePressEvent.connect(function panelMousePressEvent(event) {
|
|
||||||
return panel.mousePressEvent(event);
|
|
||||||
});
|
|
||||||
Controller.mouseReleaseEvent.connect(function(event) {
|
|
||||||
return panel.mouseReleaseEvent(event);
|
|
||||||
});
|
|
||||||
AudioDevice.setReverbOptions(audioOptions);
|
AudioDevice.setReverbOptions(audioOptions);
|
||||||
AudioDevice.setReverb(true);
|
AudioDevice.setReverb(true);
|
||||||
print("Reverb is ON.");
|
print("Reverb is ON.");
|
||||||
// Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_this.leaveEntity = function(entityID) {
|
_this.leaveEntity = function(entityID) {
|
||||||
print('EBL I am outsidee');
|
print('EBL I am outsidee');
|
||||||
panel.destroy();
|
|
||||||
AudioDevice.setReverb(false);
|
AudioDevice.setReverb(false);
|
||||||
print("Reverb is OFF.");
|
print("Reverb is OFF.");
|
||||||
// Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome');
|
|
||||||
};
|
};
|
||||||
});
|
});
|
Loading…
Reference in a new issue