mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add sig debug to data window
This commit is contained in:
parent
add9fe89e4
commit
f16d3f82bd
1 changed files with 18 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Dynamic;
|
||||
using System.Linq;
|
||||
using System.Net.Mime;
|
||||
|
|
@ -30,6 +31,9 @@ namespace Dalamud.Interface
|
|||
private bool drawActors = false;
|
||||
private float maxActorDrawDistance = 20;
|
||||
|
||||
private string inputSig = string.Empty;
|
||||
private IntPtr sigResult = IntPtr.Zero;
|
||||
|
||||
private string inputAddonName = string.Empty;
|
||||
private int inputAddonIndex;
|
||||
private Addon resultAddon;
|
||||
|
|
@ -87,6 +91,20 @@ namespace Dalamud.Interface
|
|||
break;
|
||||
case 1:
|
||||
|
||||
ImGui.InputText(".text sig", ref this.inputSig, 400);
|
||||
if (ImGui.Button("Resolve")) {
|
||||
try {
|
||||
this.sigResult = this.dalamud.SigScanner.ScanText(this.inputSig);
|
||||
} catch (KeyNotFoundException) {
|
||||
this.sigResult = new IntPtr(-1);
|
||||
}
|
||||
}
|
||||
ImGui.Text($"Result: {this.sigResult.ToInt64():X}");
|
||||
ImGui.SameLine();
|
||||
if (ImGui.Button("C")) {
|
||||
ImGui.SetClipboardText(this.sigResult.ToInt64().ToString("x"));
|
||||
}
|
||||
|
||||
foreach (var debugScannedValue in BaseAddressResolver.DebugScannedValues) {
|
||||
ImGui.TextUnformatted($"{debugScannedValue.Key}");
|
||||
foreach (var valueTuple in debugScannedValue.Value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue