mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added a button to the debug tools menu for printing changes
This commit is contained in:
parent
127b77ab07
commit
b6e45a77b1
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user