mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
switched debug log for logger log
This commit is contained in:
parent
32850b9359
commit
fc4ae7d3c7
@ -38,15 +38,16 @@ namespace NewHorizons.Utility.DebugMenu
|
||||
private List<DebugSubmenu> submenus;
|
||||
private int activeSubmenu = 0;
|
||||
|
||||
private static JsonSerializerSettings jsonSettings = new JsonSerializerSettings
|
||||
internal static JsonSerializerSettings jsonSettings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore,
|
||||
DefaultValueHandling = DefaultValueHandling.Ignore,
|
||||
Formatting = Formatting.Indented,
|
||||
Formatting = Formatting.None,
|
||||
};
|
||||
|
||||
public void PrintMahStuff()
|
||||
{
|
||||
Logger.Log("Printin mah stuff please");
|
||||
(submenus[0] as DebugMenuPropPlacer).PrintMahStuff();
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
using NewHorizons.External.Configs;
|
||||
using NewHorizons.External.Modules;
|
||||
using NewHorizons.Utility.DebugUtilities;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -336,10 +337,12 @@ namespace NewHorizons.Utility.DebugMenu
|
||||
|
||||
public void PrintMahStuff()
|
||||
{
|
||||
Debug.Log("Printin mah stuff");
|
||||
Logger.Log("Printin mah stuff");
|
||||
foreach(var body in _dpp.GetPropsConfigByBody())
|
||||
{
|
||||
Debug.Log(body.Key.name + "\n" + JsonUtility.ToJson(body.Value));
|
||||
var json = "";
|
||||
json = String.Join(",\n", body.Value.Select(detail => " "+ JsonConvert.SerializeObject(detail, DebugMenu.jsonSettings)));
|
||||
Logger.Log($"{body.Key.name} ({body.Value.Length})\n[\n{json}\n]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user