From 96478f163edb26da6d22ec81a02e278b463cd244 Mon Sep 17 00:00:00 2001 From: rdeioris Date: Mon, 25 Mar 2024 08:41:07 +0100 Subject: [PATCH] fixed int64 debugger --- Source/LuaMachine/Private/LuaValue.cpp | 2 +- Source/LuaMachineEditor/Private/LuaMachineEditor.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/LuaMachine/Private/LuaValue.cpp b/Source/LuaMachine/Private/LuaValue.cpp index 49f2088..44087ef 100644 --- a/Source/LuaMachine/Private/LuaValue.cpp +++ b/Source/LuaMachine/Private/LuaValue.cpp @@ -11,7 +11,7 @@ FString FLuaValue::ToString() const case ELuaValueType::Bool: return Bool ? FString(TEXT("true")) : FString(TEXT("false")); case ELuaValueType::Integer: - return FString::FromInt(Integer); + return FString::Printf(TEXT("%lld"), Integer); case ELuaValueType::Number: return FString::SanitizeFloat(Number); case ELuaValueType::String: diff --git a/Source/LuaMachineEditor/Private/LuaMachineEditor.cpp b/Source/LuaMachineEditor/Private/LuaMachineEditor.cpp index 53f05c0..f3c6838 100644 --- a/Source/LuaMachineEditor/Private/LuaMachineEditor.cpp +++ b/Source/LuaMachineEditor/Private/LuaMachineEditor.cpp @@ -54,7 +54,9 @@ void FLuaMachineEditorModule::StartupModule() StyleSet->Set("SyntaxHighlight.LuaMachine.StdLib", FTextBlockStyle(CodeBaseStyle).SetColorAndOpacity(FLinearColor::Yellow)); StyleSet->Set("SyntaxHighlight.LuaMachine.Basic", FTextBlockStyle(CodeBaseStyle).SetColorAndOpacity(FLinearColor::FromSRGBColor(FColor::Magenta))); +#if ENGINE_MINOR_VERSION >= 3 FSlateStyleRegistry::RegisterSlateStyle(*StyleSet.Get()); +#endif FPropertyEditorModule& PropertyModule = FModuleManager::LoadModuleChecked(TEXT("PropertyEditor"));