Skip to content

Commit

Permalink
Dont change texture in ESC2 ans ESC 4, Type in file name
Browse files Browse the repository at this point in the history
  • Loading branch information
N3h3miah committed Feb 6, 2015
1 parent 1b5f46d commit e7d304a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions GameData/NehemiahInc/Parts/ExperimentContainer/esc1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ PART
{
name = ExperimentStorage
identifier = OMS ESC 1
chanceTexture = True
}

MODULE
Expand Down
File renamed without changes.
9 changes: 7 additions & 2 deletions Plugin/NE Science/ExperimentStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public class ExperimentStorage : ModuleScienceExperiment, ExperimentDataStorage
[KSPField(isPersistant = false)]
public string identifier = "";

[KSPField(isPersistant = false)]
public bool chanceTexture = false;

[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = true, guiName = "Contains")]
public string contains = "";

Expand Down Expand Up @@ -95,8 +98,10 @@ private void setExperiment(ExperimentData experimentData)
collectActionName = "Collect Results";
interactionRange = 1.2f;
xmitDataScalar = 0.2f;

setTexture(expData);
if (chanceTexture)
{
setTexture(expData);
}
}

public override void OnSave(ConfigNode node)
Expand Down
2 changes: 1 addition & 1 deletion Plugin/NE Science/NE_Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace NE_Science
class NE_Helper : MonoBehaviour
{

private static readonly string SETTINGS_FILE = KSPUtil.ApplicationRootPath + "GameData/NehemiahInc/Resources/seetings.cfg";
private static readonly string SETTINGS_FILE = KSPUtil.ApplicationRootPath + "GameData/NehemiahInc/Resources/settings.cfg";
private const string DEBUG_VALUE = "Debug";
private static bool debug = true;

Expand Down

0 comments on commit e7d304a

Please sign in to comment.