Import a 3D Model and automatically assign and export animations
TypeScript
Turn show skeleton into a toggle on animation listing. Make preview animation area larger
Scott Petrovice8259fcfa02f
diff --git a/src/index.html b/src/index.htmlindex b912e5d..6a4b54e 100644--- a/src/index.html+++ b/src/index.html@@ -298,22 +298,21 @@<input type="number" id="extend-arm-input" name="arm-extend-input" value="3" min="-25" max="25" step="1"><span class="suffix-unit">%</span><button id="extend-arm-button" class="secondary-button" >Open Arms</button>++ <!-- checkbox option to show skeleton -->+ <div class="styled-checkbox icon-toggle">+ <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">+ <label for="show-skeleton-checkbox" title="Show skeleton" tabindex="0">+ <span class="material-symbols-outlined">visibility</span>+ </label>+ </div></div><hr /></div>--- <!-- checkbox option to show skeleton -->- <div class="styled-checkbox">- <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show">- <label for="show-skeleton-checkbox">Show skeleton</label>- </div>-- <hr />-+<div style="display: flex; gap: 0.5rem;"><button class="secondary-button" id="action_back_to_edit_skeleton" >‹ Back</button>diff --git a/src/styles.css b/src/styles.cssindex 3e3d635..009bff5 100644--- a/src/styles.css+++ b/src/styles.css@@ -57,6 +57,26 @@ h1, h2, h3, h4, h5, h6, input, button, select {display: inline-block;}+/* Icon toggle for show skeleton */+.icon-toggle label {+ cursor: pointer;+ padding: 6px;+ border-radius: 6px;+ transition: background 0.2s, color 0.2s;+ color: #888;+ background: none;+ display: inline-flex;+ align-items: center;+}++.icon-toggle input[type="checkbox"]:checked + label,+.icon-toggle input[type="checkbox"] + label:hover {+ background: var(--button-primary-bg);+}+.icon-toggle input[type="checkbox"]:checked + label:hover {+ background: var(--button-alternate-bg);+}+#skinned-step-tools@@ -296,7 +316,7 @@ option {#animations-items{- max-height: 15rem;+ max-height: 27rem;display: inline-flex;overflow: auto;;flex-direction: row;