From 2be2f940eabceeb5d3e0eb9ef5353a864786e90e Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Wed, 6 Apr 2016 10:59:18 -0700 Subject: [PATCH] remove panel --- examples/example/audio/largeHall.js | 19 +------------------ examples/example/audio/smallRoom.js | 19 ------------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/examples/example/audio/largeHall.js b/examples/example/audio/largeHall.js index 73abc6da6d..a1a2db84b7 100644 --- a/examples/example/audio/largeHall.js +++ b/examples/example/audio/largeHall.js @@ -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({ bandwidth: 7000, @@ -38,7 +37,6 @@ lateMixRight: 90, wetDryMix: 90, }); - var panel = new Panel(10, 160); function setter(name) { return function(value) { @@ -60,30 +58,15 @@ } 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 - 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.setReverb(true); print("Reverb is ON."); - // Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome'); }; _this.leaveEntity = function(entityID) { diff --git a/examples/example/audio/smallRoom.js b/examples/example/audio/smallRoom.js index b63adc8bb9..59811c4f52 100644 --- a/examples/example/audio/smallRoom.js +++ b/examples/example/audio/smallRoom.js @@ -14,7 +14,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({ bandwidth: 7000, @@ -39,7 +38,6 @@ lateMixRight: 90, wetDryMix: 70, }); - var panel = new Panel(10, 160); function setter(name) { return function(value) { @@ -61,37 +59,20 @@ } 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 - 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.setReverb(true); print("Reverb is ON."); - // Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome'); }; _this.leaveEntity = function(entityID) { print('EBL I am outsidee'); - panel.destroy(); AudioDevice.setReverb(false); print("Reverb is OFF."); - // Messages.sendMessage('PlayBackOnAssignment', 'BowShootingGameWelcome'); }; }); \ No newline at end of file