Ejemplo n.º 1
0
    void Start()
    {
        DontDestroyOnLoad(gameObject);
        XLogger.AddLogger(this);
        WindowRect = new Rect(0, 0, Screen.width / 2, Screen.height);
        TopHeight  = Screen.height * 0.75f;
        ClearSelectedMessage();
        ErrorIcon   = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_ERROR);
        WarningIcon = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_WARNING);
        MessageIcon = EditorGUIUtility.FindTexture(XLogGUIConstans.XLOG_ICON_MESSAGE);

        /*smallErrorIcon = EditorGUIUtility.FindTexture("console.infoicon.sml");
         * smallWarningIcon = EditorGUIUtility.FindTexture("console.warnicon.inactive.sml");
         * smallMessageIcon = EditorGUIUtility.FindTexture("console.erroricon.inactive.sml");*/
        smallErrorIcon   = EditorGUIUtility.FindTexture("sv_label_0");
        smallWarningIcon = EditorGUIUtility.FindTexture("sv_label_4");
        smallMessageIcon = EditorGUIUtility.FindTexture("sv_label_6");
    }
Ejemplo n.º 2
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();
 }