Skip to content

Commit a7db8f7

Browse files
committed
Update Settings.cs
1 parent 29e4ff4 commit a7db8f7

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

source/Settings.cs

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Field Training Lab (FTL)
22
* This addon adds a training center in the science laboratory. Paying science points gets kerbals experience. For Kerbal Space Program.
3-
* Copyright (C) 2016 EFour
3+
* Copyright (C) 2016 Efour
44
* Copyright (C) 2019, 2022, 2023 zer0Kerbal (zer0Kerbal at hotmail dot com)
55
*
66
* This program is free software: you can redistribute it and/or modify
@@ -33,16 +33,20 @@ namespace FieldTrainingLab
3333
public class FTL_Options : GameParameters.CustomParameterNode
3434
{
3535
/// <summary>Settings Title</summary>
36-
public override string Title { get { return "#FTL-1000000"; } } // #FTL-1000000 = [WIP] Field Training Lab Settings
37-
/// <summary>Settings Game Mode</summary>
38-
public override GameParameters.GameMode GameMode { get { return GameParameters.GameMode.ANY; } }
36+
public override string Title { get { return "#FTL-settings-title-label"; } } // #FTL-settings-title-label = [WIP] Field Training Lab Settings
37+
3938
/// <summary>Settings Section</summary>
40-
public override string Section { get { return "#FTL-1000001"; } } // #FTL-1000001 = [WIP] Field Training
39+
public override string Section { get { return "#FTL-settings-section"; } } // #FTL-settings-section = [WIP] Field Training
40+
4141
/// <summary>Settings Display Section</summary>
42-
public override string DisplaySection { get { return "#FTL-1000002"; } } // #FTL-1000002 = [WIP] Field Training
42+
public override string DisplaySection { get { return "#FTL-settings-section-display-label"; } } // #FTL-settings-section-display-label = [WIP] Field Training
43+
4344
/// <summary>Settings Section Order</summary>
4445
public override int SectionOrder { get { return 1; } }
4546

47+
/// <summary>Settings Game Mode</summary>
48+
public override GameParameters.GameMode GameMode { get { return GameParameters.GameMode.ANY; } }
49+
4650
/// <summary>Settings module master enable/disable</summary>
4751
[GameParameters.CustomParameterUI("#FTL-settings-enable", // #FTL-settings-enable = Enable Field Training Lab?
4852
toolTip = "#FTL-settings-enable-tt", // #FTL-settings-enable-tt = Field Training Labs are enabled if set to yes.
@@ -180,9 +184,21 @@ public override void SetDifficultyPreset(GameParameters.Preset preset)
180184
public override bool HasPresets { get { return false; } }
181185
public override void SetDifficultyPreset(GameParameters.Preset preset) { }
182186
#endif
183-
187+
/// <summary>Enabled?</summary>
188+
/// <param name="member"></param>
189+
/// <param name="parameters"></param>
190+
/// <returns></returns>
184191
public override bool Enabled(MemberInfo member, GameParameters parameters) { return true; }
192+
193+
/// <summary>Interactible?</summary>
194+
/// <param name="member"></param>
195+
/// <param name="parameters"></param>
196+
/// <returns></returns>
185197
public override bool Interactible(MemberInfo member, GameParameters parameters) { return true; }
198+
199+
/// <summary>ValidValues</summary>
200+
/// <param name="member"></param>
201+
/// <returns></returns>
186202
public override IList ValidValues(MemberInfo member) { return null; }
187203
}
188204
}

0 commit comments

Comments
 (0)