Example #1
0
        static void Init()
        {
            m_icons = new Texture[Enum.GetValues(typeof(MessageType)).Length];
            m_icons[(int)MessageType.None]     =
                m_icons[(int)MessageType.Info] = EditorGUIUtility.LoadRequired("console.infoicon") as Texture;
            m_icons[(int)MessageType.Warning]  = EditorGUIUtility.LoadRequired("console.warnicon") as Texture;
            m_icons[(int)MessageType.Error]    = EditorGUIUtility.LoadRequired("console.erroricon") as Texture;

            m_editing = false;
            m_dataMap = AssetMessageMap.Load();

            m_listWindow = Resources.FindObjectsOfTypeAll <AssetMessageList>().FirstOrDefault();
            if (m_listWindow)
            {
                m_listWindow.Init(m_dataMap);
            }

            EditorApplication.projectWindowItemOnGUI += OnGUI;
        }
Example #2
0
 static void OpenList()
 {
     m_listWindow = AssetMessageList.Open(m_dataMap);
 }