change EDhApiRendererMode DEBUG -> DEBUG_TRIANGLE
This commit is contained in:
+9
-9
@@ -20,17 +20,17 @@
|
||||
package com.seibel.distanthorizons.api.enums.rendering;
|
||||
|
||||
/**
|
||||
* Default <br>
|
||||
* Debug <br>
|
||||
* Disabled <br>
|
||||
* DEFAULT <br>
|
||||
* DEBUG_TRIANGLE <br>
|
||||
* DISABLED <br>
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -39,14 +39,14 @@ public class DhApiConfigTest
|
||||
public void ConfigTest()
|
||||
{
|
||||
ConfigEntry<EDhApiRendererMode> coreConfig = new ConfigEntry.Builder<EDhApiRendererMode>()
|
||||
.set(EDhApiRendererMode.DEBUG)
|
||||
.set(EDhApiRendererMode.DEBUG_TRIANGLE)
|
||||
.build();
|
||||
|
||||
DhApiConfigValue<EDhApiRendererMode, Boolean> 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());
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user