Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions BindingsFlightControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public class BindingActionGroups : Binding
public override void AddTo(BindingManager manager)
{
manager.AddSetter("SAS", delegate(CPU cpu, object val) { cpu.Vessel.ActionGroups.SetGroup(KSPActionGroup.SAS, (bool)val); });
manager.AddSetter("STAGE", delegate(CPU cpu, object val) { cpu.Vessel.ActionGroups.SetGroup(KSPActionGroup.Stage, (bool)val); });
manager.AddSetter("GEAR", delegate(CPU cpu, object val) { cpu.Vessel.ActionGroups.SetGroup(KSPActionGroup.Gear, (bool)val); });
manager.AddSetter("LEGS", delegate(CPU cpu, object val) { VesselUtils.LandingLegsCtrl(cpu.Vessel, (bool)val); });
manager.AddSetter("CHUTES", delegate(CPU cpu, object val) { VesselUtils.DeployParachutes(cpu.Vessel, (bool)val); });
Expand All @@ -194,6 +195,7 @@ public override void AddTo(BindingManager manager)
manager.AddSetter("AG10", delegate(CPU cpu, object val) { cpu.Vessel.ActionGroups.SetGroup(KSPActionGroup.Custom10, (bool)val); });

manager.AddGetter("SAS", delegate(CPU cpu) { return cpu.Vessel.ActionGroups[KSPActionGroup.SAS]; });
manager.AddGetter("STAGE", delegate(CPU cpu) { return cpu.Vessel.ActionGroups[KSPActionGroup.Stage]; });
manager.AddGetter("GEAR", delegate(CPU cpu) { return cpu.Vessel.ActionGroups[KSPActionGroup.Gear]; });
manager.AddGetter("LEGS", delegate(CPU cpu) { return VesselUtils.GetLandingLegStatus(cpu.Vessel); });
manager.AddGetter("CHUTES", delegate(CPU cpu) { return VesselUtils.GetChuteStatus(cpu.Vessel); });
Expand Down
1 change: 1 addition & 0 deletions CommandVessel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public CommandVesselStage(Match regexMatch, ExecutionContext context) : base(reg

public override void Evaluate()
{
ParentContext.Vessel.ActionGroups.ToggleGroup(KSPActionGroup.Stage);
Staging.ActivateNextStage();

State = ExecutionState.DONE;
Expand Down