Added event for dropdown property (work in progress 2)

This commit is contained in:
ksuprynowicz 2022-05-06 16:51:09 +02:00
parent cfd7b867ed
commit 679cd3ff38

View file

@ -2930,10 +2930,10 @@ function createDropdownProperty(property, propertyID, elProperty) {
elInput.add(option);
}
elInput.addEventListener('change', createEmitTextPropertyUpdateFunction(property));
//elInput.addEventListener('change', createEmitTextPropertyUpdateFunction(property));
if (propertyData.
onDropdownChange !== undefined) {
elInput.addEventListener('change', propertyData.onDropdownChange(property));
elInput.addEventListener('change', propertyData.onDropdownChange);
}
elProperty.appendChild(elInput);
@ -3252,8 +3252,20 @@ function parentIDChanged() {
}
}
/*function polyVoxPresetChanged(property) {
return function() {
alert('PolyVox preset 2 ' + JSON.stringify(property));
updateProperty("xTextureURL", "test", false);
updateProperty("yTextureURL", "test", false);
updateProperty("zTextureURL", "test", false);
}
}*/
function polyVoxPresetChanged() {
alert('PolyVox preset');
alert('PolyVox preset 2 ');
//updateProperty("xTextureURL", "test", false);
//updateProperty("yTextureURL", "test", false);
//updateProperty("zTextureURL", "test", false);
}
/**