Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} ReClassNET / ReClass.NET Public Notifications You must be signed in to change notification settings Fork 403 Star 2.2k Code Issues 71 Pull requests 12 Discussions Actions Projects Security and quality 0 Insights Additional navigation options Code Issues Pull requests Discussions Actions Projects Security and quality Insights FilesExpand file tree v1.1BreadcrumbsReClass.NET/UI/MemoryPreviewToolTip.csCopy pathBlameMore file actionsBlameMore file actions Latest commit HistoryHistoryHistory102 lines (82 loc) · 2.54 KB v1.1BreadcrumbsReClass.NET/UI/MemoryPreviewToolTip.csCopy pathTopFile metadata and controlsCodeBlame102 lines (82 loc) · 2.54 KBRawCopy raw fileDownload raw fileOpen symbols panelEdit and raw actions123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Linq;using System.Windows.Forms;using ReClassNET.Memory;using ReClassNET.Nodes; namespace ReClassNET.UI{ public class MemoryPreviewToolTip : ToolTip { private const int ToolTipWidth = 1000 + ToolTipPadding; private const int ToolTipPadding = 4; [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public FontEx Font { get { return viewInfo.Font; } set { viewInfo.Font = value; } } [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public MemoryBuffer Memory { get { return viewInfo.Memory; } set { viewInfo.Memory = value; } } private readonly List<BaseHexNode> nodes; private readonly ViewInfo viewInfo; private Size size; public MemoryPreviewToolTip() { OwnerDraw = true; #if WIN64 nodes = new List<BaseHexNode>(Enumerable.Range(0, 10).Select(i => new Hex64Node { Offset = (IntPtr)(i * 8) }));#else nodes = new List<BaseHexNode>(Enumerable.Range(0, 10).Select(i => new Hex32Node { Offset = (IntPtr)(i * 4) }));#endif viewInfo = new ViewInfo { Memory = new MemoryBuffer { Size = nodes.Select(n => n.MemorySize).Sum() }, HotSpots = new List<HotSpot>(), Classes = new List<ClassNode>() }; Popup += OnPopup; Draw += OnDraw; } private void OnPopup(object sender, PopupEventArgs e) { size.Width = ToolTipWidth; size.Height = nodes.Select(n => n.CalculateHeight(viewInfo)).Sum() + ToolTipPadding; e.ToolTipSize = size; viewInfo.ClientArea = new Rectangle(ToolTipPadding / 2, ToolTipPadding / 2, size.Width - ToolTipPadding, size.Height - ToolTipPadding); } private void OnDraw(object sender, DrawToolTipEventArgs e) { viewInfo.HotSpots.Clear(); // Some settings are not usefull for the preview. viewInfo.Settings = Program.Settings.Clone(); viewInfo.Settings.ShowNodeAddress = false; viewInfo.Settings.HighlightChangedValues = false; viewInfo.Context = e.Graphics; e.Graphics.FillRectangle(Brushes.White, e.Bounds); using (var pen = new Pen(Brushes.Black, 1)) { e.Graphics.DrawRectangle(pen, new Rectangle(e.Bounds.X, e.Bounds.Y, e.Bounds.Width - 1, e.Bounds.Height - 1)); } int x = -24; int y = 2; foreach (var node in nodes) { y = node.Draw(viewInfo, x, y); } } public void UpdateMemory(RemoteProcess process, IntPtr address) { viewInfo.Memory.Process = process; viewInfo.Memory.Update(address); } }} You can’t perform that action at this time.