mirror of
https://github.com/overte-org/overte.git
synced 2025-04-05 23:32:58 +02:00
Caps the variables.
This commit is contained in:
parent
58c1518d0b
commit
61d12c6641
49 changed files with 55 additions and 55 deletions
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
// Set the following variables to the right value
|
||||
var NUM_AC = 3; // This is the number of AC. Their ID need to be unique and between 0 (included) and NUM_AC (excluded)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
//For procedural walk animation
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
Script.include(VIRCADIA_PUBLIC_CDN + "scripts/acScripts/proceduralAnimationAPI.js");
|
||||
|
||||
var procAnimAPI = new ProcAnimAPI();
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
VIRCADIA_PUBLIC_CDN = networkingConstants.contentCDN;
|
||||
VIRCADIA_PUBLIC_CDN = networkingConstants.CONTENT_CDN_URL;
|
||||
|
||||
function getRandomFloat(min, max) {
|
||||
return Math.random() * (max - min) + min;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
Script.include("./AgentPoolController.js");
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var masterController = new MasterController();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
function getRandomFloat(min, max) {
|
||||
return Math.random() * (max - min) + min;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
audioInjector = null;
|
||||
|
||||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var cannonSound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "philip/cannonShot.wav");
|
||||
var explosionSound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "philip/explosion.wav");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var panelWall = false;
|
||||
var orbShell = false;
|
||||
|
|
|
@ -20,7 +20,7 @@ var blocks = [];
|
|||
var blockSpawner;
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
|
||||
var floorPos = Vec3.sum(MyAvatar.position, {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
function length(v) {
|
||||
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
function length(v) {
|
||||
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
Script.include("../../libraries/toolBars.js");
|
||||
|
||||
const LEFT_PALM = 0;
|
||||
|
|
|
@ -23,7 +23,7 @@ Script.include("../../libraries/constants.js");
|
|||
Script.include("../../libraries/toolBars.js");
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var LASER_WIDTH = 2;
|
||||
var POSE_CONTROLS = [ Controller.Standard.LeftHand, Controller.Standard.RightHand ];
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
hitSound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "sounds/Collisions-ballhitsandcatches/billiards/collision1.wav");
|
||||
var rightHandAnimation = VIRCADIA_PUBLIC_CDN + "animations/RightHandAnimPhilip.fbx";
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
// maybe we should make these constants...
|
||||
var LEFT_PALM = 0;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
Script.include("http://s3.amazonaws.com/hifi-public/scripts/libraries/toolBars.js");
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
Script.include(VIRCADIA_PUBLIC_CDN + "scripts/libraries/toolBars.js");
|
||||
Script.include(VIRCADIA_PUBLIC_CDN + "scripts/libraries/utils.js");
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var sound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "sounds/Animals/mexicanWhipoorwill.raw");
|
||||
var CHANCE_OF_PLAYING_SOUND = 0.01;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
// Declare HiFi public bucket.
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
// Declare variables and set up new WebWindow.
|
||||
var stream;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var modelURL = VIRCADIA_PUBLIC_CDN + "models/entities/radio/Speakers.fbx";
|
||||
var soundURL = VIRCADIA_PUBLIC_CDN + "sounds/family.stereo.raw";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var SOUND_PATH = VIRCADIA_PUBLIC_CDN + "sounds/Collisions-hitsandslaps/";
|
||||
var soundURLS = ["67LCollision01.wav", "67LCollision02.wav", "airhockey_hit1.wav"];
|
||||
var FLOOR_SIZE = 10;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
Script.include(VIRCADIA_PUBLIC_CDN + 'scripts/utilities.js')
|
||||
|
||||
var NUM_ROWS = 10;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var count = 0;
|
||||
var moveUntil = 2000;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var count = 0;
|
||||
var stopAfter = 1000;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var count = 0;
|
||||
var stopAfter = 1000;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var count = 0;
|
||||
var stopAfter = 600;
|
||||
|
|
|
@ -61,7 +61,7 @@ var paddleModel = "https://hifi-public.s3.amazonaws.com/ozan/props/airHockeyTabl
|
|||
var paddleCollisionModel = "http://headache.hungry.com/~seth/hifi/paddle-hull.obj"
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var screenSize = Controller.getViewportDimensions();
|
||||
var BUTTON_SIZE = 32;
|
||||
var PADDING = 3;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var tableParts = [];
|
||||
var balls = [];
|
||||
|
@ -38,7 +38,7 @@ var hitSound = VIRCADIA_PUBLIC_CDN + "sounds/Collisions-ballhitsandcatches/billi
|
|||
SoundCache.getSound(hitSound);
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var screenSize = Controller.getViewportDimensions();
|
||||
var reticle = Overlays.addOverlay("image", {
|
||||
x: screenSize.x / 2 - 16,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
var Overlays, Entities, Controller, Script, MyAvatar, Vec3; // Referenced globals provided by High Fidelity.
|
||||
|
||||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var rezButton = Overlays.addOverlay("image", {
|
||||
x: 100,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var iteration = 0;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
var Camera, Vec3, Quat, Entities, Script; // Globals defined by HiFi, var'ed here to keep jslint happy.
|
||||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var SOUND_BUCKET = "http://public.highfidelity.io/sounds/Collisions-hitsandslaps/";
|
||||
var MAX_ANGULAR_SPEED = Math.PI;
|
||||
var N_EACH_OBJECTS = 3;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
// The "Swatches" example of this script will create 9 different image overlays, that use the color feature to
|
||||
// display different colors as color swatches. The overlays can be clicked on, to change the "selectedSwatch" variable
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var fireSound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "sounds/Guns/GUN-SHOT2.raw");
|
||||
var audioOptions = {
|
||||
volume: 0.9,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
(function () {
|
||||
var ball = null;
|
||||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var collisionSoundURL = VIRCADIA_PUBLIC_CDN + "sounds/Collisions-ballhitsandcatches/billiards/collision1.wav";
|
||||
var triggerState = false;
|
||||
var BALL_GRAVITY = -9.8;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var grenadeURL = VIRCADIA_PUBLIC_CDN + "models/props/grenade/grenade.fbx";
|
||||
var fuseSoundURL = VIRCADIA_PUBLIC_CDN + "sounds/burningFuse.wav";
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
STICK_URL = VIRCADIA_PUBLIC_CDN + "models/props/geo_stick.fbx";
|
||||
|
||||
ZERO_VECTOR = { x: 0, y: 0, z: 0 };
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
LineRider = function() {
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var screenSize = Controller.getViewportDimensions();
|
||||
|
||||
var BUTTON_SIZE = 32;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var panelWall = false;
|
||||
var orbShell = false;
|
||||
|
|
|
@ -30,7 +30,7 @@ var buttonOnColor = {
|
|||
};
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var userCanPoint = false;
|
||||
Script.include(["libraries/toolBars.js"]);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
/* globals VIRCADIA_PUBLIC_CDN:true, Tool, ToolBar */
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
Script.include("/~/system/libraries/toolBars.js");
|
||||
|
||||
var recordingFile = "recording.hfr";
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var sound = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "sounds/220Sine.wav");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
// A few sample files you may want to try:
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var soundClip = SoundCache.getSound(VIRCADIA_PUBLIC_CDN + "sounds/Cocktail%20Party%20Snippets/Walken1.wav");
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var SLIDER_RANGE_INCREMENT_SCALE = 1 / 1000;
|
||||
var THUMB_COLOR = {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
var SLIDER_RANGE_INCREMENT_SCALE = 1 / 1000;
|
||||
var THUMB_COLOR = {
|
||||
|
|
|
@ -23,7 +23,7 @@ var emojiList = Script.require("./resources/modules/emojiList.js");
|
|||
var customEmojiList = Script.require("./resources/modules/customEmojiList.js");
|
||||
// The contents of this remote folder must always contain all possible emojis for users of `simplifiedEmoji.js`
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var imageURLBase = networkingConstants.contentCDN + "MarketplaceItems/avimoji/appResources/appData/resources/images/emojis/png512/";
|
||||
var imageURLBase = networkingConstants.CONTENT_CDN_URL + "MarketplaceItems/avimoji/appResources/appData/resources/images/emojis/png512/";
|
||||
// Uncomment below for local testing
|
||||
//imageURLBase = Script.resolvePath("./resources/images/emojis/512px/");
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ var notificationText = "An update is available: ";
|
|||
var notificationColor = { red: 137, green: 63, blue: 255 };
|
||||
|
||||
function retrieveMetadata() {
|
||||
var requireMetadata = Script.require(networkingConstants.interfaceMetadataSource + '?' + Date.now());
|
||||
var requireMetadata = Script.require(networkingConstants.INTERFACE_METADATA_SOURCE + '?' + Date.now());
|
||||
|
||||
if (requireMetadata) {
|
||||
return requireMetadata;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
//
|
||||
|
||||
var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
|
||||
isInterstitialOverlaysVisible = false;
|
||||
|
|
|
@ -7,18 +7,18 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
|
||||
// Interface Metadata Source
|
||||
var interfaceMetadataSource = "https://cdn.vircadia.com/dist/launcher/vircadiaMeta.json";
|
||||
var INTERFACE_METADATA_SOURCE = "https://cdn.vircadia.com/dist/launcher/vircadiaMeta.json";
|
||||
|
||||
// Base CDN URLs
|
||||
var contentCDN = "https://content.highfidelity.com/"; // "https://content.vircadia.com/";
|
||||
var publicBucketCDN = "http://s3.amazonaws.com/hifi-public/";
|
||||
var CONTENT_CDN_URL = "https://content.highfidelity.com/"; // "https://content.vircadia.com/";
|
||||
var PUBLIC_BUCKET_CDN_URL = "http://s3.amazonaws.com/hifi-public/";
|
||||
var euCDN = "eu-c-1/";
|
||||
var usCDN = "us-c-1/";
|
||||
|
||||
module.exports = {
|
||||
interfaceMetadataSource: interfaceMetadataSource.
|
||||
contentCDN: contentCDN,
|
||||
publicBucketCDN: publicBucketCDN,
|
||||
INTERFACE_METADATA_SOURCE: INTERFACE_METADATA_SOURCE.
|
||||
CONTENT_CDN_URL: CONTENT_CDN_URL,
|
||||
PUBLIC_BUCKET_CDN_URL: PUBLIC_BUCKET_CDN_URL,
|
||||
euCDN: euCDN,
|
||||
usCDN: usCDN
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
//
|
||||
|
||||
var var networkingConstants = Script.require("/~/system/libraries/networkingConstants.js");
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.publicBucketCDN;
|
||||
var VIRCADIA_PUBLIC_CDN = networkingConstants.PUBLIC_BUCKET_CDN_URL;
|
||||
var toolIconUrl = VIRCADIA_PUBLIC_CDN + "images/tools/";
|
||||
|
||||
progressDialog = (function () {
|
||||
|
|
Loading…
Reference in a new issue