mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:03:41 +02:00
Added Logging
This commit is contained in:
parent
903762b122
commit
55e75298bd
1 changed files with 4 additions and 2 deletions
|
@ -58,12 +58,12 @@ var roundFloat = function (input, round) {
|
||||||
|
|
||||||
function HifiEntityUI(parent) {
|
function HifiEntityUI(parent) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
|
console.log("Creating a new Entity UI instance!");
|
||||||
var self = this;
|
var self = this;
|
||||||
this.settingsUpdateLock = false;
|
this.settingsUpdateLock = false;
|
||||||
this.webBridgeSync = _.debounce(function (id, val) {
|
this.webBridgeSync = _.debounce(function (id, val) {
|
||||||
console.log(id + " " + val + " " + self.webBridgeSync);
|
|
||||||
if (self.EventBridge && !self.settingsUpdateLock) {
|
if (self.EventBridge && !self.settingsUpdateLock) {
|
||||||
|
console.log(id + " " + val + " " + self.webBridgeSync);
|
||||||
var sendPackage = {};
|
var sendPackage = {};
|
||||||
sendPackage[id] = val;
|
sendPackage[id] = val;
|
||||||
self.submitChanges(sendPackage);
|
self.submitChanges(sendPackage);
|
||||||
|
@ -276,6 +276,7 @@ HifiEntityUI.prototype = {
|
||||||
if (!currentProperties.colorFinish || !currentProperties.colorFinish.red) {
|
if (!currentProperties.colorFinish || !currentProperties.colorFinish.red) {
|
||||||
currentProperties.colorFinish = currentProperties.color;
|
currentProperties.colorFinish = currentProperties.color;
|
||||||
}
|
}
|
||||||
|
console.log("Got ScriptEvent particle_settings", data);
|
||||||
self.fillFields(currentProperties);
|
self.fillFields(currentProperties);
|
||||||
// Do expected property match with structure;
|
// Do expected property match with structure;
|
||||||
} else if (data.messageType === 'particle_close') {
|
} else if (data.messageType === 'particle_close') {
|
||||||
|
@ -284,6 +285,7 @@ HifiEntityUI.prototype = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
build: function () {
|
build: function () {
|
||||||
|
console.log("Building UI Anew");
|
||||||
var self = this;
|
var self = this;
|
||||||
var sections = Object.keys(this.structure);
|
var sections = Object.keys(this.structure);
|
||||||
this.builtRows = {};
|
this.builtRows = {};
|
||||||
|
|
Loading…
Reference in a new issue