Add an annotation to skip config enums
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user