Jump to content

Anyway to stop the green part highlight on mouseover?


Recommended Posts

Hi, so, I was just playing around with recording some KSP footage, and was just wondering if there's any way to remove the green glow when you mouseover a part while flying? I know I could play in windowed mode and move the cursor off the KSP window, but I need the mouse for, you know, playing the game :P

I had a quick look through the settings.cfg file, and a forum search, but couldn't find anything related to it; if it's not possible, then no worries, but it'd be nice not to have it, since it gets annoying even when I'm playing the game normally.

Cheers,

Ash

Link to comment
Share on other sites

I think it can be done for 30 bricks of gold pressed latinum. But joking aside I think your stuck with it honestly

I'll offer 20 and not one slip more. 3rd rule, and all that :)

But yeah, if it can't be done, no worries, I'll manage. Thanks anyway.

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

It's old post, but... If you are trying to make cinematic and there are parts on whole screen (no blind spots), then it's a problem, because your mouse have to be somewhere on screen.

For example recording kerbals inside some kind of base. I got same problem, so I would be grateful for solve this problem

Link to comment
Share on other sites

If I am recording and I want to do some footage with the cursor and some without (like for my most recent video) I have a second monitor that I move the mouse to (and I have backup camera control bound to a joystick hat).

The danger, of course, being that if you accidentally click a mouse button while on that second monitor, the game minimizes :P

Link to comment
Share on other sites

Hah, I recently bought a TV just because I moved and my wall looked big and bare, but I hardly use it.

Back on topic though, no, I know of no other way to avoid the green highlighting, unless you happen to have a 16:10 monitor (like I do), in which case you can also record at 16:9 resolution for the youtubes (ie, clipping the top and bottom of the screen) and park your mouse cursor in that region, but if parts extend into the 16:9 region you'll still get the highlight showing.

Link to comment
Share on other sites

Hah, I recently bought a TV just because I moved and my wall looked big and bare, but I hardly use it.

Back on topic though, no, I know of no other way to avoid the green highlighting, unless you happen to have a 16:10 monitor (like I do), in which case you can also record at 16:9 resolution for the youtubes (ie, clipping the top and bottom of the screen) and park your mouse cursor in that region, but if parts extend into the 16:9 region you'll still get the highlight showing.

That's a way! Record in windowed mode with lower resolution ;d

Thanks!

Link to comment
Share on other sites

Hmmmm i also want to get rid of it im thinking changing the PNG. or FILE. color to transparent :P must be a file or PNG or something

Actually no, it's set in game using a function in Unity, so the only way to disable it (that I can think of) is writing a plugin to override it.

Link to comment
Share on other sites

Well, here you go.

Just drop this in the GameData as usual.

3 warnings though:

  1. it only works in flight right now, do you need it in the editor too? Because that's actually a little complicated to do;
  2. it will suppress the glow from the mouse just fine: however, if another mod sets the part's glow it will flash for one frame;
  3. I'm not really going to support this, you know. However it's public domain, so just do whatever you want with it.

Link to comment
Share on other sites

Seriously, a mod in 30 minutes, that's impressive.

This is literally the whole of the code:


[B]namespace[/B] [COLOR=#555555]GlowSuppressor[/COLOR]
{
[COLOR=teal] [KSPAddon(KSPAddon.Startup.Flight, false)][/COLOR]
[B]public[/B] [B]class[/B] [COLOR=#445588][B]GlowSuppressor[/B][/COLOR] : MonoBehaviour
{
[B]void[/B] [COLOR=#990000][B]Update[/B][/COLOR]()
{
[B]if[/B] (FlightGlobals.ActiveVessel != [B]null[/B])
SuppressGlow(FlightGlobals.ActiveVessel.rootPart);
}


[B]private[/B] [B]static[/B] [B]void[/B] [COLOR=#990000][B]SuppressGlow[/B][/COLOR](Part part)
{
part.SetHighlightType(Part.HighlightType.Disabled);
part.SetHighlight([B]false[/B]);


[COLOR=#999988][I]// Reset the glow for all the child parts[/I][/COLOR]
[B]foreach[/B] (Part child [B]in[/B] part.children)
GlowSuppressor.SuppressGlow(child);
}


}
}

- - - Updated - - -

Nice! Well.. I need it in EVA mode, but in flight mode is good enogh. Thanks! :D

Btw it is the fasted made mod which I ever seen! ;d

Uh, 10 more minutes.

Link to comment
Share on other sites

LOL yeah I just had a look.

Yikes, another recurse through the part tree every frame (I assume update is a per-frame call) to brutishly force it to false. It's a shame you can't just unhook the mouseover handler (thus saving CPU cycles by disabling per-frame-part-mouseover checks) instead of having to let it do that work and then performing another walk through the tree to force it off again.

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