From 5956baa979a11aef4c8579d004f298476679980d Mon Sep 17 00:00:00 2001 From: UE4SS Date: Sat, 14 Oct 2023 10:25:55 +0200 Subject: [PATCH] UEnum entry names now uses their display names when possible --- UE4SS/src/GUI/LiveView.cpp | 4 ++-- deps/first/Unreal | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UE4SS/src/GUI/LiveView.cpp b/UE4SS/src/GUI/LiveView.cpp index f165ce066..f6a9f2520 100644 --- a/UE4SS/src/GUI/LiveView.cpp +++ b/UE4SS/src/GUI/LiveView.cpp @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -1482,7 +1483,6 @@ namespace RC::GUI std::string plus = "+"; std::string minus = "-"; int32_t index = -1; - StringType enum_name{}; for (const auto name : names) { @@ -1490,7 +1490,7 @@ namespace RC::GUI bool open_edit_value_popup{}; bool open_add_name_popup{}; ++index; - enum_name = name.Key.ToString(); + auto enum_name = UKismetNodeHelperLibrary::GetEnumeratorUserFriendlyName(uenum, index); ImGui::AlignTextToFramePadding(); ImGui::Text("%S <=> %lld", enum_name.c_str(), name.Value); diff --git a/deps/first/Unreal b/deps/first/Unreal index 9c895d730..ff73e6edb 160000 --- a/deps/first/Unreal +++ b/deps/first/Unreal @@ -1 +1 @@ -Subproject commit 9c895d73091fd7e818d93306e636754170ff8484 +Subproject commit ff73e6edb1ae556f8dd048fed22438293cf48bf3