Jump to content

[1.0.5]FancyMouse's modlet (v0.3) (2016/2/29)


FancyMouse

Recommended Posts

Just some tiny modlets that I'm using myself and thinking it might help others as well.

Some logistics:

 

  • I will only accept feature requests that both (1) I feel useful so that I'll use it myself, and (2) can be implemented in a few lines
  • Bugs are unlikely but I will fix if there's any and they're properly reported.
  • Source code in spoilers.
  • License: BSD 2-Clause

 

List of included mods:

AutoThermalData

Enable thermal data display (i.e. the option in debug menu) by default upon KSP load.

Spoiler

[KSPAddon(KSPAddon.Startup.MainMenu, false)]
public class AutoThermalData : UnityEngine.MonoBehaviour
{
	private void Start()
	{
		PhysicsGlobals.ThermalDataDisplay = true;
		UnityEngine.Debug.Log("AutoThermalData: Thermal data enabled");
	}
}

 

KSCLockup (1.0.5 still applicable)

No more this (which seems still a problem in newest version). After install you can just forget about it and it should not occur any more.

Spoiler

[KSPAddon(KSPAddon.Startup.SpaceCentre, false)]
public class KSCLockup : UnityEngine.MonoBehaviour
{
	private void Start()
	{
		const string s = "applicationFocus";
		UnityEngine.Debug.Log("KSCLockup: " + InputLockManager.GetControlLock(s));
		InputLockManager.RemoveControlLock(s);
	}
}

MoarContracts

Find it waste of game time to warp for your interplanetary contracts in your career? This is the answer. Feel free to change the value to whatever you want. Note: this does NOT remove the MissionControl building resetriction.

Requires ModuleManager (not included)

Spoiler

@Contracts
{
	@AverageAvailableContracts = 50
}

 

Download from SpaceDock

Spoiler

2016/2/29, v0.3

Upload to spacedock.info, remove PanelLock due to incompatibility with 1.0.5

2015/10/14, v0.2

New modlet:

PanelLock

2015/10/10, v0.1 (initial release)

New modlet:

AutoThermalData

KSCLockup

MoarContracts

 

Edited by FancyMouse
Link to comment
Share on other sites

Glad it helps :)

Mmm the so-called panel lock... While I'm using TAC alternate resource panel (for its remaining time display), I do agree that panel do need to be locked by default. Didn't spend too much time today, but still played with ResourceDisplay class a bit. Unfortuantely nothing worked so far. I'll find some more time later.

Another thing that I may try is to disable resetting camera focus while dragging with mouse right click. It's hard to do action menu while you offset camera away by 3D mouse. Don't know if this is achievable or not, though. We'll see.

Link to comment
Share on other sites

KSCLockup

No more this (which seems still a problem in newest version). After install you can just forget about it and it should not occur any more.


[KSPAddon(KSPAddon.Startup.SpaceCentre, false)]
public class AutoThermalData : UnityEngine.MonoBehaviour
{
private void Start()
{
const string s = "applicationFocus";
UnityEngine.Debug.Log("KSCLockup: " + InputLockManager.GetControlLock(s));
InputLockManager.RemoveControlLock(s);
}
}

f

Woohoo! Thank you, I get that often enough to be very annoying.

LGG

Link to comment
Share on other sites

v0.2 up. PanelLock added.

Tweaking ResourceDisplay upon Start() doesn't work for some reason - I even have to do it at the 3rd Update call. I don't know if this one really does the job or not in all cases - my test works fine but I'm not sure for other more complex ships. Also because it's overriding Update, I don't know the perf impact - I guess minimal but I'm not 100% sure on that given my zero Unity experience prior to this modding. Let me know if there's any issue, whether functional or performance.

Link to comment
Share on other sites

  • 3 weeks later...
  • 8 months later...
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...