blob: 2d4b27cb145933331e81d978b4ccfaf677a8f22d (
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
|
package at.hannibal2.skyhanni.config.features.gui;
import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.PositionList;
import at.hannibal2.skyhanni.features.gui.TabWidgetDisplay;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import java.util.ArrayList;
import java.util.List;
public class TabWidgetConfig {
@Expose
@ConfigOption(name = "Enabled", desc = "Enables the gui elements for the selected widgets.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = false;
@ConfigOption(name = "Not working Info", desc = "If the information isn't shown in the tablist it won't show anything. Use /widget to turn on the information you need.")
@ConfigEditorInfoText
public String text1;
@ConfigOption(name = "Enable Info", desc = "Drag only one new value at time into the list, since the default locations are all the same.")
@ConfigEditorInfoText
public String text2;
@Expose
@ConfigOption(name = "Widgets", desc = "")
@ConfigEditorDraggableList
public List<TabWidgetDisplay> display = new ArrayList<>();
@Expose
@ConfigLink(owner = TabWidgetConfig.class, field = "enabled")
public PositionList displayPositions = new PositionList(TabWidgetDisplay.getEntries().size());
}
|