mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 23:30:31 +02:00
fixed largeroom illegal characters
This commit is contained in:
parent
ce290a1993
commit
21f6d7bee3
1 changed files with 78 additions and 91 deletions
|
@ -13,7 +13,6 @@
|
|||
//
|
||||
(function() {
|
||||
var _this = this;
|
||||
|
||||
Script.include("http://public.highfidelity.io/scripts/utilities/tools/cookies.js");
|
||||
print("EBL PRELOADING NEW VERSION ")
|
||||
var audioOptions = new AudioEffectOptions({
|
||||
|
@ -38,39 +37,33 @@
|
|||
lateMixLeft: 90,
|
||||
lateMixRight: 90,
|
||||
wetDryMix: 90,
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
var panel = new Panel(10, 160);
|
||||
|
||||
|
||||
|
||||
function setter(name) {
|
||||
return function(value) {
|
||||
audioOptions[name] = value;
|
||||
AudioDevice.setReverbOptions(audioOptions);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getter(name) {
|
||||
return function() {
|
||||
return audioOptions[name];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function displayer(units) {
|
||||
return function(value) {
|
||||
return (value).toFixed(1) + units;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function scriptEnding() {
|
||||
panel.destroy();
|
||||
AudioDevice.setReverb(false);
|
||||
print("Reverb is OFF.");
|
||||
}
|
||||
|
||||
_this.enterEntity = function(entityID) {
|
||||
print('EBL I am insiude');
|
||||
// create a slider for each parameter
|
||||
|
@ -78,7 +71,6 @@
|
|||
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);
|
||||
});
|
||||
|
@ -88,12 +80,9 @@
|
|||
Controller.mouseReleaseEvent.connect(function(event) {
|
||||
return panel.mouseReleaseEvent(event);
|
||||
});
|
||||
|
||||
AudioDevice.setReverbOptions(audioOptions);
|
||||
AudioDevice.setReverb(true);
|
||||
print("Reverb is ON.");
|
||||
|
||||
|
||||
// Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome');
|
||||
};
|
||||
|
||||
|
@ -102,8 +91,6 @@
|
|||
panel.destroy();
|
||||
AudioDevice.setReverb(false);
|
||||
print("Reverb is OFF.");
|
||||
|
||||
|
||||
// Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome');
|
||||
};
|
||||
});
|
Loading…
Reference in a new issue