added a button to the debug tools menu for printing changes

This commit is contained in:
FreezeDriedMangoes 2022-11-30 22:14:33 -05:00
parent 127b77ab07
commit b6e45a77b1

View File

@ -158,6 +158,12 @@ namespace NewHorizons.Utility.DebugMenu
} }
GUI.enabled = true; GUI.enabled = true;
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
if (GUILayout.Button("Print config changes for your mod"))
{
PrintLoadedConfigChangesForRecentSystem();
saveButtonUnlocked = false;
}
} }
GUILayout.Space(20); GUILayout.Space(20);
@ -267,6 +273,14 @@ namespace NewHorizons.Utility.DebugMenu
} }
} }
private void PrintLoadedConfigChangesForRecentSystem()
{
foreach(DebugSubmenu menu in submenus)
{
menu.PrintNewConfigSection(this);
}
}
private void InitMenu() private void InitMenu()
{ {
if (_editorMenuStyle != null) return; if (_editorMenuStyle != null) return;