aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Toolbar.java
blob: 446705c5b98f7e3a4f21bb91c3c932b13db166ed (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
 * 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.ConfigAccordionId;
import io.github.moulberry.moulconfig.annotations.ConfigEditorAccordion;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
import io.github.moulberry.moulconfig.annotations.ConfigEditorButton;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;

public class Toolbar {
	@Expose
	@ConfigOption(
		name = "Edit Toolbar Positions",
		desc = "Change the position of the QuickCommands / Search Bar"
	)
	@ConfigEditorButton(runnableId = 6, buttonText = "Edit")
	public boolean positionButton = true;

	@ConfigOption(
		name = "Search Bar",
		desc = ""
	)
	@ConfigEditorAccordion(id = 0)
	public boolean searchBarAccordion = false;

	@Expose
	@ConfigOption(
		name = "Show Search Bar",
		desc = "Show Itemlist search bar in the NEU toolbar"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean searchBar = true;

	@Expose
	@ConfigOption(
		name = "Show a quick settings button",
		desc = "Show quick settings button in the NEU toolbar"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean enableSettingsButton = true;

	@Expose
	@ConfigOption(
		name = "Show an inventory search button",
		desc = "Show button to enable inventory searching in the NEU toolbar"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean enableSearchModeButton = true;

	@Expose
	@ConfigOption(
		name = "CTRL+F keybind",
		desc = "Change the focus of the search bar when pressing CTRL + F"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean ctrlF = true;

	@Expose
	@ConfigOption(
		name = "Copy calculation result to clipboard",
		desc = "Copy the calculation result to clipboard when pressing ENTER in the search bar while calculating"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean copyToClipboardWhenGettingResult = true;

	@Expose
	@ConfigOption(
		name = "Search Bar Width",
		desc = "Change the width of the search bar"
	)
	@ConfigEditorSlider(
		minValue = 50f,
		maxValue = 300f,
		minStep = 10f
	)
	@ConfigAccordionId(id = 0)
	public int searchBarWidth = 200;

	@Expose
	@ConfigOption(
		name = "Search Bar Height",
		desc = "Change the height of the search bar"
	)
	@ConfigEditorSlider(
		minValue = 15f,
		maxValue = 50f,
		minStep = 1f
	)
	@ConfigAccordionId(id = 0)
	public int searchBarHeight = 40;

	@Expose
	@ConfigOption(
		name = "Auto turnoff search mode",
		desc = "Turns off the inventory search mode after 2 minutes"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean autoTurnOffSearchMode = true;

	@Expose
	@ConfigOption(
		name = "Show Quick Commands",
		desc = "Show QuickCommands\u2122 in the NEU toolbar"
	)
	@ConfigEditorBoolean
	public boolean quickCommands = false;

	@Expose
	@ConfigOption(
		name = "Quick Commands Click Type",
		desc = "Change the click type needed to trigger quick commands"
	)
	@ConfigEditorDropdown(
		values = {"Mouse Up", "Mouse Down"}
	)
	public int quickCommandsClickType = 0;
}