Skip to content

Instantly share code, notes, and snippets.

@jejacks0n
Created May 20, 2014 01:50
Show Gist options
  • Save jejacks0n/023d459d9dfabf4b4ba5 to your computer and use it in GitHub Desktop.
Save jejacks0n/023d459d9dfabf4b4ba5 to your computer and use it in GitHub Desktop.
[KSPField(guiName = "Fuel crossfeed",
isPersistant = true, guiActive = true, guiActiveEditor = true)]
public bool fuelCrossFeed = false;
[KSPEvent(guiName = "Toggle crossfeed", name = "ToggleCrossFeed",
active = true, guiActive = true, guiActiveEditor = true, guiActiveUnfocused = false)]
public void ToggleCrossFeed()
{
part.fuelCrossFeed = fuelCrossFeed = !fuelCrossFeed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment