mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:18:45 +02:00
add animation properties to edit properties
This commit is contained in:
parent
abdd9a6da4
commit
accdd8c86a
1 changed files with 43 additions and 3 deletions
|
@ -282,6 +282,11 @@
|
||||||
var elModelAnimationPlaying = document.getElementById("property-model-animation-playing");
|
var elModelAnimationPlaying = document.getElementById("property-model-animation-playing");
|
||||||
var elModelAnimationFPS = document.getElementById("property-model-animation-fps");
|
var elModelAnimationFPS = document.getElementById("property-model-animation-fps");
|
||||||
var elModelAnimationFrame = document.getElementById("property-model-animation-frame");
|
var elModelAnimationFrame = document.getElementById("property-model-animation-frame");
|
||||||
|
var elModelAnimationFirstFrame = document.getElementById("property-model-animation-first-frame");
|
||||||
|
var elModelAnimationLastFrame = document.getElementById("property-model-animation-last-frame");
|
||||||
|
var elModelAnimationLoop = document.getElementById("property-model-animation-loop");
|
||||||
|
var elModelAnimationHold = document.getElementById("property-model-animation-hold");
|
||||||
|
var elModelAnimationStartAutomatically = document.getElementById("property-model-animation-start-automatically");
|
||||||
var elModelTextures = document.getElementById("property-model-textures");
|
var elModelTextures = document.getElementById("property-model-textures");
|
||||||
var elModelOriginalTextures = document.getElementById("property-model-original-textures");
|
var elModelOriginalTextures = document.getElementById("property-model-original-textures");
|
||||||
|
|
||||||
|
@ -509,6 +514,11 @@
|
||||||
elModelAnimationPlaying.checked = properties.animation.running;
|
elModelAnimationPlaying.checked = properties.animation.running;
|
||||||
elModelAnimationFPS.value = properties.animation.fps;
|
elModelAnimationFPS.value = properties.animation.fps;
|
||||||
elModelAnimationFrame.value = properties.animation.frameIndex;
|
elModelAnimationFrame.value = properties.animation.frameIndex;
|
||||||
|
elModelAnimationFirstFrame.value = properties.animation.firstFrame;
|
||||||
|
elModelAnimationLastFrame.value = properties.animation.lastFrame;
|
||||||
|
elModelAnimationLoop.checked = properties.animation.loop;
|
||||||
|
elModelAnimationHold.checked = properties.animation.hold;
|
||||||
|
elModelAnimationStartAutomatically.checked = properties.animation.startAutomatically;
|
||||||
elModelTextures.value = properties.textures;
|
elModelTextures.value = properties.textures;
|
||||||
elModelOriginalTextures.value = properties.originalTextures;
|
elModelOriginalTextures.value = properties.originalTextures;
|
||||||
} else if (properties.type == "Web") {
|
} else if (properties.type == "Web") {
|
||||||
|
@ -758,7 +768,13 @@
|
||||||
elModelAnimationURL.addEventListener('change', createEmitGroupTextPropertyUpdateFunction('animation', 'url'));
|
elModelAnimationURL.addEventListener('change', createEmitGroupTextPropertyUpdateFunction('animation', 'url'));
|
||||||
elModelAnimationPlaying.addEventListener('change', createEmitGroupCheckedPropertyUpdateFunction('animation','running'));
|
elModelAnimationPlaying.addEventListener('change', createEmitGroupCheckedPropertyUpdateFunction('animation','running'));
|
||||||
elModelAnimationFPS.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation','fps'));
|
elModelAnimationFPS.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation','fps'));
|
||||||
elModelAnimationFrame.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation','frameIndex'));
|
elModelAnimationFrame.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation', 'frameIndex'));
|
||||||
|
elModelAnimationFirstFrame.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation', 'firstFrame'));
|
||||||
|
elModelAnimationLastFrame.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('animation', 'lastFrame'));
|
||||||
|
elModelAnimationLoop.addEventListener('change', createEmitGroupCheckedPropertyUpdateFunction('animation', 'loop'));
|
||||||
|
elModelAnimationHold.addEventListener('change', createEmitGroupCheckedPropertyUpdateFunction('animation', 'hold'));
|
||||||
|
elModelAnimationStartAutomatically.addEventListener('change', createEmitGroupCheckedPropertyUpdateFunction('animation', 'startAutomatically'));
|
||||||
|
|
||||||
elModelTextures.addEventListener('change', createEmitTextPropertyUpdateFunction('textures'));
|
elModelTextures.addEventListener('change', createEmitTextPropertyUpdateFunction('textures'));
|
||||||
|
|
||||||
elTextText.addEventListener('change', createEmitTextPropertyUpdateFunction('text'));
|
elTextText.addEventListener('change', createEmitTextPropertyUpdateFunction('text'));
|
||||||
|
@ -1278,11 +1294,35 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-section property">
|
<div class="model-section property">
|
||||||
<div class="label">Animation Settings</div>
|
<div class="label">Animation First Frame</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<textarea id="property-model-animation-settings"></textarea>
|
<input class="coord" type='number' id="property-model-animation-first-frame">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="model-section property">
|
||||||
|
<div class="label">Animation Last Frame</div>
|
||||||
|
<div class="value">
|
||||||
|
<input class="coord" type='number' id="property-model-animation-last-frame">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="model-section property">
|
||||||
|
<span class="label">Animation Loop</span>
|
||||||
|
<span class="value">
|
||||||
|
<input type='checkbox' id="property-model-animation-loop">
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="model-section property">
|
||||||
|
<span class="label">Animation Hold</span>
|
||||||
|
<span class="value">
|
||||||
|
<input type='checkbox' id="property-model-animation-hold">
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="model-section property">
|
||||||
|
<span class="label">Animation Start Automatically</span>
|
||||||
|
<span class="value">
|
||||||
|
<input type='checkbox' id="property-model-animation-start-automatically">
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div class="model-section property">
|
<div class="model-section property">
|
||||||
<div class="label">Textures</div>
|
<div class="label">Textures</div>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
|
|
Loading…
Reference in a new issue