public override void Paint(PaintEventArgs e) { if (!manager.CheckConnected()) { return; } IntPtr ptr = manager.process.MainWindowHandle; ProcessManager64.Rect windowRect = new ProcessManager64.Rect(); ProcessManager64.GetWindowRect(ptr, ref windowRect); e.Graphics.DrawRectangle(new Pen(Color.White, 2), windowRect.Left, windowRect.Top, windowRect.Right - windowRect.Left, windowRect.Bottom - windowRect.Top); UInt64 unityRootDomain = manager.GetUnityRootDomain(); UInt64 assembly = manager.GetAssemblyInDomain(unityRootDomain, "Assembly-CSharp"); UInt64 image = manager.ReadAbsolute <UInt64>(assembly + 0x60); manager.EnumImageClassCache(image); }
public ProvidenceWidget(Overlay overlay, ProcessManager64 manager) : base(overlay) { this.manager = manager; }