Update README.md

This commit is contained in:
Moritz Roßbacher 2023-11-03 16:18:31 +01:00
parent 4772bd4bd9
commit fb6479bb05
3 changed files with 13 additions and 5 deletions

View file

@ -5,6 +5,14 @@ Disclaimers
## For Users
The Timer automatically splits every round. The Personal-Best-recorder automatically distinguishes between maps and difficulties.
### Commands
- /runCategory <name> - Switches to the category called name. All recorded times are bound to its category. Tabcomplete suggests already existing categories, but you can insert a new (clean) one as well.
- Examples: /runCategory pistol_only, /runCategory casual
- selected on launch: default
- /runCategory \<name> - Switches to the category called name. All recorded times are bound to its category. Tabcomplete suggests already existing categories, but you can insert a new (clean) one as well.
- Examples:
- /runCategory pistol_only
- /runCategory casual
- default name: general
- /sla \<toggle|set|offset>
- /sla toggle - Enables / disables the overlay
- default state: disabled
- /sla set \<de|bb|aa> - forcefully set the map
- /sla offset \<x> \<y> \<z> - set an offset, allowing you to use sla on map-recreations, such as housings

View file

@ -22,7 +22,6 @@ public class RenderGameOverlayHandler {
@SubscribeEvent
public void onRenderGameOverlay(RenderGameOverlayEvent.Post event) {
if (!Scoreboard.isZombies()) return;
if (event.type != RenderGameOverlayEvent.ElementType.TEXT) return;
Timer.getInstance().ifPresent(timer -> renderTime(timer.roundTime()));
if (Sla.isEnabled()) Sla.getInstance().ifPresent(sla -> {
@ -33,6 +32,7 @@ public class RenderGameOverlayHandler {
}
private void renderTime(long timerTicks) {
if (!Scoreboard.isZombies()) return;
long minutesPart = (timerTicks*50) / 60000;
long secondsPart = ((timerTicks*50) % 60000) / 1000;
long tenthSecondsPart = ((timerTicks*50) % 1000) / 100;

View file

@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
import java.io.File;
public class Category {
private static String selectedCategory = "default"; // read from config ?
private static String selectedCategory = "general"; // read from config ?
public final TimesFile[] timesFiles = new TimesFile[7];
private final String name;
public Category() {