-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Settings Menu for On Pad Ignition Failures
* Disable ignition failures if user selects
- v2.9.0.0
- v2.8.0.0
- v2.7.0.0
- v2.6.2.0
- v2.6.1.0
- v2.6.0.0
- v2.5.1.0
- v2.5.0.0
- v2.4.0.0
- v2.3.1.0
- v2.3.0.0
- v2.2.1.1
- v2.2.1.0
- v2.2.0.1
- v2.2.0.0
- v2.1.1.0
- v2.1.0.0
- v2.1.0.0.RC11
- v2.1.0.0.RC10
- v2.1.0.0.RC9
- v2.1.0.0.RC8
- v2.1.0.0.RC7
- v2.1.0.0.RC6
- v2.1.0.0.RC5
- v2.1.0.0.RC4
- v2.1.0.0.RC3
- v2.1.0.0.RC2
- v2.1.0.0.RC1
- v2.1.0.0-RC1
- 2.3.0.0
- 2.1.0.0.RC1
- 2.0.0.2
- 2.0.0.1
- 2.0.0.0
- 2.0.0
- 2.0.0-Alpha.7
- 2.0.0-Alpha.6
- 2.0.0-Alpha.5
- 2.0.0-Alpha.4
- 2.0.0-Alpha.3
- 2.0.0-Alpha.2
- 2.0.0-Alpha.1
- 1.12.0.0
- 1.11.0.0
- 1.10.0.0
- 1.9.1.0
- 1.9.0.0
- 0.0.0.2
- 0.0.0.1
Showing
2 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
|
||
using UnityEngine; | ||
|
||
using TestFlightAPI; | ||
|
||
namespace TestFlight { | ||
public class TestFlightGameSettings : GameParameters.CustomParameterNode { | ||
public override string Title { get { return "TestFlight Options"; } } | ||
public override GameParameters.GameMode GameMode { get { return GameParameters.GameMode.ANY; } } | ||
public override string Section { get { return "TestFlight"; } } | ||
public override string DisplaySection { get { return Section; } } | ||
public override int SelectionOrder { get { return 1; } } | ||
public override bool HasPresets { get { return true; } } | ||
|
||
[GameParameters.CustomParameterUI("Pre-Launch Ignition Failures Enabled?", toolTip = "Set to enable ignition failures on the Launch Pad.")] | ||
public bool preLaunchFailures = true; | ||
|
||
public override void SetDifficultyPreset(GameParameters.Preset preset) { | ||
Debug.Log("Setting difficulty preset"); | ||
switch (preset) | ||
{ | ||
case GameParameters.Preset.Easy: | ||
preLaunchFailures = true; | ||
break; | ||
case GameParameters.Preset.Normal: | ||
preLaunchFailures = true; | ||
break; | ||
case GameParameters.Preset.Moderate: | ||
preLaunchFailures = true; | ||
break; | ||
case GameParameters.Preset.Hard: | ||
preLaunchFailures = true; | ||
break; | ||
case GameParameters.Preset.Custom: | ||
preLaunchFailures = true; | ||
break; | ||
default: | ||
preLaunchFailures = true; | ||
break; | ||
} | ||
} | ||
} | ||
} |