Skip to content

Commit 6e519dd

Browse files
Clarify the confusion caused by the "default settings" phrase, given our MM-patch approach
1 parent 2b67a56 commit 6e519dd

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

src/RemoteTech/UI/OptionWindow.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private void drawMiscellaneousContent()
428428
/// </summary>
429429
private void drawPresetsContent()
430430
{
431-
GUILayout.Label("A third-party mod can replace your current RemoteTech settings with its own settings (GameData/ExampleMod/RemoteTechSettings.cfg).\nAlso, you can revert to RemoteTech's default settings.\nHere you can see what presets are available:", this.mGuiRunningText);
431+
GUILayout.Label("You can revert your current settings to the starting settings, constructed from installed mods's MM patches. Also, you can reload your current settings with a third-party mod's own RemoteTech settings (the fallback in the event of no MM patch).\n\nHere you can see what presets are available:", this.mGuiRunningText);
432432
GUILayout.Space(15);
433433

434434
List<String> presetList = this.mSettings.PreSets;
@@ -443,15 +443,22 @@ private void drawPresetsContent()
443443
GUILayout.BeginHorizontal("box", GUILayout.MaxHeight(15));
444444
{
445445
string folderName = presetList[i];
446+
447+
//remove the node name
446448
int index = folderName.LastIndexOf("/RemoteTechSettings");
447-
folderName = folderName.Substring(0, index) + folderName.Substring(index).Replace("/RemoteTechSettings", ".cfg").Trim();
449+
folderName = folderName.Substring(0, index) + folderName.Substring(index).Replace("/RemoteTechSettings", "").Trim();
450+
451+
//change default name to better name for MM-patched settings
452+
index = folderName.LastIndexOf("/Default_Settings");
453+
if(index>=0)
454+
folderName = folderName.Substring(0, index) + " " + folderName.Substring(index).Replace("/Default_Settings", "starting settings");
448455

449456
GUILayout.Space(15);
450-
GUILayout.Label("- " + folderName, this.mGuiListText, GUILayout.ExpandWidth(true));
451-
if(GUILayout.Button("Overwrite", this.mGuiListButton, GUILayout.Width(70), GUILayout.Height(20)))
457+
GUILayout.Label(folderName, this.mGuiListText, GUILayout.ExpandWidth(true));
458+
if(GUILayout.Button("Reload", this.mGuiListButton, GUILayout.Width(70), GUILayout.Height(20)))
452459
{
453460
RTSettings.ReloadSettings(this.mSettings, presetList[i]);
454-
ScreenMessages.PostScreenMessage(string.Format("Your RemoteTech settings are set to {0}", folderName), 15);
461+
ScreenMessages.PostScreenMessage(string.Format("Your RemoteTech settings are set to {0}", folderName), 10);
455462
RTLog.Notify("Overwrote current settings with this cfg {0}", RTLogLevel.LVL3, presetList[i]);
456463
}
457464
}

0 commit comments

Comments
 (0)