KAS icon indicating copy to clipboard operation
KAS copied to clipboard

Add action groups for the winch actions

Open ihsoft opened this issue 3 years ago • 3 comments

Eject, instant stretch, etc.

ihsoft avatar Jul 17 '22 05:07 ihsoft

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?

Joeviocoe avatar Nov 28 '23 20:11 Joeviocoe

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.

ihsoft avatar Dec 01 '23 05:12 ihsoft

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.

Joeviocoe avatar Dec 01 '23 17:12 Joeviocoe