You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@CommentpublicstaticCommenttext1; // Comments are rendered like an option without a button and are excluded from the config file
17
-
@Comment(centered = true) publicstaticCommenttext2; // Centered comments are the same as normal ones - just centered!
18
-
@EntrypublicstaticbooleanshowInfo = true; // Example for a boolean option
16
+
@Comment(category = "text") publicstaticCommenttext1; // Comments are rendered like an option without a button and are excluded from the config file
17
+
@Comment(category = "text", centered = true) publicstaticCommenttext2; // Centered comments are the same as normal ones - just centered!
18
+
@Comment(category = "text") publicstaticCommentspacer1; // Comments containing the word "spacer" will just appear as a blank line
19
+
@Entry(category = "text") publicstaticbooleanshowInfo = true; // Example for a boolean option
19
20
@Entry(category = "text") publicstaticStringname = "Hello World!"; // Example for a string option, which is in a category!
20
21
@Entry(category = "text") publicstaticTestEnumtestEnum = TestEnum.FABRIC; // Example for an enum option
21
22
publicenumTestEnum { // Enums allow the user to cycle through predefined options
@@ -25,7 +26,7 @@ public enum TestEnum { // Enums allow the user to
25
26
@Entry(category = "numbers") publicstaticdoubleworld = 1.4D; // Example for a double option
26
27
@Entry(category = "numbers", min=69,max=420) publicstaticinthello = 420; // - The entered number has to be larger than 69 and smaller than 420
27
28
@Entry(category = "text", width = 7, min = 7, isColor = true, name = "I am a color!") publicstaticStringtitleColor = "#ffffff"; // The isColor property adds a preview box for a hexadecimal color
28
-
@Entry(category = "sliders", name = "I am an array list!") publicstaticList<String> arrayList = Lists.newArrayList("String1", "String2"); // Array String Lists are also supported
29
+
@Entry(category = "text", name = "I am an array list!") publicstaticList<String> arrayList = Lists.newArrayList("String1", "String2"); // Array String Lists are also supported
29
30
@Entry(category = "sliders", name = "I am an int slider.",isSlider = true, min = 0, max = 100) publicstaticintintSlider = 35; // Int fields can also be displayed as a Slider
30
31
@Entry(category = "sliders", name = "I am a float slider!", isSlider = true, min = 0f, max = 1f, precision = 1000) publicstaticfloatfloatSlider = 0.24f; // And so can floats! Precision defines the amount of decimal places
31
32
// The name field can be used to specify a custom translation string or plain text
0 commit comments