Import a 3D Model and automatically assign and export animations
TypeScript
Fix positioning for animation count shown in text filter on listing
Scott Petrovicb68a4d04f126
diff --git a/src/create.html b/src/create.htmlindex ff72d1c..8074edc 100644--- a/src/create.html+++ b/src/create.html@@ -351,12 +351,11 @@<span id="skinned-step-animation-export-options"><div id="animations-listing"><!-- Filter textbox for animations -->- <div id="animation-listing-count">0</div>- <input- type="text"- id="animation-filter"- placeholder="Filter animations..."- />+ <span style="position: relative">+ <input type="text" id="animation-filter" placeholder="Filter animations...">+ <div id="animation-listing-count">0</div>+ </span>+<!-- loading progress when animations start getting larger. --><div id="animation-progress-loader-container" style="display: none">diff --git a/src/index.html b/src/index.htmlindex 0b5ad45..d7c5614 100644--- a/src/index.html+++ b/src/index.html@@ -162,8 +162,12 @@<div id="animations-listing"><!-- Filter textbox for animations -->- <div id="animation-listing-count">0</div>- <input type="text" id="animation-filter" placeholder="Filter animations...">++ <span style="position: relative">+ <input type="text" id="animation-filter" placeholder="Filter animations...">+ <div id="animation-listing-count">0</div>+ </span>+<!-- loading progress when animations start getting larger. --><div id="animation-progress-loader-container" style="display: none">diff --git a/src/marketing/marketing.css b/src/marketing/marketing.cssindex 75e6295..f1128bc 100644--- a/src/marketing/marketing.css+++ b/src/marketing/marketing.css@@ -39,11 +39,6 @@ button.active-button {max-height: calc(100vh - 19rem);}-#animation-listing-count {- top: 5.9rem;- right: 2.5rem;-}-/* model switcher styles on the explore page */#model-variation-switcher {diff --git a/src/retarget/RetargetAnimationListing.ts b/src/retarget/RetargetAnimationListing.tsindex e6c9c5c..98439cd 100644--- a/src/retarget/RetargetAnimationListing.ts+++ b/src/retarget/RetargetAnimationListing.ts@@ -147,7 +147,7 @@ export class RetargetAnimationListing extends EventTarget {// Update animation listing count displayconst listing_count_element = document.getElementById('animation-listing-count')if (listing_count_element !== null) {- listing_count_element.textContent = this.animation_clips_loaded.length.toString()+ listing_count_element.textContent = this.animation_clips_loaded.length.toString() + 'animations'}// the export button enabled state relies on the animation search being initializeddiff --git a/src/retarget/index.html b/src/retarget/index.htmlindex 0f808f6..d6e589b 100644--- a/src/retarget/index.html+++ b/src/retarget/index.html@@ -173,9 +173,11 @@<div id="animations-listing">- <!-- Filter textbox for animations -->- <div id="animation-listing-count">0</div>- <input type="text" id="animation-filter" placeholder="Filter animations...">+ <!-- Filter textbox for animations -->+ <span style="position: relative">+ <input type="text" id="animation-filter" placeholder="Filter animations...">+ <div id="animation-listing-count">0</div>+ </span><!-- loading progress when animations start getting larger. --><div id="animation-progress-loader-container" style="display: none">diff --git a/src/retarget/retarget.css b/src/retarget/retarget.cssindex 2313ba8..885dda8 100644--- a/src/retarget/retarget.css+++ b/src/retarget/retarget.css@@ -118,10 +118,6 @@ h1 {max-height: calc(100vh - 14rem);}-#animation-listing-count {- top: 1.87rem;-}-#auto-bone-map-match {font-size: 0.9rem;border: 3px solid var(--bg-tertiary);diff --git a/src/styles.css b/src/styles.cssindex b94cabf..daf6272 100644--- a/src/styles.css+++ b/src/styles.css@@ -148,8 +148,8 @@ div, p {#animation-listing-count {position: absolute;- right: 3rem;- top: 5rem;+ top: 0.3rem;+ right: 1rem;color: var(--text-alternate)}