mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 13:48:01 +03:00
Restored Object Set view in Data View
This commit is contained in:
@@ -47,21 +47,36 @@ void data_view_object_imgui(class_data* data) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*size_t count = object_storage_get_obj_set_count();
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
obj_set_handler* handler = object_storage_get_obj_set_handler_by_index(i);
|
||||
if (!handler || !handler->obj_set)
|
||||
extern std::map<uint32_t, obj_set_handler> object_storage_data;
|
||||
for (auto& i : object_storage_data) {
|
||||
obj_set_handler* handler = &i.second;
|
||||
if (!handler->obj_set)
|
||||
continue;
|
||||
|
||||
int32_t load_count = object_storage_get_obj_storage_load_count_by_index(i);
|
||||
|
||||
ImGui::PushID(handler->set_id);
|
||||
char buf[0x1000];
|
||||
sprintf_s(buf, sizeof(buf), "ID: 0x%08X; Load Count: %3d; Name: %s",
|
||||
handler->set_id, load_count, handler->name.c_str());
|
||||
handler->set_id, handler->load_count, handler->name.c_str());
|
||||
ImGui::Selectable(buf);
|
||||
ImGui::PopID();
|
||||
}*/
|
||||
}
|
||||
|
||||
extern std::map<uint32_t, obj_set_handler> object_storage_data_modern;
|
||||
if (object_storage_data_modern.size())
|
||||
ImGui::Selectable("Modern:", false, ImGuiSelectableFlags_Disabled);
|
||||
|
||||
for (auto& i : object_storage_data_modern) {
|
||||
obj_set_handler* handler = &i.second;
|
||||
if (!handler->obj_set)
|
||||
continue;
|
||||
|
||||
ImGui::PushID(handler->set_id);
|
||||
char buf[0x1000];
|
||||
sprintf_s(buf, sizeof(buf), "ID: 0x%08X; Load Count: %3d; Name: %s",
|
||||
handler->set_id, handler->load_count, handler->name.c_str());
|
||||
ImGui::Selectable(buf);
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
data->imgui_focus |= ImGui::IsWindowFocused();
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user