Skip to content

Commit

Permalink
UEnum entry names now uses their display names when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Oct 14, 2023
1 parent 2048918 commit 5956baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UE4SS/src/GUI/LiveView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <Unreal/UPackage.hpp>
#include <Unreal/UScriptStruct.hpp>
#include <Unreal/UnrealInitializer.hpp>
#include <Unreal/UKismetNodeHelperLibrary.hpp>
#include <imgui.h>
#include <imgui_internal.h>
#include <misc/cpp/imgui_stdlib.h>
Expand Down Expand Up @@ -1482,15 +1483,14 @@ namespace RC::GUI
std::string plus = "+";
std::string minus = "-";
int32_t index = -1;
StringType enum_name{};

for (const auto name : names)
{
bool open_edit_name_popup{};
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);

Expand Down
2 changes: 1 addition & 1 deletion deps/first/Unreal

0 comments on commit 5956baa

Please sign in to comment.