Jump to content

Editor tool tip


Recommended Posts

I'm currently trying to show the parts list tool tip when placed in the editor (VAB or SPH). Managed to display the popup using PartListTooltips::ShowTooltip(). That method, however, raises a null pointer exception after the first time the tool tip is hidden: NullReferenceException: Object reference not set to an instance of an object. Hovering over the part again generates another exception (showing the tooltip): ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint Aborting. I'm guessing it has to do with the first argument of PartListTooltips::ShowTooltip(), which takes an EditorPartIcon object. The part information displays correctly - as if the mouse hovered over the part's icon in the parts list. However, I would like to know how to get rid of these exceptions and why/how this tooltip is working :)

If anyone can shed some light on how to work with the parts editor list I would greatly appreciate it.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...