add debug option for player id in logs

This commit is contained in:
Mister_Nebula 2022-01-20 22:12:06 +00:00
parent 88e3f3cb4f
commit 7e6269f8ef
4 changed files with 8 additions and 3 deletions

View File

@ -53,6 +53,7 @@ namespace QSB
public static bool AvoidTimeSync => DebugMode && DebugSettings.AvoidTimeSync;
public static bool SkipTitleScreen => DebugMode && DebugSettings.SkipTitleScreen;
public static bool GreySkybox => DebugMode && DebugSettings.GreySkybox;
public static bool PlayerIdInLogs => DebugMode && DebugSettings.PlayerIdInLogs;
public static AssetBundle NetworkAssetBundle { get; internal set; }
public static AssetBundle InstrumentAssetBundle { get; private set; }
public static AssetBundle ConversationAssetBundle { get; private set; }

View File

@ -10,7 +10,7 @@ namespace QSB.Utility
{
public static void ToConsole(string message, MessageType type = MessageType.Message)
{
if (NetworkClient.localPlayer != null)
if (NetworkClient.localPlayer != null && QSBCore.PlayerIdInLogs)
{
message = $"[{NetworkClient.localPlayer.netId}] " + message;
}

View File

@ -24,5 +24,8 @@ namespace QSB.Utility
[JsonProperty("greySkybox")]
public bool GreySkybox { get; set; }
[JsonProperty("playerIdInLogs")]
public bool PlayerIdInLogs { get; set; }
}
}

View File

@ -1,9 +1,10 @@
{
"debugMode": false,
"debugMode": true,
"drawLines": false,
"showQuantumVisibilityObjects": false,
"showDebugLabels": false,
"avoidTimeSync": false,
"skipTitleScreen": true,
"greySkybox": true
"greySkybox": false,
"playerIdInLogs": false
}