@@ -11,7 +11,7 @@ namespace Ichni.Editor
|
||||
public class LogWindow : StaticWindow
|
||||
{
|
||||
public GameObject logTextPrefab;
|
||||
|
||||
|
||||
List<string> savedTexts;
|
||||
|
||||
public RectTransform textRect;
|
||||
@@ -28,7 +28,7 @@ namespace Ichni.Editor
|
||||
copyAllTextsButton.onClick.AddListener(CopyAllText);
|
||||
removeAllTextsButton.onClick.AddListener(RemoveAllText);
|
||||
}
|
||||
|
||||
|
||||
public static void Log(string text, Color color = default)
|
||||
{
|
||||
EditorManager.instance.uiManager.mainPage.logWindow.AddLog(text, color);
|
||||
@@ -43,7 +43,7 @@ namespace Ichni.Editor
|
||||
logText.SetLogText(text, color);
|
||||
logTexts.Enqueue(logText);
|
||||
}
|
||||
|
||||
|
||||
private void CheckLogTextCapacity()
|
||||
{
|
||||
if (logTexts.Count >= logTextCapacity)
|
||||
@@ -59,7 +59,7 @@ namespace Ichni.Editor
|
||||
{
|
||||
allText += text + "\n";
|
||||
}
|
||||
|
||||
|
||||
GUIUtility.systemCopyBuffer = allText;
|
||||
}
|
||||
|
||||
@@ -73,4 +73,5 @@ namespace Ichni.Editor
|
||||
savedTexts.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user