Added headers to LogSettings window & component

This commit is contained in:
Chris Langsenkamp 2020-05-20 16:04:01 -04:00
parent c7d8c0933d
commit 6c8ff77bc1
3 changed files with 5 additions and 8 deletions

View File

@ -6,6 +6,7 @@ namespace Mirror.EditorScripts.Logging
{
public class LogLevelWindow : EditorWindow
{
[Header("Log Settings Asset")]
[SerializeField] LogSettings settings = null;
SerializedObject serializedObject;
@ -33,14 +34,6 @@ void OnGUI()
using (new EditorGUILayout.VerticalScope())
{
using (new EditorGUILayout.VerticalScope())
{
EditorGUILayout.Space();
EditorGUILayout.LabelField(new GUIContent("Mirror Log Levels"), EditorStyles.boldLabel);
EditorGUILayout.Space();
EditorGUILayout.Space();
}
using (new EditorGUILayout.VerticalScope())
{
serializedObject.Update();

View File

@ -27,6 +27,9 @@ public static void DrawLogFactoryDictionary(LogSettings settings)
}
else
{
EditorGUILayout.Space();
EditorGUILayout.LabelField("Logging Components", EditorStyles.boldLabel);
foreach (KeyValuePair<string, ILogger> item in LogFactory.loggers)
{
DrawLoggerField(item);

View File

@ -10,6 +10,7 @@ namespace Mirror.Logging
[HelpURL("https://mirror-networking.com/docs/Components/NetworkLogSettings.html")]
public class NetworkLogSettings : MonoBehaviour
{
[Header("Log Settings Asset")]
[SerializeField] internal LogSettings settings;
#if UNITY_EDITOR