added collides with property

This commit is contained in:
ericrius1 2016-02-16 15:55:11 -08:00
parent 05b9d88f08
commit 7a3443968d

View file

@ -264,6 +264,7 @@
var elCollisionless = document.getElementById("property-collisionless");
var elDynamic = document.getElementById("property-dynamic" );
var elCollisionSoundURL = document.getElementById("property-collision-sound-url");
var elCollidesWith = document.getElementById("property-collides-with");
var elLifetime = document.getElementById("property-lifetime");
var elScriptURL = document.getElementById("property-script-url");
var elScriptTimestamp = document.getElementById("property-script-timestamp");
@ -482,6 +483,7 @@
elCollisionless.checked = properties.collisionless;
elDynamic.checked = properties.dynamic;
elCollisionSoundURL.value = properties.collisionSoundURL;
elCollidesWith.value = properties.collidesWith;
elLifetime.value = properties.lifetime;
elScriptURL.value = properties.script;
elScriptTimestamp.value = properties.scriptTimestamp;
@ -703,6 +705,7 @@
elCollisionless.addEventListener('change', createEmitCheckedPropertyUpdateFunction('collisionless'));
elDynamic.addEventListener('change', createEmitCheckedPropertyUpdateFunction('dynamic'));
elCollisionSoundURL.addEventListener('change', createEmitTextPropertyUpdateFunction('collisionSoundURL'));
elCollidesWith.addEventListener('change', createEmitTextPropertyUpdateFunction('collidesWith'));
elLifetime.addEventListener('change', createEmitNumberPropertyUpdateFunction('lifetime'));
elScriptURL.addEventListener('change', createEmitTextPropertyUpdateFunction('script'));
@ -1386,6 +1389,13 @@
</span>
</div>
<div class="property">
<div class="label">collidesWith</div>
<div class="value">
<input id="property-collides-with">
</div>
</div>
<div class="property">
<div class="label">Collision Sound URL</div>
<div class="value">