Kerbal Attachment System (KAS)

Kerbal Attachment System (KAS)

2M Downloads

Add action groups for the winch actions

ihsoft opened this issue ยท 3 comments

commented

Eject, instant stretch, etc.

commented

Is this just a matter of adding the following code snippet:

  /// <summary>Action that stretches the cable.</summary>
  /// <include file="../SpecialDocTags.xml" path="Tags/KspAction/*"/>
  [KSPAction(null)]
  [LocalizableItem(
      tag = "#kasLOC_08021",
      defaultTemplate = "Stretch cable",
      description = "Name of the action that stretches the cable.")]
  public virtual void InstantStretchAction(KSPActionParam unused) {
    StretchCable();
  }

to KASLinkWinch.cs?
Or are there other files that need changing?

commented

It starts like this. When last time (long time ago) I was trying to do it, something has stopped me. If you can do a working code and test it, feel free to send PR.

commented

It starts like this. When last time (long time ago) I was trying to do it, something has stopped me. If you can do a working code and test it, feel free to send PR.

I would not know where/how to start. I don't have any .cs files in my install of KSP. And since this file is in the repo under a "source" directory, I am assuming there is some build/compile process. I've never done anything like that.