コード例 #1
0
 void OnEnable()
 {
     if (!EditorLog)
     {
         EditorLog = XLogger.GetLogger <XLoggerEditor>();
         if (!EditorLog)
         {
             EditorLog = XLoggerEditor.Ctor();
         }
     }
     XLogger.AddLogger(EditorLog);
     EditorLog.AddWindow(this);
     titleContent.text = XLogGUIConstans.XLOG_EDITOR_NAME;
     ClearSelectedMessage();
     ErrorIcon            = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_ERROR);
     WarningIcon          = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_WARNING);
     MessageIcon          = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_MESSAGE);
     DrawPos              = Vector2.zero;
     CurrentTopPaneHeight = position.height / 2;
     DirtyLog             = true;
     Repaint();
 }