Update animation hooks.

This commit is contained in:
Ottermandias 2024-07-07 16:16:58 +02:00
parent 68135f3757
commit 4f0f3721a6
11 changed files with 83 additions and 61 deletions

View file

@ -430,7 +430,7 @@ public class DebugTab : Window, ITab, IUiService
foreach (var obj in _objects)
{
ImGuiUtil.DrawTableColumn(obj.Address == nint.Zero ? $"{((GameObject*)obj.Address)->ObjectIndex}" : "NULL");
ImGuiUtil.DrawTableColumn(obj.Address != nint.Zero ? $"{((GameObject*)obj.Address)->ObjectIndex}" : "NULL");
ImGuiUtil.DrawTableColumn($"0x{obj.Address:X}");
ImGuiUtil.DrawTableColumn(obj.Address == nint.Zero
? string.Empty
@ -482,14 +482,15 @@ public class DebugTab : Window, ITab, IUiService
{
var gameObject = (GameObject*)gameObjectPtr;
ImGui.TableNextColumn();
ImGui.TextUnformatted($"0x{drawObject:X}");
ImGuiUtil.CopyOnClickSelectable($"0x{drawObject:X}");
ImGui.TableNextColumn();
ImGui.TextUnformatted(gameObject->ObjectIndex.ToString());
ImGui.TableNextColumn();
ImGui.TextUnformatted(child ? "Child" : "Main");
ImGui.TableNextColumn();
var (address, name) = ($"0x{gameObjectPtr:X}", new ByteString(gameObject->Name).ToString());
ImGui.TextUnformatted(address);
ImGuiUtil.CopyOnClickSelectable(address);
ImGui.TableNextColumn();
ImGui.TextUnformatted(name);
ImGui.TableNextColumn();