Skip to content

Commit

Permalink
UObjectHook: Display class inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 22, 2023
1 parent e808098 commit 2c48cfa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/mods/UObjectHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ void UObjectHook::ui_handle_object(sdk::UObject* object) {

const auto uclass = object->get_class();

// Display inheritance tree
if (ImGui::TreeNode("Inheritance")) {
for (auto super = (sdk::UStruct*)uclass; super != nullptr; super = super->get_super_struct()) {
if (ImGui::TreeNode(utility::narrow(super->get_full_name()).data())) {
ImGui::TreePop();
}
}

ImGui::TreePop();
}

std::vector<sdk::FField*> sorted_fields{};
std::vector<sdk::UFunction*> sorted_functions{};

Expand Down

0 comments on commit 2c48cfa

Please sign in to comment.