From 30ff5301507a31ce64a065d2b8d8b88c7e2845e7 Mon Sep 17 00:00:00 2001 From: Lars Martens Date: Fri, 20 Aug 2021 19:26:01 +0200 Subject: [PATCH] Add inputs for equipment --- README.md | 4 ++-- src/App.vue | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4973d90..9a01f9e 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ This project is currently being rewritten. This document should be changed to in The following things still have to be done. Possibly in this order. - [ ] Equipment - [ ] Equipment locking - - [ ] Can we scrape the MC wiki for a searchable dropdown list? + - [ ] Can we scrape the MC wiki for a searchable dropdown list? https://minecraft.fandom.com/api.php ? - [ ] Colors for leather pieces - [ ] Helmet: player name - [ ] Helmet: Image URL - - [ ] Helmet: Give code from https://minecraft-heads.com ? + - [ ] Helmet: https://minecraft-heads.com -> but use Minecraft-URL or Player name and skip the give code thing, that was confusing anyways. Have a help popup that explains this functionality with a few screenshots. - [ ] Custom name with styling options - [ ] Code generation - [ ] **Proper rotation conversion between Minecraft and ThreeJS** diff --git a/src/App.vue b/src/App.vue index 2d6d005..f2c0796 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@
+ Marker +
+ @@ -40,6 +43,26 @@
Rotation
+ +
+ + +
+ + + + + + + +
+ +
+
@@ -71,8 +94,17 @@ class Armorstand { this.small = false this.marker = false this.centerCorrected = false + this.enableEquipment = false - // TODO Lots more to come + // Valid values for this attribute are "item", "name", "url". + // TODO More explanation what each value does + this.equipHandRight = "" + this.equipHandLeft = "" + this.equipBoots = "" + this.equipLeggings = "" + this.equipChestplate = "" + this.equipHelmet = "" + this.helmetMode = "item" } getScale() { if (this.small) {