mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
tabs
This commit is contained in:
parent
7738a2bcdd
commit
1aa653c5db
3 changed files with 15 additions and 15 deletions
|
@ -1045,7 +1045,7 @@ function loaded() {
|
|||
elCloneableGroup.style.display = elCloneable.checked ? "block": "none";
|
||||
elCloneableLimit.value = properties.cloneableLimit;
|
||||
elCloneableLifetime.value = properties.cloneableLifetime;
|
||||
|
||||
|
||||
var grabbablesSet = false;
|
||||
var parsedUserData = {};
|
||||
try {
|
||||
|
@ -1439,11 +1439,11 @@ function loaded() {
|
|||
}
|
||||
userDataChanger("grabbableKey", "grabbable", elGrabbable, elUserData, true);
|
||||
});
|
||||
|
||||
elCloneable.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneable'));
|
||||
elCloneableDynamic.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneableDynamic'));
|
||||
elCloneableLifetime.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneableLifetime'));
|
||||
elCloneableLimit.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneableLimit'));
|
||||
|
||||
elCloneable.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneable'));
|
||||
elCloneableDynamic.addEventListener('change', createEmitCheckedPropertyUpdateFunction('cloneableDynamic'));
|
||||
elCloneableLifetime.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneableLifetime'));
|
||||
elCloneableLimit.addEventListener('change', createEmitNumberPropertyUpdateFunction('cloneableLimit'));
|
||||
|
||||
elWantsTrigger.addEventListener('change', function() {
|
||||
userDataChanger("grabbableKey", "wantsTrigger", elWantsTrigger, elUserData, false);
|
||||
|
|
|
@ -47,13 +47,13 @@ propsAreCloneDynamic = function(props) {
|
|||
};
|
||||
|
||||
cloneEntity = function(props, worldEntityProps) {
|
||||
var entityToClone = props.id;
|
||||
var entityToClone = props.id;
|
||||
var certificateID = Entities.getEntityProperties(entityToClone, ['certificateID']).certificateID;
|
||||
// ensure entity is cloneable and does not have a certificate ID, whereas cloneable limits
|
||||
// will now be handled by the server where the entity add will fail if limit reached
|
||||
if (entityIsCloneable(props) && (certificateID === undefined || certificateID.length === 0)) {
|
||||
var cloneID = Entities.cloneEntity(entityToClone);
|
||||
return cloneID;
|
||||
}
|
||||
return null;
|
||||
// ensure entity is cloneable and does not have a certificate ID, whereas cloneable limits
|
||||
// will now be handled by the server where the entity add will fail if limit reached
|
||||
if (entityIsCloneable(props) && (certificateID === undefined || certificateID.length === 0)) {
|
||||
var cloneID = Entities.cloneEntity(entityToClone);
|
||||
return cloneID;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
@ -126,7 +126,7 @@ DISPATCHER_PROPERTIES = [
|
|||
"userData",
|
||||
"type",
|
||||
"href",
|
||||
"cloneable"
|
||||
"cloneable"
|
||||
];
|
||||
|
||||
// priority -- a lower priority means the module will be asked sooner than one with a higher priority in a given update step
|
||||
|
|
Loading…
Reference in a new issue