Fix ECogDebugRecolorMode not an enum class

This commit is contained in:
Arnaud Jamin
2024-12-31 22:08:14 -05:00
parent 34da6c96a6
commit b07213cd0f
2 changed files with 3 additions and 3 deletions
@@ -13,7 +13,7 @@ struct FCogDebugDrawOverlapParams;
struct FCogDebugDrawSweepParams; struct FCogDebugDrawSweepParams;
UENUM() UENUM()
enum ECogDebugRecolorMode : uint8 enum class ECogDebugRecolorMode : uint8
{ {
None, None,
Color, Color,
@@ -63,7 +63,7 @@ struct FCogDebugSettings
float AxesScale = 1.0f; float AxesScale = 1.0f;
UPROPERTY(Config) UPROPERTY(Config)
TEnumAsByte<ECogDebugRecolorMode> RecolorMode = None; ECogDebugRecolorMode RecolorMode = ECogDebugRecolorMode::None;
UPROPERTY(Config) UPROPERTY(Config)
float RecolorIntensity = 0.0f; float RecolorIntensity = 0.0f;
@@ -202,7 +202,7 @@ void FCogEngineWindow_DebugSettings::RenderContent()
{ {
FCogImguiHelper::ColorEdit4("Recolor Color", Settings.RecolorColor, ColorEditFlags); FCogImguiHelper::ColorEdit4("Recolor Color", Settings.RecolorColor, ColorEditFlags);
} }
else if (Settings.RecolorMode == HueOverTime) else if (Settings.RecolorMode == ECogDebugRecolorMode::HueOverTime)
{ {
FCogWindowWidgets::SetNextItemToShortWidth(); FCogWindowWidgets::SetNextItemToShortWidth();
ImGui::DragFloat("Recolor Speed", &Settings.RecolorTimeSpeed, 0.1f, 0.0f, 10.0f, "%.1f"); ImGui::DragFloat("Recolor Speed", &Settings.RecolorTimeSpeed, 0.1f, 0.0f, 10.0f, "%.1f");