-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSnapperConfig.java
More file actions
47 lines (36 loc) · 2.19 KB
/
SnapperConfig.java
File metadata and controls
47 lines (36 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package dev.spiritstudios.snapper;
import dev.spiritstudios.snapper.gui.screen.ScreenshotViewerScreen;
import dev.spiritstudios.snapper.util.SnapperUtil;
import dev.spiritstudios.snapper.util.config.DirectoryConfigUtil;
import dev.spiritstudios.snapper.util.uploading.AxolotlClientApi;
import dev.spiritstudios.specter.api.config.Config;
import dev.spiritstudios.specter.api.config.ConfigHolder;
import dev.spiritstudios.specter.api.config.Value;
import java.nio.file.Path;
public final class SnapperConfig extends Config<SnapperConfig> {
public static final ConfigHolder<SnapperConfig, ?> HOLDER = ConfigHolder.builder(
Snapper.id("snapper"), SnapperConfig.class
).build();
public static final SnapperConfig INSTANCE = HOLDER.get();
public final Value<Boolean> copyTakenScreenshot = booleanValue(false)
.comment("Whether to copy screenshots to clipboard when taken.")
.build();
public final Value<Boolean> showSnapperTitleScreen = booleanValue(true)
.comment("Whether to show Snapper button on title screen.")
.build();
public final Value<Boolean> showSnapperGameMenu = booleanValue(true)
.comment("Whether to show Snapper button in game menu.")
.build();
public final Value<ScreenshotViewerScreen.ViewMode> viewMode = enumValue(ScreenshotViewerScreen.ViewMode.GRID, ScreenshotViewerScreen.ViewMode.class)
.comment("Whether to show screenshot menu with grid or list.")
.build();
public final Value<AxolotlClientApi.TermsAcceptance> termsAccepted = enumValue(AxolotlClientApi.TermsAcceptance.UNSET, AxolotlClientApi.TermsAcceptance.class)
.comment("Whether the terms of AxolotlClient have been accepted.")
.build();
public final Value<Boolean> useCustomScreenshotFolder = booleanValue(false)
.comment("Whether to use a custom screenshot folder instead of Minecraft's default")
.build();
public final Value<Path> customScreenshotFolder = value(Path.of(SnapperUtil.getOSUnifiedFolder().toString()), DirectoryConfigUtil.PATH_CODEC)
.comment("What folder to use if custom screenshot folders are enabled.")
.build();
}