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

Adding Core:DoEvent("Close Window") for symmetry #2329

Merged
merged 1 commit into from
Dec 9, 2018
Merged
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
11 changes: 9 additions & 2 deletions src/kOS/Module/kOSProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,17 @@ public VolumePath BootFilePath {
[KSPEvent(guiActive = true, guiName = "Open Terminal", category = "skip_delay;")]
public void Activate()
{
SafeHouse.Logger.Log("Activate");
SafeHouse.Logger.Log("Open Window by event");
OpenWindow();
}

[KSPEvent(guiActive = true, guiName = "Close Terminal", category = "skip_delay;")]
public void Deactivate()
{
SafeHouse.Logger.Log("Close Window by event");
CloseWindow();
}

[KSPField(isPersistant = true, guiName = "kOS Average Power", guiActive = true, guiActiveEditor = true, guiUnits = "EC/s", guiFormat = "0.000")]
public float RequiredPower = 0;

Expand All @@ -154,7 +161,7 @@ public void TogglePower()
[KSPAction("Open Terminal", actionGroup = KSPActionGroup.None)]
public void Activate(KSPActionParam param)
{
SafeHouse.Logger.Log("Open Terminal from Dialog");
SafeHouse.Logger.Log("Open Terminal from ActionGroup");
Activate();
}

Expand Down