|
1 | 1 | <script lang="ts">
|
2 | 2 | import { BLUEPRINT_FORMAT } from '../blueprintFormat'
|
| 3 | + import AnimatedJavaIcon from '../assets/animated_java_icon.svg' |
| 4 | +
|
| 5 | + const title = document.querySelector('#format_page_animated_java_blueprint') |
| 6 | + ?.children[1] as HTMLHeadingElement |
| 7 | +
|
| 8 | + if (title) { |
| 9 | + let previousID = title.parentElement?.id |
| 10 | + if (!title.children.namedItem('format_icon')) { |
| 11 | + const img = new Image(48, 48) |
| 12 | + img.id = 'format_icon' |
| 13 | + img.src = AnimatedJavaIcon |
| 14 | + img.style.marginRight = '16px' |
| 15 | + img.style.borderRadius = '6px' |
| 16 | + img.style.boxShadow = '2px 2px 2px #000000aa' |
| 17 | + title.prepend(img) |
| 18 | + previousID = undefined |
| 19 | + setInterval(() => { |
| 20 | + if (title.parentElement?.id === previousID) return |
| 21 | + if (title.parentElement?.id === 'format_page_animated_java_blueprint') { |
| 22 | + img.style.display = 'block' |
| 23 | + title.style.display = 'flex' |
| 24 | + title.style.alignItems = 'center' |
| 25 | + title.style.fontWeight = 'normal' |
| 26 | + } else { |
| 27 | + img.style.display = 'none' |
| 28 | + title.style.fontWeight = 'lighter' |
| 29 | + } |
| 30 | + previousID = title.parentElement?.id |
| 31 | + }, 16) |
| 32 | + } |
| 33 | + } else { |
| 34 | + throw new Error('Format page title not found!') |
| 35 | + } |
3 | 36 |
|
4 | 37 | function createBlueprint() {
|
5 | 38 | newProject(BLUEPRINT_FORMAT)
|
|
9 | 42 | }
|
10 | 43 | </script>
|
11 | 44 |
|
12 |
| -<p class="format_description">Create advanced animated models in Vanilla Java Edition</p> |
| 45 | +<p class="format_description">Create advanced animated models for Vanilla Java Edition</p> |
13 | 46 |
|
14 | 47 | <p class="format_target">
|
15 | 48 | <b>Target</b>:
|
16 | 49 | <span>Minecraft: Java Edition</span>
|
17 | 50 | </p>
|
18 | 51 |
|
| 52 | +<h3 class="markdown"> |
| 53 | + <p class="markdown">Getting Started</p> |
| 54 | +</h3> |
| 55 | + |
| 56 | +<p> |
| 57 | + <a href="https://animated-java.dev/docs/getting-started/creating-a-blueprint" |
| 58 | + >Check out the Docs</a |
| 59 | + > to learn how to use Animated Java. |
| 60 | +</p> |
| 61 | + |
19 | 62 | <h3 class="markdown">
|
20 | 63 | <p class="markdown">Good to know:</p>
|
21 | 64 | </h3>
|
|
25 | 68 | at a time. However, the rotation of bones is not restricted.
|
26 | 69 | </li>
|
27 | 70 | <li class="markdown">
|
28 |
| - Documentation for Animated Java can be found at <a href="https://animated-java.dev/" |
29 |
| - >https://animated-java.dev/</a |
| 71 | + Documentation for Animated Java can be found at <a href="https://animated-java.dev/docs" |
| 72 | + >https://animated-java.dev/docs</a |
30 | 73 | >
|
31 | 74 | </li>
|
32 | 75 | </ul>
|
|
0 commit comments