Jump to content

hooks in KSP classes


Recommended Posts

I'm not a very seasoned coder, and much less so in C Sharp, and even less so with KSP modding. Some systems in KSP are easy to mod and are obviously set up for modding, like part modules and such. Others seem, to my untrained eyes, locked up very tight.

Specifically I'm looking into intercepting method calls from stock classes and running my own methods either before or after. I believe that's what a hook is, correct? Is this possible?

More specifically, I'm trying to catch the calls that turn on the resource overlays and either modify the textures or give them new textures. I'm having a hard time finding a way to do this without doing some kind techno circus routine involving checking texture changes every game update.

Thanks in advance.

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...