Add MojangAPI integration for skin and cape management
Introduces MojangAPI utility for handling skin uploads, cape management, and username changes via new backend endpoints. Updates Program.cs to support new IPC commands for skin selection, uploading, cape toggling, and username changes. Refactors frontend (logged.js, logged.html, logged.css) to provide UI for skin uploads, cape selection, and username changes, including new styles and blank cape asset. Refactors UserRecord to allow username mutation.
This commit is contained in:
@@ -43,11 +43,11 @@
|
||||
Pseudo
|
||||
</h2>
|
||||
<p>
|
||||
Tu veux changer de pseudo l'ami ? C'est ici
|
||||
Tu veux changer de blaze mon frérot ? Ça se passe ici.
|
||||
</p>
|
||||
<div>
|
||||
<input type="text" name="usernameChange" id="usernameChange" placeholder="Jeb_">
|
||||
<button>
|
||||
<button onclick="changeUsername(usernameChange.value)">
|
||||
Valider
|
||||
</button>
|
||||
</div>
|
||||
@@ -57,8 +57,13 @@
|
||||
Capes
|
||||
</h2>
|
||||
<p>
|
||||
T'a froid ? Couvre toi un peu mon frère
|
||||
Tu te sens nu ? Viens t'couvrir avec une cape mon reuf.
|
||||
</p>
|
||||
<div class="capes">
|
||||
<div id="blank" class="cape">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<article class="skin">
|
||||
<h2>
|
||||
@@ -67,6 +72,11 @@
|
||||
<p>
|
||||
Tu veux rafraîchir un peu ton style ? Par là
|
||||
</p>
|
||||
<div class="skinUpload" onclick="selectSkin()">
|
||||
<h3>
|
||||
Clique ici frérot
|
||||
</h3>
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
@@ -152,7 +162,7 @@
|
||||
</aside>
|
||||
</main>
|
||||
|
||||
<script type="module" crossorigin src="./assets/js/skinview3d.bundle.js"></script>
|
||||
<script type="module" src="./assets/js/skinview3d.bundle.js"></script>
|
||||
<script src="./assets/js/ipc.js"></script>
|
||||
<script src="./assets/js/common.js"></script>
|
||||
<script src="./assets/js/frames.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user