mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Added event for dropdown property (work in progress 2)
This commit is contained in:
parent
cfd7b867ed
commit
679cd3ff38
1 changed files with 15 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue