var configObject = function(){ //stage properties... var stageProperties = { stageWidth: 1200, stageHeight: 600, stageBGColor: 'rgba(0, 210, 255, 0.5)', manifest: [ //scene_0 { "src": "splash.png", "id": "splash"}, { "src": "catla.png", "id": "catla"}, { "src": "katla.png", "id": "katla"}, { "src": "pabda.png", "id": "pabda"}, { "src": "parshe.png", "id": "parshe"}, { "src": "chingri.png", "id": "golda"}, { "src": "bhetki.png", "id": "bhetki"}, { "src": "tray.png", "id": "tray"}, { "src": "detector_off.png", "id": "detectorOff"}, { "src": "detector_on_blank.png", "id": "detectorOnBlank"}, { "src": "detector_on.png", "id": "detectorOn"}, { "src": "star.png", "id": "star"}, { "src": "snd_vol_icon.png", "id": "sndIco"}, { "src": "snd_vol_off_icon.png", "id": "sndOffIco"}, ], sounds: { path: "./assets/", manifest: [ { id: "suspicious", src: { mp3: "mp3/suspicious.mp3" } }, { id: "contaminated", src: { mp3: "mp3/contaminated.mp3" } }, { id: "instrucsA", src: { mp3: "mp3/instrucsA.mp3" } }, { id: "instrucsB", src: { mp3: "mp3/instrucsB.mp3" } }, { id: "result01", src: { mp3: "mp3/result_01.mp3" } }, { id: "result02", src: { mp3: "mp3/result_02.mp3" } }, { id: "result03", src: { mp3: "mp3/result_03.mp3" } }, { id: "result04", src: { mp3: "mp3/result_04.mp3" } }, { id: "result05", src: { mp3: "mp3/result_05.mp3" } }, { id: "result06", src: { mp3: "mp3/result_06.mp3" } }, { id: "fm1", src: { mp3: "mp3/fishmarket01.mp3" } }, { id: "fm2", src: { mp3: "mp3/fishmarket02.mp3" } }, { id: "fm3", src: { mp3: "mp3/fishmarket03.mp3" } }, { id: "fm4", src: { mp3: "mp3/fishmarket04.mp3" } }, { id: "fm5", src: { mp3: "mp3/fishmarket05.mp3" } }, { id: "fgasp", src: { mp3: "mp3/fgasp.mp3" } }, { id: "mgasp", src: { mp3: "mp3/mgasp.mp3" } }, { id: "ahem", src: { mp3: "mp3/ahem.mp3" } }, { id: "cheers", src: { mp3: "mp3/cheers.mp3" } }, { id: "sigh", src: { mp3: "mp3/sigh.mp3" } }, ] } }; //define the scenes... var scenes = { //names must be in the order they are played... names: [ "Ceramic Sensor Development for Detection of Fish Adulteration", //scene_0 ], //defaults, may be overwritten (TODO) offset: 5, bgColor: 'rgba(0, 210, 255, 0.2)', border: { size: 2, color: 'rgba(0, 155, 255, 1)' }, borderRadius: [5, 5, 5, 5], }; //scene assets... var assets = { properties: [ //scene_0 { tray: { id: 'tray', x: 0, y: 0, scaleX: 1, scaleY: 1 }, bhetki: { id: 'bhetki', x: 0, y: 0, scaleX: 1, scaleY: 1 }, catla: { id: 'catla', x: 0, y: 0, scaleX: 1, scaleY: 1 }, golda: { id: 'golda', x: 0, y: 0, scaleX: 1, scaleY: 1 }, katla: { id: 'katla', x: 0, y: 0, scaleX: 1, scaleY: 1 }, pabda: { id: 'pabda', x: 0, y: 0, scaleX: 1, scaleY: 1 }, parshe: { id: 'parshe', x: 0, y: 0, scaleX: 1, scaleY: 1 }, detectorOff: { id: 'detectorOff', x: 0, y: 0, scaleX: 1, scaleY: 1 }, detectorOnBlank: { id: 'detectorOnBlank', x: 0, y: 0, scaleX: 1, scaleY: 1 }, star: { id: 'star', x: 1030, y: 250, scaleX: 0.3, scaleY: 0.3 }, sndIco: { id: 'sndIco', x: 1024, y: 212, scaleX: 0.3, scaleY: 0.3 }, sndOffIco: { id: 'sndOffIco', x: 1024, y: 212, scaleX: 0.3, scaleY: 0.3 }, }, //scene_1, etc... ] }; //scene controls... var controls = { properties: [ //scene_0 { videoButton: { x: 1050, y: 170, radius: 20, displayLabel: true, visible: false, type: 'rectangular', text: 'Restart', BGFillSolid: { normal: 'rgba(0, 210, 255, 0.8)', hover: 'rgba(255, 204, 0, 1)', active: 'rgba(255, 0, 0, 1)', } }, slider: { id: 'slider', x: 1050, y: 220, width: 130, height: 2, handleWidth: 4, handleMax: 10, handleUnit: '', handleInitPos: 0, trackBGSolid: 'rgba(0, 210, 255, 0.8)', trackBGType: 'solid', trackBorder: { thickness: 1, color: 'rgba(0, 155, 255, 1)' }, displayBubble: false, visible: false }, }, //scene_1, etc ... ] }; var about = { appName: 'Detection of Formalin', appVersion: '1.0', appDate: '9th February, 2022', author: 'Shubhojoy Mitra', authorEmail: 'shubhojoy@gmail.com', description: 'Ceramic Sensor Development for Detection of Fish Adulteration', usage: `` }; var config = { setStageProperties: function(){ this.stageProperties = stageProperties; }, setScenes: function(){ this.scenes = scenes; }, setAssets: function(){ this.assets = assets; }, setControls: function(){ this.controls = controls; }, setAbout: function(){ this.about = about; }, init: function(){ this.setStageProperties(); this.setScenes(); this.setAssets(); this.setControls(); this.setAbout(); return this; } }; var globalConfig = config.init(); return globalConfig; };