mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-09 18:15:33 +02:00
fix colors
This commit is contained in:
parent
31e665ab8b
commit
ac0e999629
1 changed files with 4 additions and 9 deletions
|
@ -928,7 +928,9 @@ function getPropertyElement(propertyName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPropertyElementID(propertyName) {
|
function getPropertyElementID(propertyName) {
|
||||||
return "property-" + propertyName;
|
let propertyElementID = "property-" + propertyName;
|
||||||
|
propertyElementID = propertyElementID.replace(".", "-");
|
||||||
|
return propertyElementID;
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableChildren(el, selector) {
|
function enableChildren(el, selector) {
|
||||||
|
@ -1077,7 +1079,6 @@ function showGroupsForType(type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// PROPERTY UPDATE FUNCTIONS
|
// PROPERTY UPDATE FUNCTIONS
|
||||||
|
|
||||||
function updateProperty(propertyName, propertyValue) {
|
function updateProperty(propertyName, propertyValue) {
|
||||||
|
@ -1207,7 +1208,6 @@ function createImageURLUpdateFunction(propertyName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// PROPERTY ELEMENT CREATION FUNCTIONS
|
// PROPERTY ELEMENT CREATION FUNCTIONS
|
||||||
|
|
||||||
function createStringProperty(elProperty, elLabel, propertyData) {
|
function createStringProperty(elProperty, elLabel, propertyData) {
|
||||||
|
@ -1381,7 +1381,7 @@ function createColorProperty(elProperty, elLabel, propertyData) {
|
||||||
},
|
},
|
||||||
onChange: function(hsb, hex, rgb, el) {
|
onChange: function(hsb, hex, rgb, el) {
|
||||||
$(el).css('background-color', '#' + hex);
|
$(el).css('background-color', '#' + hex);
|
||||||
emitColorPropertyUpdate('color', rgb.r, rgb.g, rgb.b);
|
emitColorPropertyUpdate(propertyName, rgb.r, rgb.g, rgb.b);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1573,7 +1573,6 @@ function addButtons(elProperty, propertyID, buttons, newRow) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// BUTTON CALLBACKS
|
// BUTTON CALLBACKS
|
||||||
|
|
||||||
function rescaleDimensions() {
|
function rescaleDimensions() {
|
||||||
|
@ -1628,7 +1627,6 @@ function copySkyboxURLToAmbientURL() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// USER DATA FUNCTIONS
|
// USER DATA FUNCTIONS
|
||||||
|
|
||||||
function clearUserData() {
|
function clearUserData() {
|
||||||
|
@ -1850,7 +1848,6 @@ function saveJSONUserData(noUpdate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MATERIAL DATA FUNCTIONS
|
// MATERIAL DATA FUNCTIONS
|
||||||
|
|
||||||
function clearMaterialData() {
|
function clearMaterialData() {
|
||||||
|
@ -2035,7 +2032,6 @@ function bindAllNonJSONEditorElements() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// DROPDOWNS / TEXTAREAS / PARENT MATERIAL NAME FUNCTIONS
|
// DROPDOWNS / TEXTAREAS / PARENT MATERIAL NAME FUNCTIONS
|
||||||
|
|
||||||
function setDropdownText(dropdown) {
|
function setDropdownText(dropdown) {
|
||||||
|
@ -2122,7 +2118,6 @@ function loaded() {
|
||||||
let propertyType = property.type;
|
let propertyType = property.type;
|
||||||
let propertyName = property.propertyName;
|
let propertyName = property.propertyName;
|
||||||
let propertyElementID = getPropertyElementID(propertyName);
|
let propertyElementID = getPropertyElementID(propertyName);
|
||||||
propertyElementID = propertyElementID.replace(".", "-");
|
|
||||||
|
|
||||||
let elProperty;
|
let elProperty;
|
||||||
if (propertyType === "sub-header") {
|
if (propertyType === "sub-header") {
|
||||||
|
|
Loading…
Reference in a new issue