Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action groups for the winch actions #332

Open
ihsoft opened this issue Jul 17, 2022 · 3 comments
Open

Add action groups for the winch actions #332

ihsoft opened this issue Jul 17, 2022 · 3 comments

Comments

@ihsoft
Copy link
Owner

ihsoft commented Jul 17, 2022

Eject, instant stretch, etc.

@Joeviocoe
Copy link

Joeviocoe commented Nov 28, 2023

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?

@ihsoft
Copy link
Owner Author

ihsoft commented Dec 1, 2023

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.

@Joeviocoe
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants