diff --git a/api/src/main/java/com/seibel/distanthorizons/api/enums/rendering/EDhApiRendererMode.java b/api/src/main/java/com/seibel/distanthorizons/api/enums/rendering/EDhApiRendererMode.java index aad4a8673..c9a89677c 100644 --- a/api/src/main/java/com/seibel/distanthorizons/api/enums/rendering/EDhApiRendererMode.java +++ b/api/src/main/java/com/seibel/distanthorizons/api/enums/rendering/EDhApiRendererMode.java @@ -20,17 +20,17 @@ package com.seibel.distanthorizons.api.enums.rendering; /** - * Default
- * Debug
- * Disabled
+ * DEFAULT
+ * DEBUG_TRIANGLE
+ * DISABLED
* * @since API 2.0.0 - * @version 2024-4-6 + * @version 2026-03-23 */ public enum EDhApiRendererMode { DEFAULT, - DEBUG, + DEBUG_TRIANGLE, DISABLED; @@ -40,8 +40,8 @@ public enum EDhApiRendererMode switch (type) { case DEFAULT: - return DEBUG; - case DEBUG: + return DEBUG_TRIANGLE; + case DEBUG_TRIANGLE: return DISABLED; default: return DEFAULT; @@ -55,10 +55,10 @@ public enum EDhApiRendererMode { case DEFAULT: return DISABLED; - case DEBUG: + case DEBUG_TRIANGLE: return DEFAULT; default: - return DEBUG; + return DEBUG_TRIANGLE; } } diff --git a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java index 85213a20c..b63a5695d 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java @@ -906,7 +906,7 @@ public class Config + "What renderer is active? \n" + "\n" + EDhApiRendererMode.DEFAULT + ": Default lod renderer \n" - + EDhApiRendererMode.DEBUG + ": Debug testing renderer \n" + + EDhApiRendererMode.DEBUG_TRIANGLE + ": Debug testing renderer \n" + EDhApiRendererMode.DISABLED + ": Disable rendering") .build(); diff --git a/core/src/main/resources/assets/distanthorizons/lang/en_us.json b/core/src/main/resources/assets/distanthorizons/lang/en_us.json index 35ac1763f..5d6d73acf 100644 --- a/core/src/main/resources/assets/distanthorizons/lang/en_us.json +++ b/core/src/main/resources/assets/distanthorizons/lang/en_us.json @@ -1053,7 +1053,7 @@ "distanthorizons.config.enum.EDhApiRendererMode.DEFAULT": "Default", - "distanthorizons.config.enum.EDhApiRendererMode.DEBUG": + "distanthorizons.config.enum.EDhApiRendererMode.DEBUG_TRIANGLE": "Debug Triangle", "distanthorizons.config.enum.EDhApiRendererMode.DISABLED": "Disabled", diff --git a/core/src/test/java/tests/DhApiConfigTest.java b/core/src/test/java/tests/DhApiConfigTest.java index 4979d6eb4..11168fe35 100644 --- a/core/src/test/java/tests/DhApiConfigTest.java +++ b/core/src/test/java/tests/DhApiConfigTest.java @@ -39,14 +39,14 @@ public class DhApiConfigTest public void ConfigTest() { ConfigEntry coreConfig = new ConfigEntry.Builder() - .set(EDhApiRendererMode.DEBUG) + .set(EDhApiRendererMode.DEBUG_TRIANGLE) .build(); DhApiConfigValue apiConfig = new DhApiConfigValue<>(coreConfig, new RenderModeEnabledConverter()); // start with no API value Assert.assertNull("API Value shouldn't be set yet", apiConfig.getApiValue()); - Assert.assertEquals("underlying config should be 'DEBUG'", EDhApiRendererMode.DEBUG, coreConfig.get()); + Assert.assertEquals("underlying config should be 'DEBUG'", EDhApiRendererMode.DEBUG_TRIANGLE, coreConfig.get()); // set API value @@ -62,7 +62,7 @@ public class DhApiConfigTest // clear API value apiConfig.clearValue(); Assert.assertNull("API Value should be null", apiConfig.getApiValue()); - Assert.assertEquals("underlying config should be 'DEBUG'", EDhApiRendererMode.DEBUG, coreConfig.get()); + Assert.assertEquals("underlying config should be 'DEBUG'", EDhApiRendererMode.DEBUG_TRIANGLE, coreConfig.get()); }