aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/StorageGUI.java
blob: 2dfbcf0d1d7da385024a7c60621b25dfc141e9b4 (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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
/*
 * Copyright (C) 2022-2023 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.ConfigEditorColour;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigEditorInfoText;
import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind;
import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
import org.lwjgl.input.Keyboard;

public class StorageGUI {
	@ConfigOption(
		name = "Storage Overlay",
		desc = "Ender Chest / Backpack"
	)
	@ConfigEditorAccordion(id = 1)
	public boolean storageOverlayAccordion = false;

	@Expose
	public int selectedIndex = 0;
	@ConfigOption(
		name = "\u00A7cWarning",
		desc = "You need Fast Render and Antialiasing off for these settings to work\n" +
			"You can find these in your video settings"
	)
	@ConfigEditorInfoText()
	@ConfigAccordionId(id = 1)
	public boolean storageGUIWarning = false;
	@Expose
	@ConfigOption(
		name = "Enable Storage GUI",
		desc = "Show a custom storage overlay when accessing /storage. " +
			"Makes switching between pages much easier and also allows for searching through all storages"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean enableStorageGUI3 = true;

	@Expose
	@ConfigOption(
		name = "Storage Height",
		desc = "Change the height of the storage preview section. Increasing this allows more storages to be seen at once"
	)
	@ConfigEditorSlider(
		minValue = 104,
		maxValue = 312,
		minStep = 26
	)
	@ConfigAccordionId(id = 1)
	public int storageHeight = 208;

	@Expose
	@ConfigOption(
		name = "Storage Style",
		desc = "Change the visual style of the overlay"
	)
	@ConfigEditorDropdown(
		values = {"Transparent", "Minecraft", "Grey", "Custom"}
	)
	@ConfigAccordionId(id = 1)
	public int displayStyle = 0;

	@Expose
	@ConfigOption(
		name = "Enderchest Preview",
		desc = "Preview Enderchest pages when hovering over the selector on the left side"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean enderchestPreview = true;

	@Expose
	@ConfigOption(
		name = "Backpack Preview",
		desc = "Preview Backpacks when hovering over the selector on the left side"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean backpackPreview = true;

	@Expose
	@ConfigOption(
		name = "Compact Vertically",
		desc = "Remove the space between backpacks when there is a size discrepancy"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean masonryMode = false;

	@Expose
	@ConfigOption(
		name = "Fancy Glass Panes",
		desc = "Replace the glass pane textures in your storage containers with a fancy connected texture"
	)
	@ConfigEditorDropdown(
		values = {"On", "Locked", "Off"}
	)
	@ConfigAccordionId(id = 1)
	public int fancyPanes = 0;

	@Expose
	@ConfigOption(
		name = "Search Bar Autofocus",
		desc = "Automatically focus the search bar when pressing keys"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean searchBarAutofocus = true;

	@Expose
	@ConfigOption(
		name = "Show Enchant Glint",
		desc = "Toggle enchant glint in storage GUI"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean showEnchantGlint = true;

	@Expose
	@ConfigOption(
		name = "Selected Storage Colour",
		desc = "Change the colour used to draw the selected backpack border"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 1)
	public String selectedStorageColour = "0:255:255:223:0";

	@Expose
	@ConfigOption(
		name = "Custom Text Colour",
		desc = "Use a custom default text colour.\nOverrides the colour set by the overlay style.\nCan be overridden by using colour codes in the page title."
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean useCustomTextColour = false;

	@Expose
	@ConfigOption(
		name = "Custom Text Colour",
		desc = "Requires the above option to be set to true"
	)
	@ConfigEditorColour
	@ConfigAccordionId(id = 1)
	public String customTextColour = "0:255:144:144:144";

	@Expose
	@ConfigOption(
		name = "Scrollable Tooltips",
		desc = "Support for scrolling tooltips for users with small monitors\n" +
			"This will prevent the menu from scrolling while holding the key, allowing you to scroll tooltips"
	)
	@ConfigEditorKeybind(defaultKey = 0)
	@ConfigAccordionId(id = 1)
	public int cancelScrollKey = 0;

	@Expose
	@ConfigOption(
		name = "Disable Optifine CIT",
		desc = "Disables Optifine custom items to improve performance"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 1)
	public boolean disableCIT = false;

	@ConfigOption(
		name = "Inventory Backpacks",
		desc = ""
	)
	@ConfigEditorAccordion(id = 0)
	public boolean inventorySlotAccordion = false;

	@Expose
	@ConfigOption(
		name = "Inventory Backpacks",
		desc = "Add a \"10th slot\" to your inventory which allows you to quickly access your backpacks"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean showInvBackpack = false;

	//public boolean showInvBackpack = false;
	@Expose
	@ConfigOption(
		name = "Scroll to Backpack",
		desc = "Allow scrolling to the backpack using the mouse wheel.\n" +
			"\"Scroll (Key)\" = Allow scrolling to 10th slot only while 'Backpack Scroll Key' (default: SHIFT) is pressed"
	)
	@ConfigEditorDropdown(
		values = {"Scroll (Key)", "Scroll (Always)", "Don't Scroll"}
	)
	@ConfigAccordionId(id = 0)
	public int scrollToBackpack2 = 0;

	@Expose
	@ConfigOption(
		name = "Backpack Side",
		desc = "Set which side of the hotbar the backpack slot shows"
	)
	@ConfigEditorDropdown(
		values = {"Left", "Right"}
	)
	@ConfigAccordionId(id = 0)
	public int backpackHotbarSide = 0;

	@Expose
	@ConfigOption(
		name = "Backpack Peeking",
		desc = "When the backpack is selected, show it's contents on your screen"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean showInvBackpackPreview = true;

	@Expose
	@ConfigOption(
		name = "Backpack Opacity%",
		desc = "Change the opacity of the backpack preview background"
	)
	@ConfigEditorSlider(
		minValue = 0,
		maxValue = 100,
		minStep = 5
	)
	@ConfigAccordionId(id = 0)
	public int backpackOpacity = 50;

	@Expose
	@ConfigOption(
		name = "Backpack Scroll Key",
		desc = "Change the key which needs to be pressed in order to allow backpacks to be scrolled between"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_LSHIFT)
	@ConfigAccordionId(id = 0)
	public int backpackScrollKey = Keyboard.KEY_LSHIFT;

	@Expose
	@ConfigOption(
		name = "Backpack Hotkey",
		desc = "Hotkey to quickly switch to the backpack slot"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_GRAVE)
	@ConfigAccordionId(id = 0)
	public int backpackHotkey = Keyboard.KEY_GRAVE;

	@Expose
	@ConfigOption(
		name = "Arrow Key Backpacks",
		desc = "Use arrow keys [LEFT],[RIGHT] to move between backpacks and [DOWN] to navigate backpack even when the slot is not selected. Keys are customizable below"
	)
	@ConfigEditorBoolean
	@ConfigAccordionId(id = 0)
	public boolean arrowKeyBackpacks = false;

	@ConfigOption(
		name = "Arrow Key Backpack Keybinds",
		desc = ""
	)
	@ConfigEditorAccordion(id = 2)
	@ConfigAccordionId(id = 0)
	public boolean backpackArrowAccordion = false;

	@Expose
	@ConfigOption(
		name = "Backpack Left",
		desc = "Select the backpack to the left"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_LEFT)
	@ConfigAccordionId(id = 2)
	public int arrowLeftKey = Keyboard.KEY_LEFT;

	@Expose
	@ConfigOption(
		name = "Backpack Right",
		desc = "Select the backpack to the right"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_RIGHT)
	@ConfigAccordionId(id = 2)
	public int arrowRightKey = Keyboard.KEY_RIGHT;

	@Expose
	@ConfigOption(
		name = "Backpack Open",
		desc = "Open the selected backpack"
	)
	@ConfigEditorKeybind(defaultKey = Keyboard.KEY_DOWN)
	@ConfigAccordionId(id = 2)
	public int arrowDownKey = Keyboard.KEY_DOWN;
}