Update README.md
This commit is contained in:
parent
4772bd4bd9
commit
fb6479bb05
3 changed files with 13 additions and 5 deletions
14
README.md
14
README.md
|
@ -5,6 +5,14 @@ Disclaimers
|
||||||
## For Users
|
## For Users
|
||||||
The Timer automatically splits every round. The Personal-Best-recorder automatically distinguishes between maps and difficulties.
|
The Timer automatically splits every round. The Personal-Best-recorder automatically distinguishes between maps and difficulties.
|
||||||
### Commands
|
### 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.
|
- /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
|
- Examples:
|
||||||
- selected on launch: default
|
- /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
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ public class RenderGameOverlayHandler {
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onRenderGameOverlay(RenderGameOverlayEvent.Post event) {
|
public void onRenderGameOverlay(RenderGameOverlayEvent.Post event) {
|
||||||
if (!Scoreboard.isZombies()) return;
|
|
||||||
if (event.type != RenderGameOverlayEvent.ElementType.TEXT) return;
|
if (event.type != RenderGameOverlayEvent.ElementType.TEXT) return;
|
||||||
Timer.getInstance().ifPresent(timer -> renderTime(timer.roundTime()));
|
Timer.getInstance().ifPresent(timer -> renderTime(timer.roundTime()));
|
||||||
if (Sla.isEnabled()) Sla.getInstance().ifPresent(sla -> {
|
if (Sla.isEnabled()) Sla.getInstance().ifPresent(sla -> {
|
||||||
|
@ -33,6 +32,7 @@ public class RenderGameOverlayHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void renderTime(long timerTicks) {
|
private void renderTime(long timerTicks) {
|
||||||
|
if (!Scoreboard.isZombies()) return;
|
||||||
long minutesPart = (timerTicks*50) / 60000;
|
long minutesPart = (timerTicks*50) / 60000;
|
||||||
long secondsPart = ((timerTicks*50) % 60000) / 1000;
|
long secondsPart = ((timerTicks*50) % 60000) / 1000;
|
||||||
long tenthSecondsPart = ((timerTicks*50) % 1000) / 100;
|
long tenthSecondsPart = ((timerTicks*50) % 1000) / 100;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
public class Category {
|
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];
|
public final TimesFile[] timesFiles = new TimesFile[7];
|
||||||
private final String name;
|
private final String name;
|
||||||
public Category() {
|
public Category() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue