Skip to content

Commit 3ce3f5b

Browse files
committed
very experimental html support
1 parent e413ed3 commit 3ce3f5b

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

rules.typ

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
]
3838
}
3939

40-
#align(center + horizon)[
40+
#[
41+
#set align(center + horizon)
4142
#text(size: 22pt)[
4243
*Minecraft: Java Edition\
4344
Speedrunning Rules*
44-
4545
]
4646
#text(size: 14pt)[
4747
Version: #version
@@ -223,14 +223,19 @@ A.2.11) <A.2.11> The F3 screen must be shown during or after the run, and before
223223
Below shows the elements that must be visible. Exact locations may depend on GUI Scale, chat settings, mods, timer settings, and more. A Twitch chat or similar is fine on bottom left, but it must be partially transparent because of in-game chat.
224224
#image("images/f3.png", width: 75%, scaling: "pixelated")
225225
Mod text on the bottom right is prone to moving around. Especially in newer versions, where it can go offscreen when hovering blocks, and is split up when not using Planifolia. Looking at the sky or changing GUI Scale may be necessary to fully display it.
226-
#align(center)[
227-
#grid(
228-
columns: 3,
229-
figure(image("images/non-planifolia.png", width: 80%), caption: "Without Planifolia", supplement: none),
230-
figure(image("images/planifolia.png", width: 80%), caption: "With Planifolia", supplement: none),
231-
figure(image("images/offscreen.png", width: 80%), caption: "Bottom block off-screen", supplement: none),
232-
)
233-
]
226+
#context {
227+
let columns = (
228+
figure(image("images/non-planifolia.png", width: 80%), caption: "Without Planifolia", supplement: none),
229+
figure(image("images/planifolia.png", width: 80%), caption: "With Planifolia", supplement: none),
230+
figure(image("images/offscreen.png", width: 80%), caption: "Bottom block off-screen", supplement: none),
231+
)
232+
if target() == "html" [
233+
#columns.join()
234+
] else [
235+
#set align(center)
236+
#grid(columns: 3, ..columns)
237+
]
238+
}
234239
If F3 was not shown but no mods were used but the Title Screen was in line with #entangledRule("A.2.11.c"), the text on the bottom left of the Title Screen must be visible.
235240
#image("images/title.png", width: 37.5%)
236241
If using OptiFine the version must be shown in F3. Additionally, in 1.7.10 and below the rest of the mod text is on the left.

0 commit comments

Comments
 (0)