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
|
/*
* 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.ConfigEditorBoolean;
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 SlotLocking {
@Expose
@ConfigOption(
name = "\u00A7cWarning",
desc = "Make sure you have SBA's locked slots off before you turn NEU's on"
)
@ConfigEditorInfoText()
public boolean slotLockWarning = false;
@Expose
@ConfigOption(
name = "Enable Slot Locking",
desc = "Allows you to lock slots and create slot bindings"
)
@ConfigEditorBoolean
public boolean enableSlotLocking = false;
@Expose
@ConfigOption(
name = "Enable Slot Binding",
desc = "Allows you to create slot bindings\nNote: \"Enable Slot Locking\" must be on"
)
@ConfigEditorBoolean
public boolean enableSlotBinding = true;
@Expose
@ConfigOption(
name = "Don't Drop Bound Slots",
desc = "Slot bindings also act as locked slots (prevents dropping / moving in inventory)"
)
@ConfigEditorBoolean
public boolean bindingAlsoLocks = false;
@Expose
@ConfigOption(
name = "Slot Lock Key",
desc = "Click this key to LOCK a slot\n" +
"Hold this key and drag to BIND a slot"
)
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_L)
public int slotLockKey = Keyboard.KEY_L;
@Expose
@ConfigOption(
name = "Lock Slots in Trade",
desc = "Prevents trading locked items in the custom trade windows"
)
@ConfigEditorBoolean
public boolean lockSlotsInTrade = true;
@Expose
@ConfigOption(
name = "Disable Locking in Storage",
desc = "Disables slot locking and binding in the storage gui"
)
@ConfigEditorBoolean
public boolean disableInStorage = false;
@Expose
/*@ConfigOption(
name = "Item Swap drop delay",
desc = "Set the delay between swapping to another item and being able to drop it.\n"+
"This is to fix a bug that allowed you to drop slot locked items."
)
@ConfigEditorSlider(
minValue = 0,
maxValue = 500,
minStep = 5
)*/
public int slotLockSwapDelay = 100;
@Expose
@ConfigOption(
name = "Slot Lock Sound",
desc = "Play a ding when locking/unlocking slots"
)
@ConfigEditorBoolean
public boolean slotLockSound = true;
@Expose
@ConfigOption(
name = "Slot Lock Sound Vol.",
desc = "Set the volume of the ding sound"
)
@ConfigEditorSlider(
minValue = 0,
maxValue = 100,
minStep = 1
)
public float slotLockSoundVol = 20;
}
|