Add an annotation to skip config enums

This commit is contained in:
James Seibel
2023-06-12 20:24:49 -05:00
parent a00671c2e5
commit 12d5d9e32b
4 changed files with 68 additions and 0 deletions
@@ -0,0 +1,17 @@
package com.seibel.lod.api.enums.config;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Add this annotation to enum values that
* are valid config options, but shouldn't be selectable
* when toggling through the options. <br><br>
*
* Example: A preset's "custom" option shouldn't be selectable
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface DisallowSelectingViaConfigGui
{
}
@@ -19,6 +19,8 @@
package com.seibel.lod.api.enums.config.quickOptions;
import com.seibel.lod.api.enums.config.DisallowSelectingViaConfigGui;
/**
* CUSTOM, <br><br>
*
@@ -34,6 +36,7 @@ public enum EQualityPreset
// when adding items up the API minor version
// when removing items up the API major version
@DisallowSelectingViaConfigGui
CUSTOM,
MINIMUM,
@@ -19,6 +19,8 @@
package com.seibel.lod.api.enums.config.quickOptions;
import com.seibel.lod.api.enums.config.DisallowSelectingViaConfigGui;
/**
* CUSTOM, <br><br>
*
@@ -34,6 +36,7 @@ public enum EThreadPreset
// when adding items up the API minor version
// when removing items up the API major version
@DisallowSelectingViaConfigGui
CUSTOM,
MINIMAL_IMPACT,