mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Fix ECogDebugRecolorMode not an enum class
This commit is contained in:
@@ -13,7 +13,7 @@ struct FCogDebugDrawOverlapParams;
|
||||
struct FCogDebugDrawSweepParams;
|
||||
|
||||
UENUM()
|
||||
enum ECogDebugRecolorMode : uint8
|
||||
enum class ECogDebugRecolorMode : uint8
|
||||
{
|
||||
None,
|
||||
Color,
|
||||
@@ -63,7 +63,7 @@ struct FCogDebugSettings
|
||||
float AxesScale = 1.0f;
|
||||
|
||||
UPROPERTY(Config)
|
||||
TEnumAsByte<ECogDebugRecolorMode> RecolorMode = None;
|
||||
ECogDebugRecolorMode RecolorMode = ECogDebugRecolorMode::None;
|
||||
|
||||
UPROPERTY(Config)
|
||||
float RecolorIntensity = 0.0f;
|
||||
|
||||
@@ -202,7 +202,7 @@ void FCogEngineWindow_DebugSettings::RenderContent()
|
||||
{
|
||||
FCogImguiHelper::ColorEdit4("Recolor Color", Settings.RecolorColor, ColorEditFlags);
|
||||
}
|
||||
else if (Settings.RecolorMode == HueOverTime)
|
||||
else if (Settings.RecolorMode == ECogDebugRecolorMode::HueOverTime)
|
||||
{
|
||||
FCogWindowWidgets::SetNextItemToShortWidth();
|
||||
ImGui::DragFloat("Recolor Speed", &Settings.RecolorTimeSpeed, 0.1f, 0.0f, 10.0f, "%.1f");
|
||||
|
||||
Reference in New Issue
Block a user