aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/SlayerOverlay.java
blob: 561e4980038de6315ab722dec6666ff4866dd1ce (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * Copyright (C) 2022 NotEnoughUpdates contributors
 *
 * This file is part of NotEnoughUpdates.
 *
 * NotEnoughUpdates is free software: you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * NotEnoughUpdates is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with NotEnoughUpdates. If not, see <https://www.gnu.org/licenses/>.
 */

package io.github.moulberry.notenoughupdates.options.separatesections;

import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.ConfigEditorInfoText;
import io.github.moulberry.notenoughupdates.core.config.Position;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigOption;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class SlayerOverlay {
	@Expose
	@ConfigOption(
		name = "\u00A7cWarning",
		desc = "You may have to do 2 bosses before everything shows"
	)
	@ConfigEditorInfoText()
	public boolean slayerWarning = false;

	@Expose
	@ConfigOption(
		name = "Enable Slayer Overlay",
		desc = "Toggles the slayer overlay"
	)
	@ConfigEditorBoolean
	public boolean slayerOverlay = false;

	@Expose
	@ConfigOption(
		name = "Only show when relevant",
		desc = "Only shows the overlay when you are in an area where your current Slayer can be completed"
	)
	@ConfigEditorBoolean
	public boolean onlyShowWhenRelevant = true;

	@Expose
	@ConfigOption(
		name = "Slayer Text",
		desc = "\u00a7eDrag text to change the appearance of the overlay"
	)
	@ConfigEditorDraggableList(
		exampleText = {
			"\u00a7eSlayer: \u00a74Sven",
			"\u00a7eRNG Meter: \u00a75100%",
			"\u00a7eLvl: \u00a7d7",
			"\u00a7eKill time: \u00a7c1:30",
			"\u00a7eXP: \u00a7d75,450/100,000",
			"\u00a7eBosses till next Lvl: \u00a7d17",
			"\u00a7eAverage kill time: \u00a7c3:20"
		}
	)
	public List<Integer> slayerText = new ArrayList<>(Arrays.asList(0, 1, 4, 5, 3, 6));

	@Expose
	public Position slayerPosition = new Position(10, 200);

	@Expose
	@ConfigOption(
		name = "Slayer Style",
		desc = "Change the style of the Slayer overlay"
	)
	@ConfigEditorDropdown(
		values = {"Background", "No Shadow", "Shadow", "Full Shadow"}
	)
	public int slayerStyle = 0;
}