From da27580f015e45b1dec16ff5927521848be20e18 Mon Sep 17 00:00:00 2001 From: Zayrex Date: Sat, 22 Aug 2026 20:21:12 +0800 Subject: [PATCH 1/3] Update replay container visibility in single-score.html --- src/main/resources/template/single-score.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/template/single-score.html b/src/main/resources/template/single-score.html index fe10a37..fb82479 100644 --- a/src/main/resources/template/single-score.html +++ b/src/main/resources/template/single-score.html @@ -521,8 +521,8 @@ src="https://a.ppy.sh/2" th:src="${cache.getImageSrc(score.getUser().getAvatarUrl())}">
-
- ▶ +
+ ▶
15 mins ago
From a22018200e809bc520c43f6fd42d51041ad6f0ce Mon Sep 17 00:00:00 2001 From: ZayrexDev Date: Sat, 22 Aug 2026 23:16:31 +0800 Subject: [PATCH 2/3] Adjusted layout in multiplayer-room-result.html --- pom.xml | 2 +- .../template/multiplayer-room-result.html | 102 +++++++++++++++--- 2 files changed, 87 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index da87b67..4d23d4a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.BotSeira oStella - 1.11.0 + 1.11.1 25 diff --git a/src/main/resources/template/multiplayer-room-result.html b/src/main/resources/template/multiplayer-room-result.html index 0b41f25..b8e04c4 100644 --- a/src/main/resources/template/multiplayer-room-result.html +++ b/src/main/resources/template/multiplayer-room-result.html @@ -623,7 +623,7 @@ isolation: isolate; min-width: 0; overflow: visible; - padding: 30px 52px 28px 30px; + padding: 32px 52px 28px 30px; } .duel-cover { @@ -685,6 +685,47 @@ background: linear-gradient(270deg, rgba(21, 24, 41, 0.64), rgba(21, 24, 41, 0.96)); } + .duel-winner-title { + position: absolute; + top: 0; + height: 26px; + z-index: 10; + font-weight: 900; + font-size: 22px; + padding: 0 20px; + letter-spacing: 4px; + } + + .duel-winner-title.left { + width: 105.2%; + left: 0; + clip-path: polygon( + 0 0, + calc(99.2%) 0, + calc(98.88%) 100%, + 0 100%); + text-align: right; + + background-color: var(--red-team); + } + + .duel-winner-title.right { + width: 97%; + right: 0; + clip-path: polygon( + calc(1.4%) 0, + 100% 0, + 100% 100%, + calc(0.5%) 100% + ); + text-align: left; + background-color: var(--blue-team); + } + + .duelist:not(.winner) .duel-winner-title { + visibility: hidden; + } + .duelist.right { padding-right: 30px; padding-left: 52px; @@ -966,6 +1007,14 @@ text-align: right; } + .team-panel.red.winner .team-header { + background: var(--red-team); + } + + .team-panel.blue.winner .team-header { + background: var(--blue-team); + } + .team-label { font-size: 26px; font-weight: 900; @@ -976,6 +1025,15 @@ color: #fecdd3; } + .team-panel.red.winner .team-label, + .team-panel.red.winner .team-total, + .team-panel.red.winner .team-count, + .team-panel.blue.winner .team-label, + .team-panel.blue.winner .team-total, + .team-panel.blue.winner .team-count { + color: #ffffff; + } + .team-panel.blue .team-label, .team-panel.blue .team-total { color: #dbeafe; @@ -1478,6 +1536,9 @@
+
+ WINNER +
@@ -1502,7 +1563,9 @@ th:text="${left.totalScore == null ? '--' : #numbers.formatInteger(left.totalScore, 1, 'COMMA')}"> 1,000,000
-
-123,456
+
-123,456 +
Insane @@ -1525,19 +1588,20 @@
RankS
- - - + + +
- Winner VS - Winner
+
+ WINNER +
@@ -1558,7 +1622,9 @@
-
-123,456
+
-123,456 +
985,000 @@ -1585,9 +1651,9 @@
RankA
- - - + + +
@@ -1595,7 +1661,8 @@
-
+
Red Team
@@ -1606,7 +1673,8 @@
-
#1
@@ -1652,7 +1720,8 @@
-
+
Blue Team
@@ -1663,7 +1732,8 @@
-
#2
@@ -1727,7 +1797,7 @@
+ th:text="${result.winningTeam == 'tie' ? 'Tie' : (result.winningTeam == 'red' ? 'Red Team wins' : 'Blue Team wins') + ' By +' + #numbers.formatInteger((red.totalScore >= blue.totalScore ? red.totalScore - blue.totalScore : blue.totalScore - red.totalScore), 1, 'COMMA')}"> Red Team wins By +50,000
From a3632d99f290782779fa1d447a6917d7cfec3aaf Mon Sep 17 00:00:00 2001 From: ZayrexDev Date: Sat, 22 Aug 2026 23:17:55 +0800 Subject: [PATCH 3/3] Remove MissVisualizeTest.java --- .../xyz/zcraft/ostella/MissVisualizeTest.java | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/test/java/xyz/zcraft/ostella/MissVisualizeTest.java diff --git a/src/test/java/xyz/zcraft/ostella/MissVisualizeTest.java b/src/test/java/xyz/zcraft/ostella/MissVisualizeTest.java deleted file mode 100644 index e6fe845..0000000 --- a/src/test/java/xyz/zcraft/ostella/MissVisualizeTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package xyz.zcraft.ostella; - -import org.junit.jupiter.api.Test; -import xyz.zcraft.ostella.service.MissVisualizeService; -import xyz.zcraft.osu.parser.BeatmapParser; -import xyz.zcraft.osu.parser.ReplayAnalyzer; -import xyz.zcraft.osu.parser.ReplayParser; -import xyz.zcraft.osu.parser.data.beatmap.OsuBeatmap; -import xyz.zcraft.osu.parser.data.replay.OsuReplay; -import xyz.zcraft.osu.parser.data.replay.ReplayAnalyze; - -import java.nio.file.Files; -import java.nio.file.Path; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static xyz.zcraft.ostella.Util.getRes; - -public class MissVisualizeTest { - @Test - public void missVisualizeTest() throws Exception { - final OsuBeatmap osuBeatmap = BeatmapParser.parseBeatmap(getRes("beatmaps/468994.osu")); - final OsuReplay osuReplay = ReplayParser.parseReplay(getRes("replays/solo-replay-osu_468994_6770584522.osr")); - - assertEquals("REANIMATE", osuBeatmap.getTitle()); - - final ReplayAnalyze analyze = ReplayAnalyzer.analyze(osuBeatmap, osuReplay); - final byte[] bytes = MissVisualizeService.visualizeMiss(analyze, 1); - - final Path out = Path.of("test-data/miss.png"); - Files.createDirectories(out.getParent()); - - Files.write(out, bytes); - } -}