From 7e5e388e6c3984fd9861b32f301a053f2754e041 Mon Sep 17 00:00:00 2001 From: KittenTM Date: Tue, 3 Feb 2026 04:38:47 +0100 Subject: [PATCH] migrate previously font rendered text to use ninty images --- stages/index.html | 4 +++- stages/stages.js | 7 +++---- stages/styles.css | 42 +++++++++++++++++++++++++++--------------- 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/stages/index.html b/stages/index.html index 44f1367..a262fc7 100644 --- a/stages/index.html +++ b/stages/index.html @@ -14,7 +14,9 @@
-
Loading
+
+ Loading +
diff --git a/stages/stages.js b/stages/stages.js index 64fe91b..b266f90 100644 --- a/stages/stages.js +++ b/stages/stages.js @@ -106,7 +106,6 @@ function animateLoadingCanvas() { }; } -//pain in the ass to implement. im proud of ts const canvas = document.getElementById("squid-canvas"); const ctx = canvas.getContext("2d"); const frameWidth = 64; @@ -209,7 +208,7 @@ async function renderStages() {
Regular Battle -
Regular Battle
+
Regular Battle
@@ -225,11 +224,11 @@ async function renderStages() {
Ranked Battle -
Ranked Battle
+
Ranked Battle
-
Battle Mode
+
Battle Mode
${rotation.ranked_mode}
diff --git a/stages/styles.css b/stages/styles.css index 0d1fa59..719c40f 100644 --- a/stages/styles.css +++ b/stages/styles.css @@ -101,13 +101,15 @@ body { .mode-text { margin: 0; - text-align: left; - color: white; - font-family: "Splatoon1", sans-serif; - font-size: 44px; - letter-spacing: 1.2px; - user-select: none; margin-left: -60px; + display: flex; + align-items: center; +} + +.mode-text img { + height: 88px; + width: auto; + display: block; } .stages { @@ -149,11 +151,15 @@ body { } .battle-mode-text { - font-family: "Splatoon1", sans-serif; - color: white; - font-size: 30px; - letter-spacing: 1px; margin-bottom: 4px; + display: flex; + justify-content: center; +} + +.battle-mode-text img { + height: 70px; + width: auto; + display: block; } .ranked-mode-text { @@ -235,9 +241,15 @@ body { #loading-text { margin-top: 12px; - color: white; - font-family: "Splatoon1", sans-serif; - font-size: 20px; - letter-spacing: 1.2px; - text-align: center; + display: flex; + justify-content: center; + align-items: center; +} + +#loading-text img { + height: 35px; + width: auto; + display: block; + user-select: none; + pointer-events: none; } \ No newline at end of file