Skip to content

Commit

Permalink
increase unfocusedRange to 10, same as EVA Construction Mode range
Browse files Browse the repository at this point in the history
  • Loading branch information
yalov committed Sep 20, 2021
1 parent 50b64b1 commit 682d527
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/Kaboom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public class ModuleKaboom : PartModule
{
[KSPField(isPersistant = true,
guiName = "Kaboom delay", groupName = "Kaboom", groupStartCollapsed = true, guiUnits = " Seconds",
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 5f, guiActiveEditor = true),
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 10f, guiActiveEditor = true),
UI_FloatRange(minValue = 0f, maxValue = 30f, stepIncrement = 1f)]
public float delay = 0;

[KSPField(isPersistant = true)]
public bool isGlued = false;

[KSPEvent(groupName = "Kaboom",
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 5f, guiActiveEditor = true,
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 10f, guiActiveEditor = true,
active = true, guiActiveUncommand = true)]
public void GluedEvent()
{
Expand All @@ -35,15 +35,15 @@ private void GUITextUpdate()
}

[KSPEvent(guiName = "Kaboom!", groupName = "Kaboom",
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 5f,
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 10f,
active = true, guiActiveUncommand = true)]
public void KaboomEvent()
{
KaboomIt();
}

[KSPEvent(guiName = "Cancel Kaboom!", groupName = "Kaboom",
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 5f,
guiActive = true, guiActiveUnfocused = true, unfocusedRange = 10f,
active = false, guiActiveUncommand = true)]
public void CancelKaboomEvent()
{
Expand Down

0 comments on commit 682d527

Please sign in to comment.